|
LLVM
3.7.0
|
StringMapEntry - This is used to represent one value that is inserted into a StringMap. More...
#include <StringMap.h>
Public Member Functions | |
| StringMapEntry (unsigned strLen) | |
| template<class InitTy > | |
| StringMapEntry (unsigned strLen, InitTy &&V) | |
| StringRef | getKey () const |
| const ValueTy & | getValue () const |
| ValueTy & | getValue () |
| void | setValue (const ValueTy &V) |
| const char * | getKeyData () const |
| getKeyData - Return the start of the string data that is the key for this value. More... | |
| StringRef | first () const |
| template<typename AllocatorTy > | |
| void | Destroy (AllocatorTy &Allocator) |
| Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator. More... | |
| void | Destroy () |
| Destroy this object, releasing memory back to the malloc allocator. More... | |
Public Member Functions inherited from llvm::StringMapEntryBase | |
| StringMapEntryBase (unsigned Len) | |
| unsigned | getKeyLength () const |
Static Public Member Functions | |
| template<typename AllocatorTy , typename InitType > | |
| static StringMapEntry * | Create (StringRef Key, AllocatorTy &Allocator, InitType &&InitVal) |
| Create - Create a StringMapEntry for the specified key and default construct the value. More... | |
| template<typename AllocatorTy > | |
| static StringMapEntry * | Create (StringRef Key, AllocatorTy &Allocator) |
| template<typename InitType > | |
| static StringMapEntry * | Create (StringRef Key, InitType &&InitVal) |
| Create - Create a StringMapEntry with normal malloc/free. More... | |
| static StringMapEntry * | Create (StringRef Key) |
| static StringMapEntry & | GetStringMapEntryFromKeyData (const char *KeyData) |
| GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself. More... | |
Public Attributes | |
| ValueTy | second |
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
It contains the Value itself and the key: the string length and data.
Definition at line 28 of file StringMap.h.
|
inlineexplicit |
Definition at line 118 of file StringMap.h.
|
inline |
Definition at line 121 of file StringMap.h.
|
inlinestatic |
Create - Create a StringMapEntry for the specified key and default construct the value.
Definition at line 143 of file StringMap.h.
Referenced by llvm::StringMapEntry< bool >::Create(), llvm::StringMap< uint64_t >::insert(), and llvm::StringPool::intern().
|
inlinestatic |
Definition at line 168 of file StringMap.h.
|
inlinestatic |
Create - Create a StringMapEntry with normal malloc/free.
Definition at line 174 of file StringMap.h.
|
inlinestatic |
Definition at line 179 of file StringMap.h.
|
inline |
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
Definition at line 193 of file StringMap.h.
Referenced by llvm::PooledStringPtr::clear(), and llvm::StringMap< uint64_t >::erase().
|
inline |
Destroy this object, releasing memory back to the malloc allocator.
Definition at line 202 of file StringMap.h.
Referenced by llvm::StringMapEntry< bool >::Destroy().
|
inline |
Definition at line 138 of file StringMap.h.
Referenced by llvm::MCSymbol::getName().
|
inline |
Definition at line 124 of file StringMap.h.
Referenced by llvm::Value::getName(), llvm::StringMap< uint64_t >::insert(), and sortOpts().
|
inline |
getKeyData - Return the start of the string data that is the key for this value.
The string data is always stored immediately after the StringMapEntry object.
Definition at line 136 of file StringMap.h.
Referenced by llvm::PooledStringPtr::begin(), llvm::PooledStringPtr::end(), llvm::StringMapEntry< bool >::first(), llvm::TargetIntrinsicInfo::getIntrinsicID(), llvm::StringMapEntry< bool >::getKey(), lookupIntrinsicID(), and WriteValueSymbolTable().
|
inlinestatic |
GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
Definition at line 185 of file StringMap.h.
|
inline |
Definition at line 128 of file StringMap.h.
Referenced by llvm::PooledStringPtr::clear(), llvm::SpecialCaseList::inSection(), llvm::StringPool::intern(), llvm::PooledStringPtr::operator=(), and llvm::PooledStringPtr::PooledStringPtr().
|
inline |
Definition at line 129 of file StringMap.h.
|
inline |
Definition at line 131 of file StringMap.h.
Referenced by llvm::Value::takeName().
| ValueTy llvm::StringMapEntry< ValueTy >::second |
Definition at line 116 of file StringMap.h.
Referenced by llvm::RuntimeDyldImpl::addRelocationForSymbol(), getOptionPred(), llvm::PassRegistry::getPassInfo(), llvm::RuntimeDyldMachO::getRelocationValueRef(), llvm::RuntimeDyldImpl::getSymbol(), llvm::RuntimeDyldImpl::getSymbolLocalAddress(), llvm::StringMapEntry< bool >::getValue(), llvm::StringMap< uint64_t >::lookup(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldImpl::resolveExternalSymbols(), llvm::StringMapEntry< bool >::setValue(), and sortOpts().
1.8.6