|
LLVM
5.0.0
|
#include "Bitcode/Writer/ValueEnumerator.h"
Public Types | |
| typedef std::vector< Type * > | TypeList |
| typedef std::vector< std::pair < const Value *, unsigned > > | ValueList |
| typedef std::pair< unsigned, AttributeSet > | IndexAndAttrSet |
| Attribute groups as encoded in bitcode are almost AttributeSets, but they include the AttributeList index, so we have to track that in our map. More... | |
Public Attributes | |
| UseListOrderStack | UseListOrders |
Definition at line 44 of file ValueEnumerator.h.
| typedef std::pair<unsigned, AttributeSet> llvm::ValueEnumerator::IndexAndAttrSet |
Attribute groups as encoded in bitcode are almost AttributeSets, but they include the AttributeList index, so we have to track that in our map.
Definition at line 53 of file ValueEnumerator.h.
| typedef std::vector<Type*> llvm::ValueEnumerator::TypeList |
Definition at line 46 of file ValueEnumerator.h.
| typedef std::vector<std::pair<const Value*, unsigned> > llvm::ValueEnumerator::ValueList |
Definition at line 49 of file ValueEnumerator.h.
Definition at line 290 of file ValueEnumerator.cpp.
References A, llvm::SmallVectorImpl< T >::clear(), llvm::dyn_cast(), F, llvm::AttributeList::FunctionIndex, llvm::Type::getMetadataTy(), llvm::Module::globals(), I, L, predictUseListOrder(), second, and UseListOrders.
| uint64_t ValueEnumerator::computeBitsRequiredForTypeIndicies | ( | ) | const |
Definition at line 1012 of file ValueEnumerator.cpp.
References getTypes(), and llvm::Log2_32_Ceil().
| LLVM_DUMP_METHOD void ValueEnumerator::dump | ( | ) | const |
Definition at line 439 of file ValueEnumerator.cpp.
References llvm::dbgs(), and print().
|
inline |
Definition at line 180 of file ValueEnumerator.h.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
|
inline |
Definition at line 215 of file ValueEnumerator.h.
|
inline |
Definition at line 173 of file ValueEnumerator.h.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), I, and llvm::AttributeList::isEmpty().
|
inline |
Definition at line 214 of file ValueEnumerator.h.
|
inline |
Definition at line 211 of file ValueEnumerator.h.
Definition at line 419 of file ValueEnumerator.cpp.
References assert(), and llvm::UniqueVector< T >::idFor().
|
inline |
Definition at line 219 of file ValueEnumerator.h.
|
inline |
getFunctionConstantRange - Return the range of values that corresponds to function-local constants.
Definition at line 190 of file ValueEnumerator.h.
| unsigned ValueEnumerator::getGlobalBasicBlockID | ( | const BasicBlock * | BB | ) | const |
getGlobalBasicBlockID - This returns the function-specific ID for the specified basic block.
This is relatively expensive information, so it should only be used by rare constructs such as address-of-label.
Definition at line 1003 of file ValueEnumerator.cpp.
References llvm::BasicBlock::getParent(), and IncorporateFunctionInfoGlobalBBIDs().
| unsigned ValueEnumerator::getInstructionID | ( | const Instruction * | I | ) | const |
Definition at line 413 of file ValueEnumerator.cpp.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Get the MDString metadata for this block.
Definition at line 201 of file ValueEnumerator.h.
References llvm::makeArrayRef().
Definition at line 152 of file ValueEnumerator.h.
References assert(), and getMetadataOrNullID().
Referenced by getValueID().
Definition at line 157 of file ValueEnumerator.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::lookup().
Referenced by getMetadataID().
Get the non-MDString metadata for this block.
Definition at line 206 of file ValueEnumerator.h.
References llvm::makeArrayRef().
Definition at line 164 of file ValueEnumerator.h.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Definition at line 210 of file ValueEnumerator.h.
Referenced by computeBitsRequiredForTypeIndicies().
Definition at line 429 of file ValueEnumerator.cpp.
References assert(), llvm::ValueMap< KeyT, ValueT, Config >::end(), llvm::ValueMap< KeyT, ValueT, Config >::find(), getMetadataID(), and I.
Definition at line 195 of file ValueEnumerator.h.
|
inline |
Check whether the current block has any metadata to emit.
Definition at line 198 of file ValueEnumerator.h.
incorporateFunction/purgeFunction - If you'd like to deal with a function, use these two methods to get its data into the ValueEnumerator!
Definition at line 918 of file ValueEnumerator.cpp.
References llvm::Function::args(), assert(), llvm::ValueMap< KeyT, ValueT, Config >::count(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and llvm::SmallVectorTemplateCommon< T >::size().
|
inline |
Definition at line 160 of file ValueEnumerator.h.
| void ValueEnumerator::print | ( | raw_ostream & | OS, |
| const ValueMapType & | Map, | ||
| const char * | Name | ||
| ) | const |
Definition at line 447 of file ValueEnumerator.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::begin(), E, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::errs(), llvm::Value::getName(), llvm::Value::hasName(), I, llvm::Value::print(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size(), llvm::Value::use_begin(), llvm::Value::use_end(), and llvm::Value::uses().
Referenced by dump().
| void ValueEnumerator::print | ( | raw_ostream & | OS, |
| const MetadataMapType & | Map, | ||
| const char * | Name | ||
| ) | const |
Definition at line 477 of file ValueEnumerator.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::begin(), E, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), I, llvm::Metadata::print(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size().
| void ValueEnumerator::purgeFunction | ( | ) |
Remove purged values from the ValueMap.
Definition at line 978 of file ValueEnumerator.cpp.
References llvm::ValueMap< KeyT, ValueT, Config >::erase(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase().
| void ValueEnumerator::setInstructionID | ( | const Instruction * | I | ) |
Definition at line 425 of file ValueEnumerator.cpp.
References I.
|
inline |
Definition at line 162 of file ValueEnumerator.h.
| UseListOrderStack llvm::ValueEnumerator::UseListOrders |
Definition at line 55 of file ValueEnumerator.h.
Referenced by ValueEnumerator().
1.8.6