|
LLVM
5.0.0
|
StringMapEntry - This is used to represent one value that is inserted into a StringMap. More...
#include "llvm/ADT/StringMap.h"
Public Member Functions | |
| StringMapEntry (unsigned strLen) | |
| template<typename... InitTy> | |
| StringMapEntry (unsigned strLen, InitTy &&...InitVals) | |
| StringMapEntry (StringMapEntry &E)=delete | |
| 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... InitTy> | |
| static StringMapEntry * | Create (StringRef Key, AllocatorTy &Allocator, InitTy &&...InitVals) |
Create a StringMapEntry for the specified key construct the value using InitiVals. More... | |
| 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 125 of file StringMap.h.
|
inlineexplicit |
Definition at line 129 of file StringMap.h.
Referenced by llvm::StringMapEntry< llvm::Comdat >::Create(), and llvm::StringMapEntry< llvm::Comdat >::Destroy().
|
inline |
Definition at line 132 of file StringMap.h.
|
delete |
|
inlinestatic |
Create a StringMapEntry for the specified key construct the value using InitiVals.
Definition at line 155 of file StringMap.h.
Referenced by llvm::StringMapEntry< llvm::Comdat >::Create(), llvm::StringPool::intern(), llvm::StringMap< uint64_t >::StringMap(), and llvm::StringMap< uint64_t >::try_emplace().
|
inlinestatic |
Create - Create a StringMapEntry with normal malloc/free.
Definition at line 181 of file StringMap.h.
|
inlinestatic |
Definition at line 186 of file StringMap.h.
|
inline |
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
Definition at line 200 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 209 of file StringMap.h.
Referenced by llvm::StringMapEntry< llvm::Comdat >::Destroy().
|
inline |
Definition at line 150 of file StringMap.h.
|
inline |
Definition at line 136 of file StringMap.h.
Referenced by llvm::Value::getName(), and llvm::StringMap< uint64_t >::insert().
|
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 148 of file StringMap.h.
Referenced by llvm::PooledStringPtr::begin(), llvm::StringMapEntry< llvm::Comdat >::Create(), llvm::PooledStringPtr::end(), llvm::StringMapEntry< llvm::Comdat >::first(), llvm::TargetIntrinsicInfo::getIntrinsicID(), and llvm::StringMapEntry< llvm::Comdat >::getKey().
|
inlinestatic |
GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
Definition at line 192 of file StringMap.h.
|
inline |
Definition at line 140 of file StringMap.h.
Referenced by llvm::PooledStringPtr::clear(), llvm::StringPool::intern(), llvm::PooledStringPtr::operator=(), and llvm::PooledStringPtr::PooledStringPtr().
|
inline |
Definition at line 141 of file StringMap.h.
|
inline |
Definition at line 143 of file StringMap.h.
Referenced by llvm::Value::takeName().
| ValueTy llvm::StringMapEntry< ValueTy >::second |
Definition at line 127 of file StringMap.h.
Referenced by llvm::StringMapEntry< llvm::Comdat >::getValue(), and llvm::StringMapEntry< llvm::Comdat >::setValue().
1.8.6