LLVM: llvm::JITSymbol Class Reference (original) (raw)

Represents a symbol in the JIT. More...

#include "[llvm/ExecutionEngine/JITSymbol.h](JITSymbol%5F8h%5Fsource.html)"

Public Member Functions
JITSymbol (std::nullptr_t)
Create a 'null' symbol, used to represent a "symbol not found" result from a successful (non-erroneous) lookup.
JITSymbol (Error Err)
Create a JITSymbol representing an error in the symbol lookup process (e.g.
JITSymbol (JITTargetAddress Addr, JITSymbolFlags Flags)
Create a symbol for a definition with a known address.
JITSymbol (JITEvaluatedSymbol Sym)
Construct a JITSymbol from a JITEvaluatedSymbol.
JITSymbol (GetAddressFtor GetAddress, JITSymbolFlags Flags)
Create a symbol for a definition that doesn't have a known address yet.
JITSymbol (const JITSymbol &)=delete
JITSymbol & operator= (const JITSymbol &)=delete
JITSymbol (JITSymbol &&Other)
JITSymbol & operator= (JITSymbol &&Other)
~JITSymbol ()
operator bool () const
Returns true if the symbol exists, false otherwise.
Error takeError ()
Move the error field value out of this JITSymbol.
Expected< JITTargetAddress > getAddress ()
Get the address of the symbol in the target address space.
JITSymbolFlags getFlags () const

Represents a symbol in the JIT.

Definition at line 267 of file JITSymbol.h.

GetAddressFtor

llvm::JITSymbol::JITSymbol ( std::nullptr_t ) inline

JITSymbol() [2/7]

llvm::JITSymbol::JITSymbol ( Error Err) inline

Create a JITSymbol representing an error in the symbol lookup process (e.g.

a network failure during a remote lookup).

Definition at line 278 of file JITSymbol.h.

References Err, and llvm::move().

JITSymbol() [3/7]

Create a symbol for a definition with a known address.

Definition at line 282 of file JITSymbol.h.

References CachedAddr.

JITSymbol() [4/7]

JITSymbol() [5/7]

Create a symbol for a definition that doesn't have a known address yet.

Parameters

GetAddress A functor to materialize a definition (fixing the address) on demand.

This constructor allows a JIT layer to provide a reference to a symbol definition without actually materializing the definition up front. The user can materialize the definition at any time by calling the getAddress method.

Definition at line 298 of file JITSymbol.h.

References CachedAddr, and llvm::move().

JITSymbol() [6/7]

JITSymbol() [7/7]

llvm::JITSymbol::JITSymbol ( JITSymbol && Other) inline

~JITSymbol()

llvm::JITSymbol::~JITSymbol ( ) inline

getAddress()

getFlags()

operator bool()

llvm::JITSymbol::operator bool ( ) const inlineexplicit

operator=() [1/2]

operator=() [2/2]

takeError()

Error llvm::JITSymbol::takeError ( ) inline

CachedAddr

Err

Error llvm::JITSymbol::Err


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