LLVM 22.0.0git
|
Represents a symbol in the JIT. More...
#include "llvm/ExecutionEngine/JITSymbol.h"
Public Types | |
using | GetAddressFtor = unique_function<Expected<JITTargetAddress>()> |
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.
Definition at line 269 of file JITSymbol.h.
|
inline |
Create a 'null' symbol, used to represent a "symbol not found" result from a successful (non-erroneous) lookup.
Definition at line 273 of file JITSymbol.h.
References CachedAddr.
Referenced by JITSymbol(), JITSymbol(), operator=(), and operator=().
|
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().
|
inline |
Create a symbol for a definition with a known address.
Definition at line 282 of file JITSymbol.h.
References CachedAddr.
|
inline |
Construct a JITSymbol from a JITEvaluatedSymbol.
Definition at line 286 of file JITSymbol.h.
References CachedAddr, getAddress(), and getFlags().
|
inline |
Create a symbol for a definition that doesn't have a known address yet.
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().
References JITSymbol().
|
inline |
Definition at line 304 of file JITSymbol.h.
References CachedAddr, Err, JITSymbol(), llvm::move(), and llvm::Other.
|
inline |
Definition at line 322 of file JITSymbol.h.
References CachedAddr, and Err.
|
inline |
Get the address of the symbol in the target address space.
Returns '0' if the symbol does not exist.
Definition at line 343 of file JITSymbol.h.
References assert(), and CachedAddr.
Referenced by JITSymbol().
|
inline |
Definition at line 356 of file JITSymbol.h.
Referenced by JITSymbol().
|
inlineexplicit |
Returns true if the symbol exists, false otherwise.
Definition at line 330 of file JITSymbol.h.
References CachedAddr.
References JITSymbol().
Definition at line 312 of file JITSymbol.h.
References CachedAddr, Err, JITSymbol(), and llvm::Other.
|
inline |
Move the error field value out of this JITSymbol.
Definition at line 335 of file JITSymbol.h.
References Err, and llvm::Error::success().
JITTargetAddress llvm::JITSymbol::CachedAddr |
Definition at line 361 of file JITSymbol.h.
Referenced by getAddress(), JITSymbol(), JITSymbol(), JITSymbol(), JITSymbol(), JITSymbol(), operator bool(), operator=(), and ~JITSymbol().
Error llvm::JITSymbol::Err |
Definition at line 362 of file JITSymbol.h.
Referenced by JITSymbol(), JITSymbol(), operator=(), takeError(), and ~JITSymbol().