LLVM 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::orc::SymbolStringPoolEntryUnsafe Class Reference

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)
 
PoolEntryrawPtr ()
 
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 SymbolStringPtr &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.
 

Detailed Description

Provides unsafe access to ownership operations on SymbolStringPtr.

This class can be used to manage SymbolStringPtr instances from C.

Definition at line 198 of file SymbolStringPool.h.

Member Typedef Documentation

◆ PoolEntry

Definition at line 200 of file SymbolStringPool.h.

Constructor & Destructor Documentation

◆ SymbolStringPoolEntryUnsafe()

llvm::orc::SymbolStringPoolEntryUnsafe::SymbolStringPoolEntryUnsafe ( PoolEntry E)
inline

Definition at line 202 of file SymbolStringPool.h.

Member Function Documentation

◆ copyToSymbolStringPtr()

SymbolStringPtr llvm::orc::SymbolStringPoolEntryUnsafe::copyToSymbolStringPtr ( )
inline

Creates a SymbolStringPtr for this entry, with the SymbolStringPtr retaining the entry as usual.

Definition at line 220 of file SymbolStringPool.h.

◆ from()

static SymbolStringPoolEntryUnsafe llvm::orc::SymbolStringPoolEntryUnsafe::from ( const SymbolStringPtr S)
inlinestatic

◆ moveToSymbolStringPtr()

SymbolStringPtr llvm::orc::SymbolStringPoolEntryUnsafe::moveToSymbolStringPtr ( )
inline

◆ rawPtr()

PoolEntry * llvm::orc::SymbolStringPoolEntryUnsafe::rawPtr ( )
inline

Definition at line 216 of file SymbolStringPool.h.

Referenced by LLVMOrcSymbolStringPoolEntryStr(), and wrap().

◆ release()

void llvm::orc::SymbolStringPoolEntryUnsafe::release ( )
inline

◆ retain()

void llvm::orc::SymbolStringPoolEntryUnsafe::retain ( )
inline

◆ take()

static SymbolStringPoolEntryUnsafe llvm::orc::SymbolStringPoolEntryUnsafe::take ( SymbolStringPtr &&  S)
inlinestatic

Consumes the given SymbolStringPtr without releasing the pool entry.

Definition at line 210 of file SymbolStringPool.h.

References std::swap().

Referenced by LLVMOrcExecutionSessionIntern(), and LLVMOrcLLJITMangleAndIntern().


The documentation for this class was generated from the following file: