LLVM
8.0.1
|
Base class containing common utilities for RemoteObjectClientLayer and RemoteObjectServerLayer. More...
#include "llvm/ExecutionEngine/Orc/RemoteObjectLayer.h"
Classes | |
class | RemoteSymbolMaterializer |
This class is used as the symbol materializer for JITSymbols returned by RemoteObjectLayerClient/RemoteObjectLayerServer – the materializer knows how to call back to the other RPC endpoint to get the address when requested. More... | |
Public Member Functions | |
RemoteObjectLayer (RPCEndpoint &Remote, std::function< void(Error)> ReportError) | |
Protected Member Functions | |
RemoteSymbol | nullRemoteSymbol () |
Convenience function for getting a null remote symbol value. More... | |
Error | teeLog (Error Err) |
Creates a StringError that contains a copy of Err's log message, then sends that StringError to ReportError. More... | |
Error | badRemoteSymbolIdError (RemoteSymbolId Id) |
Error | badObjectHandleError (ObjHandleT H) |
Expected< RemoteSymbol > | jitSymbolToRemote (JITSymbol Sym) |
Create a RemoteSymbol wrapping the given JITSymbol. More... | |
JITSymbol | remoteToJITSymbol (Expected< RemoteSymbol > RemoteSymOrErr) |
Convert an Expected<RemoteSymbol> to a JITSymbol. More... | |
Protected Attributes | |
RPCEndpoint & | Remote |
std::function< void(Error)> | ReportError |
Additional Inherited Members | |
Public Types inherited from llvm::orc::RemoteObjectLayerAPI | |
using | ObjHandleT = remote::ResourceIdMgr::ResourceId |
using | BadSymbolHandleError = remote::ResourceNotFound< RemoteSymbolId > |
using | BadObjectHandleError = remote::ResourceNotFound< ObjHandleT > |
Protected Types inherited from llvm::orc::RemoteObjectLayerAPI | |
using | RemoteSymbolId = remote::ResourceIdMgr::ResourceId |
using | RemoteSymbol = std::pair< RemoteSymbolId, JITSymbolFlags > |
Static Protected Attributes inherited from llvm::orc::RemoteObjectLayerAPI | |
static const ObjHandleT | InvalidObjectHandleId = 0 |
static const RemoteSymbolId | NullSymbolId = 0 |
Base class containing common utilities for RemoteObjectClientLayer and RemoteObjectServerLayer.
Definition at line 111 of file RemoteObjectLayer.h.
|
inline |
Definition at line 114 of file RemoteObjectLayer.h.
|
inlineprotected |
Definition at line 194 of file RemoteObjectLayer.h.
References H.
|
inlineprotected |
Definition at line 190 of file RemoteObjectLayer.h.
|
inlineprotected |
Create a RemoteSymbol wrapping the given JITSymbol.
Definition at line 200 of file RemoteObjectLayer.h.
References assert(), and llvm::JITSymbol::getFlags().
|
inlineprotected |
Convenience function for getting a null remote symbol value.
Definition at line 171 of file RemoteObjectLayer.h.
|
inlineprotected |
Convert an Expected<RemoteSymbol> to a JITSymbol.
Definition at line 214 of file RemoteObjectLayer.h.
References llvm::orc::RemoteObjectLayer< RPCEndpoint >::RemoteSymbolMaterializer::materialize(), and llvm::Expected< T >::takeError().
|
inlineprotected |
Creates a StringError that contains a copy of Err's log message, then sends that StringError to ReportError.
This allows us to locally log error messages for errors that will actually be delivered to the remote.
Definition at line 180 of file RemoteObjectLayer.h.
|
protected |
Definition at line 229 of file RemoteObjectLayer.h.
|
protected |
Definition at line 230 of file RemoteObjectLayer.h.