LLVM API Documentation
#include <StringMap.h>
Public Types | |
typedef StringMapEntry< ValueTy > | MapEntryTy |
typedef ReferenceAdder < AllocatorTy >::result | AllocatorRefTy |
typedef ReferenceAdder< const AllocatorTy >::result | AllocatorCRefTy |
typedef const char * | key_type |
typedef ValueTy | mapped_type |
typedef StringMapEntry< ValueTy > | value_type |
typedef size_t | size_type |
typedef StringMapConstIterator < ValueTy > | const_iterator |
typedef StringMapIterator < ValueTy > | iterator |
Additional Inherited Members | |
![]() | |
static StringMapEntryBase * | getTombstoneVal () |
![]() | |
StringMapImpl (unsigned itemSize) | |
StringMapImpl (unsigned InitSize, unsigned ItemSize) | |
void | RehashTable () |
unsigned | LookupBucketFor (StringRef Key) |
int | FindKey (StringRef Key) const |
void | RemoveKey (StringMapEntryBase *V) |
StringMapEntryBase * | RemoveKey (StringRef Key) |
![]() | |
StringMapEntryBase ** | TheTable |
unsigned | NumBuckets |
unsigned | NumItems |
unsigned | NumTombstones |
unsigned | ItemSize |
StringMap - This is an unconventional map that is specialized for handling keys that are "strings", which are basically ranges of bytes. This does some funky memory allocation and hashing things to make it extremely efficient, storing the string data after the value in the map.
Definition at line 236 of file StringMap.h.
typedef ReferenceAdder<const AllocatorTy>::result llvm::StringMap< ValueTy, AllocatorTy >::AllocatorCRefTy |
Definition at line 266 of file StringMap.h.
typedef ReferenceAdder<AllocatorTy>::result llvm::StringMap< ValueTy, AllocatorTy >::AllocatorRefTy |
Definition at line 265 of file StringMap.h.
typedef StringMapConstIterator<ValueTy> llvm::StringMap< ValueTy, AllocatorTy >::const_iterator |
Definition at line 275 of file StringMap.h.
typedef StringMapIterator<ValueTy> llvm::StringMap< ValueTy, AllocatorTy >::iterator |
Definition at line 276 of file StringMap.h.
typedef const char* llvm::StringMap< ValueTy, AllocatorTy >::key_type |
Definition at line 270 of file StringMap.h.
typedef StringMapEntry<ValueTy> llvm::StringMap< ValueTy, AllocatorTy >::MapEntryTy |
Definition at line 239 of file StringMap.h.
typedef ValueTy llvm::StringMap< ValueTy, AllocatorTy >::mapped_type |
Definition at line 271 of file StringMap.h.
typedef size_t llvm::StringMap< ValueTy, AllocatorTy >::size_type |
Definition at line 273 of file StringMap.h.
typedef StringMapEntry<ValueTy> llvm::StringMap< ValueTy, AllocatorTy >::value_type |
Definition at line 272 of file StringMap.h.
|
inline |
Definition at line 241 of file StringMap.h.
|
inlineexplicit |
Definition at line 242 of file StringMap.h.
|
inlineexplicit |
Definition at line 245 of file StringMap.h.
|
inline |
Definition at line 248 of file StringMap.h.
|
inline |
Definition at line 252 of file StringMap.h.
|
inline |
Definition at line 406 of file StringMap.h.
|
inline |
Definition at line 278 of file StringMap.h.
Referenced by llvm::ValueSymbolTable::begin(), llvm::DwarfAccelTable::FinalizeTable(), llvm::LLVMContext::getMDKindNames(), LookupNearestOption(), llvm::opt::OptTable::OptTable(), llvm::cl::ParseCommandLineOptions(), llvm::DwarfAccelTable::print(), sortOpts(), and llvm::ValueSymbolTable::~ValueSymbolTable().
|
inline |
Definition at line 284 of file StringMap.h.
|
inline |
|
inline |
Definition at line 316 of file StringMap.h.
Referenced by HandlePrefixedOrGroupedOption(), and llvm::SpecialCaseList::Entry::match().
|
inline |
Definition at line 281 of file StringMap.h.
Referenced by llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::count(), llvm::ConstantDataSequential::destroyConstant(), llvm::ValueSymbolTable::end(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::erase(), llvm::DwarfAccelTable::FinalizeTable(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::find(), llvm::LLVMContext::getMDKindNames(), getOptionPred(), llvm::StringPool::intern(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::lookup(), LookupNearestOption(), LookupOption(), llvm::opt::OptTable::OptTable(), llvm::cl::ParseCommandLineOptions(), llvm::DwarfAccelTable::print(), llvm::RuntimeDyldMachO::processRelocationRef(), llvm::RuntimeDyldELF::processRelocationRef(), sortOpts(), and llvm::ValueSymbolTable::~ValueSymbolTable().
|
inline |
Definition at line 287 of file StringMap.h.
|
inline |
Definition at line 393 of file StringMap.h.
Referenced by llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::erase().
|
inline |
Definition at line 399 of file StringMap.h.
|
inline |
Definition at line 291 of file StringMap.h.
Referenced by llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::count(), llvm::ConstantDataSequential::destroyConstant(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::erase(), getOptionPred(), HandlePrefixedOrGroupedOption(), llvm::StringPool::intern(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::lookup(), LookupOption(), llvm::RuntimeDyldMachO::processRelocationRef(), and llvm::RuntimeDyldELF::processRelocationRef().
|
inline |
Definition at line 297 of file StringMap.h.
|
inline |
Definition at line 267 of file StringMap.h.
Referenced by llvm::StructType::setName().
|
inline |
Definition at line 268 of file StringMap.h.
|
inline |
GetOrCreateValue - Look up the specified key in the table. If a value exists, return it. Otherwise, default construct a value, insert it, and return.
Definition at line 361 of file StringMap.h.
Referenced by llvm::MDString::get(), llvm::MCContext::getCOFFSection(), llvm::LLVMContext::getMDKindID(), GetOptionInfo(), llvm::StringToOffsetTable::GetOrAddStringOffset(), llvm::MCContext::GetOrCreateSymbol(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::GetOrCreateValue(), and llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::operator[]().
|
inline |
Definition at line 383 of file StringMap.h.
|
inline |
insert - Insert the specified key/value pair into the map. If the key already exists in the map, return false and ignore the request, otherwise insert it and return true.
Definition at line 323 of file StringMap.h.
Referenced by llvm::StringPool::intern().
|
inline |
lookup - Return the entry for the specified key, or a default constructed value if no such entry exists.
Definition at line 305 of file StringMap.h.
Referenced by llvm::MCContext::getCOFFSection(), llvm::LibCallInfo::getFunctionInfo(), llvm::ValueSymbolTable::lookup(), and llvm::MCContext::LookupSymbol().
|
inline |
Definition at line 258 of file StringMap.h.
|
inline |
Definition at line 312 of file StringMap.h.
|
inline |
remove - Remove the specified key/value pair from the map, but do not erase it. This aborts if the key is not in the map.
Definition at line 389 of file StringMap.h.
Referenced by llvm::StructType::setName().