|
LLVM
3.7.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 42 of file ValueEnumerator.h.
| typedef std::vector<Type*> llvm::ValueEnumerator::TypeList |
Definition at line 44 of file ValueEnumerator.h.
| typedef std::vector<std::pair<const Value*, unsigned> > llvm::ValueEnumerator::ValueList |
Definition at line 47 of file ValueEnumerator.h.
Definition at line 291 of file ValueEnumerator.cpp.
References llvm::ARM_PROC::A, llvm::dyn_cast(), F(), llvm::Type::getMetadataTy(), llvm::Module::globals(), I, predictUseListOrder(), and UseListOrders.
| uint64_t ValueEnumerator::computeBitsRequiredForTypeIndicies | ( | ) | const |
Definition at line 816 of file ValueEnumerator.cpp.
References getTypes(), llvm::Log2_32_Ceil(), and size.
Referenced by WriteBlockInfo(), and WriteTypeTable().
| void ValueEnumerator::dump | ( | ) | const |
Definition at line 425 of file ValueEnumerator.cpp.
References llvm::dbgs(), and print().
|
inline |
Definition at line 145 of file ValueEnumerator.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), I, and llvm::AttributeSet::isEmpty().
Referenced by WriteAttributeGroupTable(), and WriteAttributeTable().
|
inline |
Definition at line 171 of file ValueEnumerator.h.
Referenced by WriteAttributeGroupTable().
|
inline |
Definition at line 138 of file ValueEnumerator.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), I, and llvm::AttributeSet::isEmpty().
Referenced by WriteInstruction(), and WriteModuleInfo().
|
inline |
Definition at line 168 of file ValueEnumerator.h.
Referenced by WriteAttributeTable().
|
inline |
Definition at line 165 of file ValueEnumerator.h.
Referenced by WriteFunction().
Definition at line 406 of file ValueEnumerator.cpp.
References llvm::UniqueVector< T >::idFor().
Referenced by WriteModuleInfo().
|
inline |
Definition at line 175 of file ValueEnumerator.h.
Referenced by writeComdats().
|
inline |
getFunctionConstantRange - Return the range of values that corresponds to function-local constants.
Definition at line 154 of file ValueEnumerator.h.
Referenced by WriteFunction().
|
inline |
Definition at line 161 of file ValueEnumerator.h.
Referenced by WriteFunctionLocalMetadata().
| 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 807 of file ValueEnumerator.cpp.
References llvm::BasicBlock::getParent(), and IncorporateFunctionInfoGlobalBBIDs().
Referenced by WriteConstants().
| unsigned ValueEnumerator::getInstructionID | ( | const Instruction * | I | ) | const |
Definition at line 400 of file ValueEnumerator.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Referenced by WriteMetadataAttachment().
Definition at line 160 of file ValueEnumerator.h.
Referenced by WriteModuleMetadata().
Definition at line 114 of file ValueEnumerator.h.
References getMetadataOrNullID().
Referenced by getValueID(), WriteDILocation(), WriteMetadataAttachment(), and WriteModuleMetadata().
Definition at line 119 of file ValueEnumerator.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::lookup().
Referenced by getMetadataID(), WriteDIBasicType(), WriteDICompileUnit(), WriteDICompositeType(), WriteDIDerivedType(), WriteDIEnumerator(), WriteDIFile(), WriteDIGlobalVariable(), WriteDIImportedEntity(), WriteDILexicalBlock(), WriteDILexicalBlockFile(), WriteDILocalVariable(), WriteDILocation(), WriteDIModule(), WriteDINamespace(), WriteDIObjCProperty(), WriteDISubprogram(), WriteDISubroutineType(), WriteDITemplateTypeParameter(), WriteDITemplateValueParameter(), WriteFunction(), WriteGenericDINode(), and WriteMDTuple().
Definition at line 129 of file ValueEnumerator.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Referenced by PushValueAndType(), WriteConstants(), WriteInstruction(), WriteModuleInfo(), WriteTypeTable(), and WriteValueAsMetadata().
Definition at line 164 of file ValueEnumerator.h.
Referenced by computeBitsRequiredForTypeIndicies(), WriteBlockInfo(), and WriteTypeTable().
Definition at line 416 of file ValueEnumerator.cpp.
References llvm::ValueMap< KeyT, ValueT, Config >::end(), llvm::ValueMap< KeyT, ValueT, Config >::find(), getMetadataID(), I, and llvm::ValueMapIterator< DenseMapT, KeyT >::ValueTypeProxy::second.
Referenced by pushValue(), PushValueAndType(), pushValueSigned(), WriteConstants(), WriteInstruction(), WriteModuleInfo(), WriteUseList(), WriteValueAsMetadata(), and WriteValueSymbolTable().
Definition at line 159 of file ValueEnumerator.h.
Referenced by WriteConstants(), and WriteModuleConstants().
|
inline |
Definition at line 124 of file ValueEnumerator.h.
Referenced by WriteModuleMetadata().
|
inline |
Definition at line 125 of file ValueEnumerator.h.
Referenced by WriteModuleMetadata().
|
inline |
Definition at line 123 of file ValueEnumerator.h.
Referenced by WriteModuleMetadata().
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 726 of file ValueEnumerator.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::Function::begin(), llvm::Function::end(), llvm::Function::getAttributes(), I, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and llvm::SmallVectorTemplateCommon< T >::size().
Referenced by WriteFunction().
| void ValueEnumerator::print | ( | raw_ostream & | OS, |
| const ValueMapType & | Map, | ||
| const char * | Name | ||
| ) | const |
Definition at line 432 of file ValueEnumerator.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::begin(), llvm::Value::dump(), 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 461 of file ValueEnumerator.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::begin(), 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 782 of file ValueEnumerator.cpp.
References llvm::ValueMap< KeyT, ValueT, Config >::erase(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase().
Referenced by WriteFunction().
| void ValueEnumerator::setInstructionID | ( | const Instruction * | I | ) |
|
inline |
Definition at line 127 of file ValueEnumerator.h.
Referenced by WriteFunction(), WriteModule(), and WriteUseListBlock().
| UseListOrderStack llvm::ValueEnumerator::UseListOrders |
Definition at line 49 of file ValueEnumerator.h.
Referenced by ValueEnumerator(), and WriteUseListBlock().
1.8.6