LLVM 20.0.0git
|
StringMapEntry - This is used to represent one value that is inserted into a StringMap. More...
#include "llvm/ADT/StringMapEntry.h"
Public Types | |
using | ValueType = ValueTy |
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. | |
StringRef | first () const |
template<typename AllocatorTy > | |
void | Destroy (AllocatorTy &allocator) |
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator. | |
Public Member Functions inherited from llvm::StringMapEntryStorage< ValueTy > | |
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) |
Public Member Functions inherited from llvm::StringMapEntryBase | |
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 . | |
static StringMapEntry & | GetStringMapEntryFromKeyData (const char *keyData) |
GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself. | |
Additional Inherited Members | |
Public Attributes inherited from llvm::StringMapEntryStorage< ValueTy > | |
ValueTy | second |
Static Protected Member Functions inherited from llvm::StringMapEntryBase | |
template<typename AllocatorTy > | |
static void * | allocateWithKey (size_t EntrySize, size_t EntryAlign, StringRef Key, AllocatorTy &Allocator) |
Helper to tail-allocate Key . | |
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 102 of file StringMapEntry.h.
using llvm::StringMapEntry< ValueTy >::ValueType = ValueTy |
Definition at line 106 of file StringMapEntry.h.
|
inlinestatic |
Create a StringMapEntry for the specified key construct the value using InitiVals
.
Definition at line 126 of file StringMapEntry.h.
References llvm::StringMapEntryBase::allocateWithKey(), allocator, and llvm::StringRef::size().
Referenced by llvm::dwarf_linker::StringPoolEntryInfo::create(), llvm::dwarf_linker::parallel::TypeEntryInfo::create(), llvm::logicalview::LVStringPool::getIndex(), and llvm::dwarf_linker::parallel::TypePool::TypePool().
|
inline |
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
Definition at line 142 of file StringMapEntry.h.
References allocator, and llvm::StringMapEntryBase::getKeyLength().
|
inline |
Definition at line 119 of file StringMapEntry.h.
References llvm::StringMapEntry< ValueTy >::getKeyData(), and llvm::StringMapEntryBase::getKeyLength().
Referenced by llvm::MCSymbol::getName(), llvm::dwarf_linker::parallel::TypePool::insert(), and llvm::orc::SymbolStringPtrBase::operator*().
|
inline |
Definition at line 108 of file StringMapEntry.h.
References llvm::StringMapEntry< ValueTy >::getKeyData(), and llvm::StringMapEntryBase::getKeyLength().
Referenced by llvm::dwarf_linker::parallel::SyntheticTypeNameBuilder::addDIETypeName(), llvm::StringMap< ValueTy, AllocatorTy >::count(), llvm::dwarf_linker::StringPoolEntryInfo::getKey(), llvm::dwarf_linker::parallel::TypeEntryInfo::getKey(), llvm::getKnowledgeFromBundle(), llvm::Value::getName(), llvm::StringSet< AllocatorTy >::insert(), llvm::StringMap< ValueTy, AllocatorTy >::insert(), LLVMOrcSymbolStringPoolEntryStr(), llvm::dwarf_linker::parallel::AcceleratorRecordsSaver::save(), and llvm::dwarf_linker::parallel::AcceleratorRecordsSaver::saveObjC().
|
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 115 of file StringMapEntry.h.
Referenced by llvm::StringMapEntry< ValueTy >::first(), llvm::TargetIntrinsicInfo::getIntrinsicID(), and llvm::StringMapEntry< ValueTy >::getKey().
|
inlinestatic |
GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
Definition at line 135 of file StringMapEntry.h.