LLVM 20.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. | |
SymbolStringPtr | intern (StringRef S) |
Create a symbol string pointer from the given string. | |
void | clearDeadEntries () |
Remove from the pool any entries that are no longer referenced. | |
bool | empty () const |
Returns true if the pool is empty. | |
Friends | |
class | SymbolStringPoolTest |
class | SymbolStringPtrBase |
class | SymbolStringPoolEntryUnsafe |
raw_ostream & | operator<< (raw_ostream &OS, const SymbolStringPool &SSP) |
Dump a SymbolStringPool. Useful for debugging dangling-pointer crashes. | |
String pool for symbol names used by the JIT.
Definition at line 32 of file SymbolStringPool.h.
|
inline |
Destroy a SymbolStringPool.
Definition at line 282 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 297 of file SymbolStringPool.h.
References llvm::StringMap< ValueTy, AllocatorTy >::begin(), E, llvm::StringMap< ValueTy, AllocatorTy >::end(), llvm::StringMap< ValueTy, AllocatorTy >::erase(), and I.
Referenced by ~SymbolStringPool().
|
inline |
Returns true if the pool is empty.
Definition at line 306 of file SymbolStringPool.h.
References llvm::StringMapImpl::empty().
|
inline |
Create a symbol string pointer from the given string.
Definition at line 289 of file SymbolStringPool.h.
References I, and llvm::StringMap< ValueTy, AllocatorTy >::try_emplace().
|
friend |
Dump a SymbolStringPool. Useful for debugging dangling-pointer crashes.
Definition at line 294 of file DebugUtils.cpp.
|
friend |
Definition at line 35 of file SymbolStringPool.h.
|
friend |
Definition at line 33 of file SymbolStringPool.h.
|
friend |
Definition at line 34 of file SymbolStringPool.h.