|
LLVM
10.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 | |
| StringRef | getKey () const |
| 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::StringMapEntryStorage< ValueTy > | |
| StringMapEntryStorage (size_t strLen) | |
| template<typename... InitTy> | |
| StringMapEntryStorage (size_t strLen, InitTy &&... InitVals) | |
| StringMapEntryStorage (StringMapEntryStorage &E)=delete | |
| const ValueTy & | getValue () const |
| ValueTy & | getValue () |
| void | setValue (const ValueTy &V) |
Public Member Functions inherited from llvm::StringMapEntryBase | |
| StringMapEntryBase (size_t Len) | |
| size_t | 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... | |
Additional Inherited Members | |
Public Attributes inherited from llvm::StringMapEntryStorage< ValueTy > | |
| 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 158 of file StringMap.h.
|
inlinestatic |
Create a StringMapEntry for the specified key construct the value using InitiVals.
Definition at line 178 of file StringMap.h.
Referenced by llvm::Value::getName(), and llvm::StringPool::intern().
|
inlinestatic |
Create - Create a StringMapEntry with normal malloc/free.
Definition at line 204 of file StringMap.h.
|
inlinestatic |
Definition at line 209 of file StringMap.h.
|
inline |
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
Definition at line 223 of file StringMap.h.
Referenced by llvm::PooledStringPtr::clear(), llvm::Value::deleteValue(), llvm::StringMap< uint64_t >::erase(), and llvm::ValueSymbolTable::~ValueSymbolTable().
|
inline |
Destroy this object, releasing memory back to the malloc allocator.
Definition at line 231 of file StringMap.h.
|
inline |
Definition at line 171 of file StringMap.h.
|
inline |
Definition at line 162 of file StringMap.h.
Referenced by llvm::StringMap< uint64_t >::count(), getFilename(), llvm::Value::getName(), llvm::StringSet< AllocatorTy >::insert(), 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 169 of file StringMap.h.
Referenced by llvm::PooledStringPtr::begin(), llvm::StringMapEntry< llvm::Comdat >::Create(), llvm::PooledStringPtr::end(), and llvm::TargetIntrinsicInfo::getIntrinsicID().
|
inlinestatic |
GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
Definition at line 215 of file StringMap.h.
1.8.13