LLVM
12.0.0git
|
String pool for symbol names used by the JIT. More...
#include "llvm/ExecutionEngine/Orc/SymbolStringPool.h"
Public Member Functions | |
~SymbolStringPool () | |
Destroy a SymbolStringPool. More... | |
SymbolStringPtr | intern (StringRef S) |
Create a symbol string pointer from the given string. More... | |
void | clearDeadEntries () |
Remove from the pool any entries that are no longer referenced. More... | |
bool | empty () const |
Returns true if the pool is empty. More... | |
Friends | |
class | SymbolStringPtr |
String pool for symbol names used by the JIT.
Definition at line 27 of file SymbolStringPool.h.
|
inline |
Destroy a SymbolStringPool.
Definition at line 148 of file SymbolStringPool.h.
References assert(), clearDeadEntries(), and llvm::StringMapImpl::empty().
|
inline |
Remove from the pool any entries that are no longer referenced.
Definition at line 163 of file SymbolStringPool.h.
References llvm::StringMap< ValueTy, AllocatorTy >::begin(), E, llvm::StringMap< ValueTy, AllocatorTy >::end(), llvm::StringMap< ValueTy, AllocatorTy >::erase(), I, and llvm::Lock.
Referenced by ~SymbolStringPool().
|
inline |
Returns true if the pool is empty.
Definition at line 172 of file SymbolStringPool.h.
References llvm::StringMapImpl::empty(), and llvm::Lock.
|
inline |
Create a symbol string pointer from the given string.
Definition at line 155 of file SymbolStringPool.h.
References I, llvm::Lock, SymbolStringPtr, and llvm::StringMap< ValueTy, AllocatorTy >::try_emplace().
|
friend |
Definition at line 28 of file SymbolStringPool.h.
Referenced by intern().