LLVM
9.0.0svn
|
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 237 of file JITSymbol.h.
Definition at line 239 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 243 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 248 of file JITSymbol.h.
|
inline |
Create a symbol for a definition with a known address.
Definition at line 252 of file JITSymbol.h.
|
inline |
Construct a JITSymbol from a JITEvaluatedSymbol.
Definition at line 256 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 268 of file JITSymbol.h.
|
inline |
Definition at line 274 of file JITSymbol.h.
References Other.
|
inline |
Definition at line 292 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 313 of file JITSymbol.h.
References assert().
|
inline |
Definition at line 326 of file JITSymbol.h.
Referenced by llvm::orc::RemoteObjectLayer< RPCEndpoint >::jitSymbolToRemote().
|
inlineexplicit |
Returns true if the symbol exists, false otherwise.
Definition at line 300 of file JITSymbol.h.
Definition at line 282 of file JITSymbol.h.
References Other.
|
inline |
Move the error field value out of this JITSymbol.
Definition at line 305 of file JITSymbol.h.
JITTargetAddress llvm::JITSymbol::CachedAddr |
Definition at line 331 of file JITSymbol.h.
Error llvm::JITSymbol::Err |
Definition at line 332 of file JITSymbol.h.