LLVM 22.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 |
|
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, assert(), and llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs... >::Key.
Referenced by llvm::StringMapEntry< std::nullopt_t >::create().
|
inline |
Definition at line 31 of file StringMapEntry.h.
Referenced by llvm::StringMapEntry< std::nullopt_t >::Destroy(), llvm::StringMapImpl::FindKey(), llvm::StringMapEntry< std::nullopt_t >::getKey(), and llvm::StringMapImpl::LookupBucketFor().