LLVM API Documentation
#include <StringMap.h>
Public Member Functions | |
StringMapEntry (unsigned strLen) | |
StringMapEntry (unsigned strLen, const ValueTy &V) | |
StringRef | getKey () const |
const ValueTy & | getValue () const |
ValueTy & | getValue () |
void | setValue (const ValueTy &V) |
const char * | getKeyData () const |
StringRef | first () const |
template<typename AllocatorTy > | |
void | Destroy (AllocatorTy &Allocator) |
void | Destroy () |
Destroy this object, releasing memory back to the malloc allocator. More... | |
![]() | |
StringMapEntryBase (unsigned Len) | |
unsigned | getKeyLength () const |
Static Public Member Functions | |
template<typename AllocatorTy , typename InitType > | |
static StringMapEntry * | Create (const char *KeyStart, const char *KeyEnd, AllocatorTy &Allocator, InitType InitVal) |
template<typename AllocatorTy > | |
static StringMapEntry * | Create (const char *KeyStart, const char *KeyEnd, AllocatorTy &Allocator) |
template<typename InitType > | |
static StringMapEntry * | Create (const char *KeyStart, const char *KeyEnd, InitType InitVal) |
Create - Create a StringMapEntry with normal malloc/free. More... | |
static StringMapEntry * | Create (const char *KeyStart, const char *KeyEnd) |
static StringMapEntry & | GetStringMapEntryFromValue (ValueTy &V) |
static const StringMapEntry & | GetStringMapEntryFromValue (const ValueTy &V) |
static StringMapEntry & | GetStringMapEntryFromKeyData (const char *KeyData) |
Public Attributes | |
ValueTy | second |
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 27 of file StringMap.h.
|
inlineexplicit |
Definition at line 123 of file StringMap.h.
|
inline |
Definition at line 125 of file StringMap.h.
|
inlinestatic |
Create - Create a StringMapEntry for the specified key and default construct the value.
Definition at line 147 of file StringMap.h.
References llvm::StringMapEntryInitializer< ValueTy >::Initialize(), and llvm::Intrinsic::memcpy.
Referenced by llvm::StringMapEntry< ValueTy >::Create(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::GetOrCreateValue(), llvm::StringPool::intern(), and llvm::Value::setName().
|
inlinestatic |
Definition at line 177 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::Create().
|
inlinestatic |
Create - Create a StringMapEntry with normal malloc/free.
Definition at line 184 of file StringMap.h.
References llvm::ARM_PROC::A, and llvm::StringMapEntry< ValueTy >::Create().
|
inlinestatic |
Definition at line 190 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::Create().
|
inline |
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
Definition at line 217 of file StringMap.h.
Referenced by llvm::PooledStringPtr::clear(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::erase(), llvm::Value::setName(), llvm::Value::takeName(), and llvm::Value::~Value().
|
inline |
Destroy this object, releasing memory back to the malloc allocator.
Definition at line 224 of file StringMap.h.
References llvm::ARM_PROC::A.
|
inline |
Definition at line 142 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::getKeyData(), and llvm::StringMapEntryBase::getKeyLength().
|
inline |
Definition at line 128 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::getKeyData(), and llvm::StringMapEntryBase::getKeyLength().
Referenced by llvm::MCContext::getCOFFSection(), llvm::Value::getName(), and llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::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 140 of file StringMap.h.
Referenced by llvm::PooledStringPtr::begin(), llvm::PooledStringPtr::end(), llvm::StringMapEntry< ValueTy >::first(), llvm::ConstantDataSequential::getImpl(), llvm::TargetIntrinsicInfo::getIntrinsicID(), llvm::StringMapEntry< ValueTy >::getKey(), and WriteValueSymbolTable().
|
inlinestatic |
GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
Definition at line 209 of file StringMap.h.
|
inlinestatic |
GetStringMapEntryFromValue - Given a value that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
Definition at line 196 of file StringMap.h.
Referenced by llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue().
|
inlinestatic |
Definition at line 203 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue().
|
inline |
Definition at line 132 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::second.
Referenced by llvm::PooledStringPtr::clear(), llvm::MDString::get(), llvm::MCContext::getCOFFSection(), llvm::ConstantDataSequential::getImpl(), llvm::StringToOffsetTable::GetOrAddStringOffset(), llvm::DwarfDebug::getOrCreateSourceID(), llvm::StringPool::intern(), llvm::PooledStringPtr::operator=(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::operator[](), and llvm::PooledStringPtr::PooledStringPtr().
|
inline |
Definition at line 133 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::second.
|
inline |
Definition at line 135 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::second.
Referenced by llvm::MCContext::getCOFFSection(), llvm::StringToOffsetTable::GetOrAddStringOffset(), llvm::Value::setName(), and llvm::Value::takeName().
ValueTy llvm::StringMapEntry< ValueTy >::second |
Definition at line 121 of file StringMap.h.
Referenced by llvm::RuntimeDyldImpl::addRelocationForSymbol(), GetOptionInfo(), getOptionPred(), llvm::PassRegistry::getPassInfo(), llvm::RuntimeDyldImpl::getSymbolAddress(), llvm::RuntimeDyldImpl::getSymbolLoadAddress(), llvm::StringMapEntry< ValueTy >::getValue(), llvm::StringMapEntryInitializer< ValueTy >::Initialize(), llvm::StringMap< std::pair< llvm::Type *, llvm::SMLoc > >::lookup(), LookupOption(), llvm::RuntimeDyldMachO::processRelocationRef(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldImpl::resolveExternalSymbols(), and llvm::StringMapEntry< ValueTy >::setValue().