LLVM API Documentation
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 () | |
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. | |
void | clear () |
size_type | count (const KeyT &Val) const |
Return 1 if the specified key is in the map, 0 otherwise. | |
iterator | find (const KeyT &Val) |
const_iterator | find (const KeyT &Val) const |
ValueT | lookup (const KeyT &Val) const |
std::pair< iterator, bool > | insert (const std::pair< KeyT, ValueT > &KV) |
template<typename InputIt > | |
void | insert (InputIt I, InputIt E) |
insert - Range insertion of pairs. | |
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 |
const void * | getPointerIntoBucketsArray () const |
Friends | |
class | ValueMapCallbackVH< KeyT, ValueT, Config > |
See the file comment.
Definition at line 78 of file ValueMap.h.
typedef ValueMapConstIterator<MapT, KeyT> llvm::ValueMap< KeyT, ValueT, Config >::const_iterator |
Definition at line 101 of file ValueMap.h.
typedef ValueMapIterator<MapT, KeyT> llvm::ValueMap< KeyT, ValueT, Config >::iterator |
Definition at line 100 of file ValueMap.h.
typedef KeyT llvm::ValueMap< KeyT, ValueT, Config >::key_type |
Definition at line 88 of file ValueMap.h.
typedef ValueT llvm::ValueMap< KeyT, ValueT, Config >::mapped_type |
Definition at line 89 of file ValueMap.h.
typedef unsigned llvm::ValueMap< KeyT, ValueT, Config >::size_type |
Definition at line 91 of file ValueMap.h.
typedef std::pair<KeyT, ValueT> llvm::ValueMap< KeyT, ValueT, Config >::value_type |
Definition at line 90 of file ValueMap.h.
llvm::ValueMap< KeyT, ValueT, Config >::ValueMap | ( | unsigned | NumInitBuckets = 64 | ) | [inline, explicit] |
Definition at line 93 of file ValueMap.h.
llvm::ValueMap< KeyT, ValueT, Config >::ValueMap | ( | const ExtraData & | Data, |
unsigned | NumInitBuckets = 64 |
||
) | [inline, explicit] |
Definition at line 95 of file ValueMap.h.
llvm::ValueMap< KeyT, ValueT, Config >::~ValueMap | ( | ) | [inline] |
Definition at line 98 of file ValueMap.h.
iterator llvm::ValueMap< KeyT, ValueT, Config >::begin | ( | ) | [inline] |
Definition at line 102 of file ValueMap.h.
Referenced by AddAliasScopeMetadata(), CloneAliasScopeMetadata(), CloneLoopBlocks(), llvm::ExecutionEngine::getGlobalValueAtAddress(), and llvm::UnrollLoop().
const_iterator llvm::ValueMap< KeyT, ValueT, Config >::begin | ( | ) | const [inline] |
Definition at line 104 of file ValueMap.h.
void llvm::ValueMap< KeyT, ValueT, Config >::clear | ( | ) | [inline] |
Definition at line 113 of file ValueMap.h.
Referenced by llvm::FunctionLoweringInfo::clear(), and llvm::ExecutionEngine::clearAllGlobalMappings().
size_type llvm::ValueMap< KeyT, ValueT, Config >::count | ( | const KeyT & | Val | ) | const [inline] |
Return 1 if the specified key is in the map, 0 otherwise.
Definition at line 116 of file ValueMap.h.
Referenced by llvm::CloneAndPruneFunctionInto(), llvm::CloneFunction(), llvm::CloneFunctionInto(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), and llvm::FunctionLoweringInfo::isExportedInst().
bool llvm::ValueMap< KeyT, ValueT, Config >::empty | ( | ) | const [inline] |
Definition at line 107 of file ValueMap.h.
iterator llvm::ValueMap< KeyT, ValueT, Config >::end | ( | ) | [inline] |
Definition at line 103 of file ValueMap.h.
Referenced by AddAliasScopeMetadata(), llvm::StackProtector::adjustForColoring(), CloneAliasScopeMetadata(), CloneLoopBlocks(), llvm::ExecutionEngine::getGlobalValueAtAddress(), llvm::ExecutionEngine::getPointerToGlobalIfAvailable(), llvm::ValueEnumerator::getValueID(), llvm::FunctionLoweringInfo::InvalidatePHILiveOutRegInfo(), llvm::MapValue(), RemapInstruction(), llvm::ExecutionEngineState::RemoveMapping(), llvm::UnrollLoop(), and UpdateCallGraphAfterInlining().
const_iterator llvm::ValueMap< KeyT, ValueT, Config >::end | ( | ) | const [inline] |
Definition at line 105 of file ValueMap.h.
bool llvm::ValueMap< KeyT, ValueT, Config >::erase | ( | const KeyT & | Val | ) | [inline] |
Definition at line 151 of file ValueMap.h.
Referenced by llvm::StackProtector::adjustForColoring(), CloneLoopBlocks(), llvm::ValueEnumerator::purgeFunction(), and llvm::ExecutionEngineState::RemoveMapping().
void llvm::ValueMap< KeyT, ValueT, Config >::erase | ( | iterator | I | ) | [inline] |
Definition at line 159 of file ValueMap.h.
iterator llvm::ValueMap< KeyT, ValueT, Config >::find | ( | const KeyT & | Val | ) | [inline] |
Definition at line 120 of file ValueMap.h.
Referenced by llvm::StackProtector::adjustForColoring(), llvm::ExecutionEngine::getPointerToGlobalIfAvailable(), llvm::ValueEnumerator::getValueID(), llvm::FunctionLoweringInfo::InvalidatePHILiveOutRegInfo(), llvm::MapValue(), RemapInstruction(), llvm::ExecutionEngineState::RemoveMapping(), llvm::UnrollLoop(), and UpdateCallGraphAfterInlining().
const_iterator llvm::ValueMap< KeyT, ValueT, Config >::find | ( | const KeyT & | Val | ) | const [inline] |
Definition at line 123 of file ValueMap.h.
value_type& llvm::ValueMap< KeyT, ValueT, Config >::FindAndConstruct | ( | const KeyT & | Key | ) | [inline] |
Definition at line 163 of file ValueMap.h.
const void* llvm::ValueMap< KeyT, ValueT, Config >::getPointerIntoBucketsArray | ( | ) | const [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 181 of file ValueMap.h.
std::pair<iterator, bool> llvm::ValueMap< KeyT, ValueT, Config >::insert | ( | const std::pair< KeyT, ValueT > & | KV | ) | [inline] |
Definition at line 137 of file ValueMap.h.
Referenced by llvm::StackProtector::adjustForColoring(), llvm::ValueMapCallbackVH< KeyT, ValueT, Config >::allUsesReplacedWith(), and llvm::ValueMap< const GlobalValue *, void *, AddressMapConfig >::insert().
void llvm::ValueMap< KeyT, ValueT, Config >::insert | ( | InputIt | I, |
InputIt | E | ||
) | [inline] |
insert - Range insertion of pairs.
Definition at line 145 of file ValueMap.h.
bool llvm::ValueMap< KeyT, ValueT, Config >::isPointerIntoBucketsArray | ( | const void * | Ptr | ) | const [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 174 of file ValueMap.h.
ValueT llvm::ValueMap< KeyT, ValueT, Config >::lookup | ( | const KeyT & | Val | ) | const [inline] |
lookup - Return the entry for the specified key, or a default constructed value if no such entry exists.
Definition at line 129 of file ValueMap.h.
Referenced by llvm::StackProtector::getSSPLayout(), and llvm::ExecutionEngineState::AddressMapConfig::onDelete().
ValueT& llvm::ValueMap< KeyT, ValueT, Config >::operator[] | ( | const KeyT & | Key | ) | [inline] |
Definition at line 167 of file ValueMap.h.
void llvm::ValueMap< KeyT, ValueT, Config >::resize | ( | size_t | Size | ) | [inline] |
Grow the map so that it has at least Size buckets. Does not shrink.
Definition at line 111 of file ValueMap.h.
size_type llvm::ValueMap< KeyT, ValueT, Config >::size | ( | ) | const [inline] |
Definition at line 108 of file ValueMap.h.
friend class ValueMapCallbackVH< KeyT, ValueT, Config > [friend] |
Definition at line 79 of file ValueMap.h.