|
LLVM
4.0.0
|
#include <ValueEnumerator.h>
Public Types | |
| typedef std::vector< Type * > | TypeList |
| typedef std::vector< std::pair < const Value *, unsigned > > | ValueList |
Public Attributes | |
| UseListOrderStack | UseListOrders |
Definition at line 44 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::Type::getMetadataTy(), llvm::Module::globals(), I, i, L, predictUseListOrder(), and UseListOrders.
| uint64_t ValueEnumerator::computeBitsRequiredForTypeIndicies | ( | ) | const |
Definition at line 1003 of file ValueEnumerator.cpp.
References getTypes(), and llvm::Log2_32_Ceil().
| LLVM_DUMP_METHOD void ValueEnumerator::dump | ( | void | ) | const |
Definition at line 435 of file ValueEnumerator.cpp.
References llvm::dbgs(), and print().
|
inline |
Definition at line 176 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::AttributeSet::isEmpty().
|
inline |
Definition at line 212 of file ValueEnumerator.h.
|
inline |
Definition at line 169 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::AttributeSet::isEmpty().
|
inline |
Definition at line 209 of file ValueEnumerator.h.
|
inline |
Definition at line 206 of file ValueEnumerator.h.
Definition at line 416 of file ValueEnumerator.cpp.
References assert(), and llvm::UniqueVector< T >::idFor().
|
inline |
Definition at line 216 of file ValueEnumerator.h.
|
inline |
getFunctionConstantRange - Return the range of values that corresponds to function-local constants.
Definition at line 185 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 994 of file ValueEnumerator.cpp.
References llvm::BasicBlock::getParent(), and IncorporateFunctionInfoGlobalBBIDs().
| unsigned ValueEnumerator::getInstructionID | ( | const Instruction * | I | ) | const |
Definition at line 410 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 196 of file ValueEnumerator.h.
References llvm::makeArrayRef().
Definition at line 148 of file ValueEnumerator.h.
References assert(), and getMetadataOrNullID().
Referenced by getValueID().
Definition at line 153 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 201 of file ValueEnumerator.h.
References llvm::makeArrayRef().
Definition at line 160 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 205 of file ValueEnumerator.h.
Referenced by computeBitsRequiredForTypeIndicies().
Definition at line 426 of file ValueEnumerator.cpp.
References assert(), llvm::ValueMap< KeyT, ValueT, Config >::end(), llvm::ValueMap< KeyT, ValueT, Config >::find(), getMetadataID(), and I.
Definition at line 190 of file ValueEnumerator.h.
|
inline |
Check whether the current block has any metadata to emit.
Definition at line 193 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 909 of file ValueEnumerator.cpp.
References llvm::Function::args(), assert(), llvm::ValueMap< KeyT, ValueT, Config >::count(), i, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and llvm::SmallVectorTemplateCommon< T >::size().
|
inline |
Definition at line 156 of file ValueEnumerator.h.
| void ValueEnumerator::print | ( | raw_ostream & | OS, |
| const ValueMapType & | Map, | ||
| const char * | Name | ||
| ) | const |
Definition at line 442 of file ValueEnumerator.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::begin(), llvm::Value::dump(), E, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::Value::getName(), llvm::Value::hasName(), I, 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 471 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 969 of file ValueEnumerator.cpp.
References llvm::ValueMap< KeyT, ValueT, Config >::erase(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase(), and i.
| void ValueEnumerator::setInstructionID | ( | const Instruction * | I | ) |
Definition at line 422 of file ValueEnumerator.cpp.
References I.
|
inline |
Definition at line 158 of file ValueEnumerator.h.
| UseListOrderStack llvm::ValueEnumerator::UseListOrders |
Definition at line 51 of file ValueEnumerator.h.
Referenced by ValueEnumerator().
1.8.6