|
LLVM
4.0.0
|
See the file comment. More...
#include <ValueMap.h>
Public Types | |
| typedef KeyT | key_type |
| typedef ValueT | mapped_type |
| typedef std::pair< KeyT, ValueT > | value_type |
| typedef unsigned | size_type |
| typedef ValueMapIterator< MapT, KeyT > | iterator |
| typedef ValueMapConstIterator < MapT, KeyT > | const_iterator |
Public Member Functions | |
| ValueMap (unsigned NumInitBuckets=64) | |
| ValueMap (const ExtraData &Data, unsigned NumInitBuckets=64) | |
| ValueMap (const ValueMap &)=delete | |
| ValueMap & | operator= (const ValueMap &)=delete |
| bool | hasMD () const |
| MDMapT & | MD () |
| Optional< MDMapT > & | getMDMap () |
| bool | mayMapMetadata () const |
| void | enableMapMetadata () |
| void | disableMapMetadata () |
| Optional< Metadata * > | getMappedMD (const Metadata *MD) const |
| Get the mapped metadata, if it's in the map. More... | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| bool | empty () const |
| size_type | size () const |
| void | resize (size_t Size) |
| Grow the map so that it has at least Size buckets. Does not shrink. More... | |
| void | clear () |
| size_type | count (const KeyT &Val) const |
| Return 1 if the specified key is in the map, 0 otherwise. More... | |
| iterator | find (const KeyT &Val) |
| const_iterator | find (const KeyT &Val) const |
| ValueT | lookup (const KeyT &Val) const |
| lookup - Return the entry for the specified key, or a default constructed value if no such entry exists. More... | |
| std::pair< iterator, bool > | insert (const std::pair< KeyT, ValueT > &KV) |
| std::pair< iterator, bool > | insert (std::pair< KeyT, ValueT > &&KV) |
| template<typename InputIt > | |
| void | insert (InputIt I, InputIt E) |
| insert - Range insertion of pairs. More... | |
| bool | erase (const KeyT &Val) |
| void | erase (iterator I) |
| value_type & | FindAndConstruct (const KeyT &Key) |
| ValueT & | operator[] (const KeyT &Key) |
| bool | isPointerIntoBucketsArray (const void *Ptr) const |
| isPointerIntoBucketsArray - Return true if the specified pointer points somewhere into the ValueMap's array of buckets (i.e. More... | |
| const void * | getPointerIntoBucketsArray () const |
| getPointerIntoBucketsArray() - Return an opaque pointer into the buckets array. More... | |
Friends | |
| class | ValueMapCallbackVH< KeyT, ValueT, Config > |
See the file comment.
Definition at line 87 of file ValueMap.h.
| typedef ValueMapConstIterator<MapT, KeyT> llvm::ValueMap< KeyT, ValueT, Config >::const_iterator |
Definition at line 136 of file ValueMap.h.
| typedef ValueMapIterator<MapT, KeyT> llvm::ValueMap< KeyT, ValueT, Config >::iterator |
Definition at line 135 of file ValueMap.h.
| typedef KeyT llvm::ValueMap< KeyT, ValueT, Config >::key_type |
Definition at line 101 of file ValueMap.h.
| typedef ValueT llvm::ValueMap< KeyT, ValueT, Config >::mapped_type |
Definition at line 102 of file ValueMap.h.
| typedef unsigned llvm::ValueMap< KeyT, ValueT, Config >::size_type |
Definition at line 104 of file ValueMap.h.
| typedef std::pair<KeyT, ValueT> llvm::ValueMap< KeyT, ValueT, Config >::value_type |
Definition at line 103 of file ValueMap.h.
|
inlineexplicit |
Definition at line 106 of file ValueMap.h.
|
inlineexplicit |
Definition at line 108 of file ValueMap.h.
|
delete |
|
inline |
Definition at line 137 of file ValueMap.h.
Referenced by AddAliasScopeMetadata(), CloneAliasScopeMetadata(), PropagateParallelLoopAccessMetadata(), and llvm::UnrollLoop().
|
inline |
Definition at line 139 of file ValueMap.h.
|
inline |
Definition at line 148 of file ValueMap.h.
Referenced by llvm::GlobalNumberState::clear(), and llvm::FunctionLoweringInfo::clear().
|
inline |
Return 1 if the specified key is in the map, 0 otherwise.
Definition at line 154 of file ValueMap.h.
Referenced by llvm::CloneAndPruneIntoFromInst(), llvm::CloneFunction(), llvm::CloneFunctionInto(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::ValueEnumerator::incorporateFunction(), and llvm::FunctionLoweringInfo::isExportedInst().
|
inline |
Definition at line 123 of file ValueMap.h.
|
inline |
Definition at line 142 of file ValueMap.h.
|
inline |
Definition at line 122 of file ValueMap.h.
|
inline |
Definition at line 138 of file ValueMap.h.
Referenced by AddAliasScopeMetadata(), llvm::StackProtector::adjustForColoring(), CloneAliasScopeMetadata(), llvm::ValueEnumerator::getValueID(), llvm::FunctionLoweringInfo::InvalidatePHILiveOutRegInfo(), PropagateParallelLoopAccessMetadata(), remapInstruction(), llvm::UnrollLoop(), and UpdateCallGraphAfterInlining().
|
inline |
Definition at line 140 of file ValueMap.h.
|
inline |
Definition at line 193 of file ValueMap.h.
Referenced by llvm::StackProtector::adjustForColoring(), CloneLoopBlocks(), and llvm::ValueEnumerator::purgeFunction().
|
inline |
Definition at line 201 of file ValueMap.h.
|
inline |
Definition at line 158 of file ValueMap.h.
Referenced by llvm::StackProtector::adjustForColoring(), llvm::ValueEnumerator::getValueID(), llvm::FunctionLoweringInfo::InvalidatePHILiveOutRegInfo(), remapInstruction(), and UpdateCallGraphAfterInlining().
|
inline |
Definition at line 161 of file ValueMap.h.
|
inline |
Definition at line 205 of file ValueMap.h.
|
inline |
Get the mapped metadata, if it's in the map.
Definition at line 126 of file ValueMap.h.
|
inline |
Definition at line 119 of file ValueMap.h.
|
inline |
getPointerIntoBucketsArray() - Return an opaque pointer into the buckets array.
In conjunction with the previous method, this can be used to determine whether an insertion caused the ValueMap to reallocate.
Definition at line 223 of file ValueMap.h.
|
inline |
Definition at line 113 of file ValueMap.h.
|
inline |
Definition at line 175 of file ValueMap.h.
Referenced by llvm::StackProtector::adjustForColoring(), llvm::GlobalNumberState::getNumber(), and llvm::ValueMap< GlobalValue *, uint64_t, Config >::insert().
|
inline |
Definition at line 180 of file ValueMap.h.
|
inline |
insert - Range insertion of pairs.
Definition at line 188 of file ValueMap.h.
|
inline |
isPointerIntoBucketsArray - Return true if the specified pointer points somewhere into the ValueMap's array of buckets (i.e.
either to a key or value in the ValueMap).
Definition at line 216 of file ValueMap.h.
|
inline |
lookup - Return the entry for the specified key, or a default constructed value if no such entry exists.
Definition at line 167 of file ValueMap.h.
Referenced by llvm::CloneAndPruneIntoFromInst(), cloneConstantExprWithNewAddressSpace(), CloneLoopBlocks(), ConnectEpilog(), ConnectProlog(), llvm::StackProtector::getSSPLayout(), operandWithNewAddressSpaceOrCreateUndef(), and RewriteUsesOfClonedInstructions().
|
inline |
Definition at line 121 of file ValueMap.h.
|
inline |
Definition at line 114 of file ValueMap.h.
Referenced by createClone().
|
delete |
|
inline |
Definition at line 209 of file ValueMap.h.
|
inline |
Grow the map so that it has at least Size buckets. Does not shrink.
Definition at line 146 of file ValueMap.h.
|
inline |
Definition at line 143 of file ValueMap.h.
|
friend |
Definition at line 88 of file ValueMap.h.
1.8.6