LLVM 22.0.0git
|
Provides unsafe access to ownership operations on SymbolStringPtr. More...
#include "llvm/ExecutionEngine/Orc/SymbolStringPool.h"
Public Types | |
using | PoolEntry = SymbolStringPool::PoolMapEntry |
Public Member Functions | |
SymbolStringPoolEntryUnsafe (PoolEntry *E) | |
PoolEntry * | rawPtr () |
SymbolStringPtr | copyToSymbolStringPtr () |
Creates a SymbolStringPtr for this entry, with the SymbolStringPtr retaining the entry as usual. | |
SymbolStringPtr | moveToSymbolStringPtr () |
Creates a SymbolStringPtr for this entry without performing a retain operation during construction. | |
void | retain () |
void | release () |
Static Public Member Functions | |
static SymbolStringPoolEntryUnsafe | from (const SymbolStringPtrBase &S) |
Create an unsafe pool entry ref without changing the ref-count. | |
static SymbolStringPoolEntryUnsafe | take (SymbolStringPtr &&S) |
Consumes the given SymbolStringPtr without releasing the pool entry. |
Provides unsafe access to ownership operations on SymbolStringPtr.
This class can be used to manage SymbolStringPtr instances from C.
Definition at line 202 of file SymbolStringPool.h.
Definition at line 204 of file SymbolStringPool.h.
|
inline |
Definition at line 206 of file SymbolStringPool.h.
|
inline |
Creates a SymbolStringPtr for this entry, with the SymbolStringPtr retaining the entry as usual.
Definition at line 224 of file SymbolStringPool.h.
|
inlinestatic |
Create an unsafe pool entry ref without changing the ref-count.
Definition at line 209 of file SymbolStringPool.h.
References llvm::orc::SymbolStringPtrBase::S, and SymbolStringPoolEntryUnsafe().
Referenced by llvm::orc::hash_value(), LLVMOrcCreateDynamicLibrarySearchGeneratorForPath(), LLVMOrcCreateDynamicLibrarySearchGeneratorForProcess(), LLVMOrcExecutionSessionLookup(), LLVMOrcMaterializationResponsibilityGetInitializerSymbol(), LLVMOrcMaterializationResponsibilityGetRequestedSymbols(), LLVMOrcMaterializationResponsibilityGetSymbols(), and llvm::orc::CAPIDefinitionGenerator::tryToGenerate().
|
inline |
Creates a SymbolStringPtr for this entry without performing a retain operation during construction.
Definition at line 228 of file SymbolStringPool.h.
References llvm::orc::SymbolStringPtrBase::S, and std::swap().
|
inline |
Definition at line 220 of file SymbolStringPool.h.
|
inline |
Definition at line 235 of file SymbolStringPool.h.
|
inline |
Definition at line 234 of file SymbolStringPool.h.
|
inlinestatic |
Consumes the given SymbolStringPtr without releasing the pool entry.
Definition at line 214 of file SymbolStringPool.h.
References std::swap(), and SymbolStringPoolEntryUnsafe().
Referenced by LLVMOrcExecutionSessionIntern(), and LLVMOrcLLJITMangleAndIntern().