LLVM
15.0.0git
|
StringMapEntry - This is used to represent one value that is inserted into a StringMap. More...
#include "llvm/ADT/StringMapEntry.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... | |
![]() | |
StringMapEntryStorage (size_t keyLength) | |
template<typename... InitTy> | |
StringMapEntryStorage (size_t keyLength, InitTy &&... initVals) | |
StringMapEntryStorage (StringMapEntryStorage &e)=delete | |
const ValueTy & | getValue () const |
ValueTy & | getValue () |
void | setValue (const ValueTy &V) |
![]() | |
StringMapEntryBase (size_t keyLength) | |
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... | |
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 | |
![]() | |
ValueTy | second |
![]() | |
template<typename AllocatorTy > | |
static void * | allocateWithKey (size_t EntrySize, size_t EntryAlign, StringRef Key, AllocatorTy &Allocator) |
Helper to tail-allocate Key . More... | |
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 101 of file StringMapEntry.h.
|
inlinestatic |
Create a StringMapEntry for the specified key construct the value using InitiVals
.
Definition at line 123 of file StringMapEntry.h.
Referenced by llvm::StringMap< uint64_t >::StringMap(), and llvm::StringMap< uint64_t >::try_emplace().
|
inline |
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
Definition at line 139 of file StringMapEntry.h.
Referenced by llvm::StringMap< uint64_t >::erase().
|
inline |
Definition at line 116 of file StringMapEntry.h.
|
inline |
Definition at line 105 of file StringMapEntry.h.
Referenced by llvm::StringMap< uint64_t >::count(), llvm::getKnowledgeFromBundle(), 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 112 of file StringMapEntry.h.
Referenced by 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 132 of file StringMapEntry.h.