LLVM API Documentation
#include <StringMap.h>


Public Member Functions | |
| StringMapEntry (unsigned strLen) | |
| StringMapEntry (unsigned strLen, const ValueTy &V) | |
| const ValueTy & | getValue () const |
| ValueTy & | getValue () |
| void | setValue (const ValueTy &V) |
| const char * | getKeyData () const |
| const char * | first () const |
| template<typename AllocatorTy> | |
| void | Destroy (AllocatorTy &Allocator) |
| void | Destroy () |
| Destroy this object, releasing memory back to the malloc allocator. | |
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. | |
| static StringMapEntry * | Create (const char *KeyStart, const char *KeyEnd) |
| static StringMapEntry & | GetStringMapEntryFromValue (ValueTy &V) |
| static const StringMapEntry & | GetStringMapEntryFromValue (const ValueTy &V) |
Public Attributes | |
| ValueTy | second |
Definition at line 129 of file StringMap.h.
| llvm::StringMapEntry< ValueTy >::StringMapEntry | ( | unsigned | strLen | ) | [inline, explicit] |
Definition at line 133 of file StringMap.h.
Referenced by llvm::StringMapEntry< ValueTy >::Create().
| llvm::StringMapEntry< ValueTy >::StringMapEntry | ( | unsigned | strLen, | |
| const ValueTy & | V | |||
| ) | [inline] |
Definition at line 135 of file StringMap.h.
| const ValueTy& llvm::StringMapEntry< ValueTy >::getValue | ( | ) | const [inline] |
Definition at line 138 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::second.
Referenced by llvm::PooledStringPtr::clear(), llvm::StringPool::intern(), llvm::PooledStringPtr::operator=(), llvm::StringMap< llvm::StringPool::PooledString >::operator[](), and llvm::PooledStringPtr::PooledStringPtr().
| ValueTy& llvm::StringMapEntry< ValueTy >::getValue | ( | ) | [inline] |
| void llvm::StringMapEntry< ValueTy >::setValue | ( | const ValueTy & | V | ) | [inline] |
Definition at line 141 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::second.
Referenced by llvm::Value::setName(), and llvm::Value::takeName().
| const char* llvm::StringMapEntry< ValueTy >::getKeyData | ( | ) | const [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 146 of file StringMap.h.
Referenced by llvm::PooledStringPtr::begin(), llvm::canConstantFoldCallTo(), llvm::ConstantFoldCall(), llvm::PooledStringPtr::end(), llvm::StringMapEntry< ValueTy >::first(), llvm::Function::getIntrinsicID(), llvm::Value::getNameStart(), llvm::Value::getNameStr(), llvm::StringMap< llvm::StringPool::PooledString >::insert(), llvm::Value::setName(), and WriteValueSymbolTable().
| const char* llvm::StringMapEntry< ValueTy >::first | ( | ) | const [inline] |
Definition at line 148 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::getKeyData().
| static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create | ( | const char * | KeyStart, | |
| const char * | KeyEnd, | |||
| AllocatorTy & | Allocator, | |||
| InitType | InitVal | |||
| ) | [inline, static] |
Create - Create a StringMapEntry for the specified key and default construct the value.
Definition at line 153 of file StringMap.h.
References Alignment, and llvm::StringMapEntry< ValueTy >::StringMapEntry().
Referenced by llvm::StringMapEntry< ValueTy >::Create(), llvm::StringMap< llvm::StringPool::PooledString >::GetOrCreateValue(), llvm::StringPool::intern(), and llvm::Value::setName().
| static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create | ( | const char * | KeyStart, | |
| const char * | KeyEnd, | |||
| AllocatorTy & | Allocator | |||
| ) | [inline, static] |
| static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create | ( | const char * | KeyStart, | |
| const char * | KeyEnd, | |||
| InitType | InitVal | |||
| ) | [inline, static] |
Create - Create a StringMapEntry with normal malloc/free.
Definition at line 191 of file StringMap.h.
References A, and llvm::StringMapEntry< ValueTy >::Create().
| static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create | ( | const char * | KeyStart, | |
| const char * | KeyEnd | |||
| ) | [inline, static] |
| static StringMapEntry& llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue | ( | ValueTy & | V | ) | [inline, static] |
GetStringMapEntryFromValue - Given a value that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
Definition at line 203 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::second.
Referenced by llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue().
| static const StringMapEntry& llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue | ( | const ValueTy & | V | ) | [inline, static] |
Definition at line 210 of file StringMap.h.
References llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue().
| void llvm::StringMapEntry< ValueTy >::Destroy | ( | AllocatorTy & | Allocator | ) | [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< llvm::StringPool::PooledString >::erase(), llvm::Value::setName(), llvm::Value::takeName(), and llvm::Value::~Value().
| void llvm::StringMapEntry< ValueTy >::Destroy | ( | ) | [inline] |
Destroy this object, releasing memory back to the malloc allocator.
Definition at line 224 of file StringMap.h.
References A.
| ValueTy llvm::StringMapEntry< ValueTy >::second |
Definition at line 131 of file StringMap.h.
Referenced by llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue(), llvm::StringMapEntry< ValueTy >::getValue(), and llvm::StringMapEntry< ValueTy >::setValue().