LLVM
8.0.1
|
Represents a symbol in the JIT. More...
#include "llvm/ExecutionEngine/JITSymbol.h"
Public Types | |
using | GetAddressFtor = std::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. More... | |
JITSymbol (Error Err) | |
Create a JITSymbol representing an error in the symbol lookup process (e.g. More... | |
JITSymbol (JITTargetAddress Addr, JITSymbolFlags Flags) | |
Create a symbol for a definition with a known address. More... | |
JITSymbol (JITEvaluatedSymbol Sym) | |
Construct a JITSymbol from a JITEvaluatedSymbol. More... | |
JITSymbol (GetAddressFtor GetAddress, JITSymbolFlags Flags) | |
Create a symbol for a definition that doesn't have a known address yet. More... | |
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. More... | |
Error | takeError () |
Move the error field value out of this JITSymbol. More... | |
Expected< JITTargetAddress > | getAddress () |
Get the address of the symbol in the target address space. More... | |
JITSymbolFlags | getFlags () const |
Represents a symbol in the JIT.
Definition at line 238 of file JITSymbol.h.
Definition at line 240 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 244 of file JITSymbol.h.
|
inline |
Create a JITSymbol representing an error in the symbol lookup process (e.g.
a network failure during a remote lookup).
Definition at line 249 of file JITSymbol.h.
|
inline |
Create a symbol for a definition with a known address.
Definition at line 253 of file JITSymbol.h.
|
inline |
Construct a JITSymbol from a JITEvaluatedSymbol.
Definition at line 257 of file JITSymbol.h.
|
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 269 of file JITSymbol.h.
|
inline |
Definition at line 275 of file JITSymbol.h.
References Other.
|
inline |
Definition at line 293 of file JITSymbol.h.
|
inline |
Get the address of the symbol in the target address space.
Returns '0' if the symbol does not exist.
Definition at line 314 of file JITSymbol.h.
References assert().
|
inline |
Definition at line 327 of file JITSymbol.h.
Referenced by llvm::orc::RemoteObjectLayer< RPCEndpoint >::jitSymbolToRemote().
|
inlineexplicit |
Returns true if the symbol exists, false otherwise.
Definition at line 301 of file JITSymbol.h.
Definition at line 283 of file JITSymbol.h.
References Other.
|
inline |
Move the error field value out of this JITSymbol.
Definition at line 306 of file JITSymbol.h.
JITTargetAddress llvm::JITSymbol::CachedAddr |
Definition at line 332 of file JITSymbol.h.
Error llvm::JITSymbol::Err |
Definition at line 333 of file JITSymbol.h.