LLVM 22.0.0git
|
Base class for both owning and non-owning symbol-string ptrs. More...
#include "llvm/ExecutionEngine/Orc/SymbolStringPool.h"
Public Member Functions | |
SymbolStringPtrBase ()=default | |
SymbolStringPtrBase (std::nullptr_t) | |
operator bool () const | |
StringRef | operator* () const |
bool | poolEntryIsAlive () const |
Protected Types | |
using | PoolEntry = SymbolStringPool::PoolMapEntry |
using | PoolEntryPtr = PoolEntry * |
Protected Member Functions | |
SymbolStringPtrBase (PoolEntryPtr S) | |
size_t | getRefCount () const |
Static Protected Member Functions | |
static bool | isRealPoolEntry (PoolEntryPtr P) |
Protected Attributes | |
PoolEntryPtr | S = nullptr |
Static Protected Attributes | |
static constexpr uintptr_t | EmptyBitPattern |
static constexpr uintptr_t | TombstoneBitPattern |
static constexpr uintptr_t | InvalidPtrMask |
Friends | |
class | SymbolStringPool |
struct | DenseMapInfo< SymbolStringPtr > |
struct | DenseMapInfo< NonOwningSymbolStringPtr > |
bool | operator== (SymbolStringPtrBase LHS, SymbolStringPtrBase RHS) |
bool | operator!= (SymbolStringPtrBase LHS, SymbolStringPtrBase RHS) |
bool | operator< (SymbolStringPtrBase LHS, SymbolStringPtrBase RHS) |
LLVM_ABI friend raw_ostream & | operator<< (raw_ostream &OS, const SymbolStringPtrBase &Sym) |
Base class for both owning and non-owning symbol-string ptrs.
All symbol-string ptrs are convertible to bool, dereferenceable and comparable.
SymbolStringPtrBases are default-constructible and constructible from nullptr to enable comparison with these values.
Definition at line 72 of file SymbolStringPool.h.
|
protected |
Definition at line 111 of file SymbolStringPool.h.
|
protected |
Definition at line 112 of file SymbolStringPool.h.
|
default |
|
inline |
Definition at line 79 of file SymbolStringPool.h.
|
inlineprotected |
Definition at line 114 of file SymbolStringPool.h.
References S.
|
inlineprotected |
Definition at line 134 of file SymbolStringPool.h.
References isRealPoolEntry(), and S.
|
inlinestaticprotected |
Definition at line 129 of file SymbolStringPool.h.
References InvalidPtrMask, and P.
Referenced by getRefCount(), poolEntryIsAlive(), and llvm::orc::SymbolStringPtr::SymbolStringPtr().
|
inlineexplicit |
Definition at line 81 of file SymbolStringPool.h.
References S.
|
inline |
Definition at line 83 of file SymbolStringPool.h.
References S.
|
inline |
Definition at line 105 of file SymbolStringPool.h.
References isRealPoolEntry(), and S.
Referenced by llvm::orc::SymbolStringPtr::SymbolStringPtr().
|
friend |
Definition at line 73 of file SymbolStringPool.h.
References SymbolStringPool.
|
friend |
Definition at line 73 of file SymbolStringPool.h.
|
friend |
Definition at line 89 of file SymbolStringPool.h.
References LHS, RHS, and SymbolStringPtrBase().
|
friend |
Definition at line 93 of file SymbolStringPool.h.
References LHS, RHS, and SymbolStringPtrBase().
|
friend |
Definition at line 14 of file SymbolStringPool.cpp.
References llvm::StringMapEntry< ValueTy >::first(), S, and SymbolStringPtrBase().
|
friend |
Definition at line 85 of file SymbolStringPool.h.
References LHS, RHS, and SymbolStringPtrBase().
|
friend |
Definition at line 73 of file SymbolStringPool.h.
Referenced by DenseMapInfo< NonOwningSymbolStringPtr >.
|
staticconstexprprotected |
Definition at line 116 of file SymbolStringPool.h.
|
staticconstexprprotected |
Definition at line 124 of file SymbolStringPool.h.
Referenced by isRealPoolEntry().
|
protected |
Definition at line 138 of file SymbolStringPool.h.
Referenced by llvm::orc::SymbolStringPoolEntryUnsafe::from(), getRefCount(), llvm::orc::SymbolStringPoolEntryUnsafe::moveToSymbolStringPtr(), operator bool(), operator*(), operator<<, llvm::orc::SymbolStringPtr::operator=(), llvm::orc::SymbolStringPtr::operator=(), poolEntryIsAlive(), llvm::orc::SymbolStringPtr::SymbolStringPtr(), llvm::orc::SymbolStringPtr::SymbolStringPtr(), llvm::orc::SymbolStringPtr::SymbolStringPtr(), and SymbolStringPtrBase().
|
staticconstexprprotected |
Definition at line 120 of file SymbolStringPool.h.