LLVM 20.0.0git
|
StringMapEntryBase - Shared base class of StringMapEntry instances. More...
#include "llvm/ADT/StringMapEntry.h"
Public Member Functions | |
StringMapEntryBase (size_t keyLength) | |
size_t | getKeyLength () const |
Static Protected Member Functions | |
template<typename AllocatorTy > | |
static void * | allocateWithKey (size_t EntrySize, size_t EntryAlign, StringRef Key, AllocatorTy &Allocator) |
Helper to tail-allocate Key . | |
StringMapEntryBase - Shared base class of StringMapEntry instances.
Definition at line 25 of file StringMapEntry.h.
|
inlineexplicit |
Definition at line 29 of file StringMapEntry.h.
|
staticprotected |
Helper to tail-allocate Key
.
It'd be nice to generalize this so it could be reused elsewhere, maybe even taking an llvm::function_ref to type-erase the allocator and put it in a source file.
Definition at line 44 of file StringMapEntry.h.
References Allocator, and assert().
Referenced by llvm::StringMapEntry< ValueTy >::create().
|
inline |
Definition at line 31 of file StringMapEntry.h.
Referenced by llvm::StringMapEntry< ValueTy >::Destroy(), llvm::StringMapImpl::FindKey(), llvm::StringMapEntry< ValueTy >::first(), llvm::TargetIntrinsicInfo::getIntrinsicID(), llvm::StringMapEntry< ValueTy >::getKey(), and llvm::StringMapImpl::LookupBucketFor().