LLVM 24.0.0git
llvm::orc::sps Namespace Reference

Classes

class  ProxySpec
class  ProxySpec< ProxyT, CI, RetT(ArgTs...)>

Typedefs

using CallMainProxySpec = ProxySpec<CallMainProxy, rt::sps_ci::CallMain>
 SPS proxy for CallMainProxy: runs a main-like function (int(int argc, char *argv[])) in the executor.
using CallVoidVoidProxySpec
 SPS proxy for CallVoidVoidProxy: runs a void() function in the executor.
using CallInt32VoidProxySpec
 SPS proxy for CallInt32VoidProxy: runs an int32_t() function in the executor.
using CallInt32Int32ProxySpec
 SPS proxy for CallInt32Int32Proxy: runs an int32_t(int32_t) function in the executor.
using DylibMgrOpenProxySpec
using DylibMgrResolveProxySpec
using MemMgrReserveProxySpec
using MemMgrInitializeProxySpec
using MemMgrDeinitializeProxySpec
using MemMgrReleaseProxySpec
using MemWriteUInt8sProxySpec
using MemWriteUInt16sProxySpec
using MemWriteUInt32sProxySpec
using MemWriteUInt64sProxySpec
using MemWritePointersProxySpec
using MemWriteBuffersProxySpec
using MemReadUInt8sProxySpec
using MemReadUInt16sProxySpec
using MemReadUInt32sProxySpec
using MemReadUInt64sProxySpec
using MemReadPointersProxySpec
using MemReadBuffersProxySpec
using MemReadStringsProxySpec

Functions

LLVM_ABI Expected< std::unique_ptr< EPCGenericDylibManager > > createEPCGenericDylibManager (JITDylib &JD)
 Create an EPCGenericDylibManager for the ORC runtime's NativeDylibManager interface, resolving its symbols in the given JITDylib.
LLVM_ABI Expected< std::unique_ptr< EPCGenericDylibManager > > createEPCGenericDylibManager (ExecutionSession &ES)
 Create an EPCGenericDylibManager for the ORC runtime's NativeDylibManager interface, resolving its symbols in the given ExecutionSession's bootstrap JITDylib.
LLVM_ABI Expected< std::unique_ptr< EPCGenericJITLinkMemoryManager > > createEPCGenericJITLinkMemoryManager (JITDylib &JD)
 Create an EPCGenericJITLinkMemoryManager for the ORC runtime's SimpleNativeMemoryMap interface, resolving its symbols in the given JITDylib.
LLVM_ABI Expected< std::unique_ptr< EPCGenericJITLinkMemoryManager > > createEPCGenericJITLinkMemoryManager (ExecutionSession &ES)
 Create an EPCGenericJITLinkMemoryManager for the ORC runtime's SimpleNativeMemoryMap interface, resolving its symbols in the given ExecutionSession's bootstrap JITDylib.
LLVM_ABI Expected< std::unique_ptr< EPCGenericMemoryAccess > > createEPCGenericMemoryAccess (JITDylib &JD)
 Create an EPCGenericMemoryAccess that reaches the memory-access wrappers in the given JITDylib via the runtime's SPS controller interface.
LLVM_ABI Expected< std::unique_ptr< EPCGenericMemoryAccess > > createEPCGenericMemoryAccess (ExecutionSession &ES)
 Create an EPCGenericMemoryAccess that reaches the memory-access wrappers in ES's bootstrap JITDylib via the runtime's SPS controller interface.

Typedef Documentation

◆ CallInt32Int32ProxySpec

Initial value:

SPS proxy for CallInt32Int32Proxy: runs an int32_t(int32_t) function in the executor.

WARNING: This Proxy is experimental and may be removed.

Definition at line 42 of file CallProxiesSPS.h.

◆ CallInt32VoidProxySpec

Initial value:

SPS proxy for CallInt32VoidProxy: runs an int32_t() function in the executor.

WARNING: This Proxy is experimental and may be removed.

Definition at line 36 of file CallProxiesSPS.h.

◆ CallMainProxySpec

SPS proxy for CallMainProxy: runs a main-like function (int(int argc, char *argv[])) in the executor.

Definition at line 26 of file CallProxiesSPS.h.

◆ CallVoidVoidProxySpec

Initial value:

SPS proxy for CallVoidVoidProxy: runs a void() function in the executor.

WARNING: This Proxy is experimental and may be removed.

Definition at line 30 of file CallProxiesSPS.h.

◆ DylibMgrOpenProxySpec

◆ DylibMgrResolveProxySpec

Initial value:
Proxy< Expected< tpctypes::LookupResult >( ExecutorAddr, ExecutorAddr, SymbolLookupSet)> ResolveProxy
Proxy for the executor-side symbol-resolution function.
Resolve the given lookup set within the given dylib.

Definition at line 35 of file EPCGenericDylibManagerSPS.h.

◆ MemMgrDeinitializeProxySpec

Initial value:
Proxy< Error(ExecutorAddr, ArrayRef< ExecutorAddr >)> DeinitializeProxy
Deinitialize the allocations with the given base addresses (running their deallocation actions) witho...
Deinitialize the allocations with the given base addresses (running their deallocation actions) witho...

Definition at line 39 of file EPCGenericJITLinkMemoryManagerSPS.h.

◆ MemMgrInitializeProxySpec

Initial value:
Proxy< Expected< ExecutorAddr >(ExecutorAddr, tpctypes::FinalizeRequest)> InitializeProxy
Apply a finalize request; returns a key for the initialized allocation.
Apply a finalize request; returns a key for the initialized allocation.

Definition at line 36 of file EPCGenericJITLinkMemoryManagerSPS.h.

◆ MemMgrReleaseProxySpec

Initial value:
Proxy< Error(ExecutorAddr, ArrayRef< ExecutorAddr >)> ReleaseProxy
Release the allocations with the given base addresses.
Release the allocations with the given base addresses.

Definition at line 42 of file EPCGenericJITLinkMemoryManagerSPS.h.

◆ MemMgrReserveProxySpec

Initial value:
Proxy< Expected< ExecutorAddr >(ExecutorAddr, uint64_t)> ReserveProxy
Reserve an address range of the given size; returns its base.
Reserve an address range of the given size; returns its base.

Definition at line 33 of file EPCGenericJITLinkMemoryManagerSPS.h.

◆ MemReadBuffersProxySpec

◆ MemReadPointersProxySpec

◆ MemReadStringsProxySpec

◆ MemReadUInt16sProxySpec

◆ MemReadUInt32sProxySpec

◆ MemReadUInt64sProxySpec

◆ MemReadUInt8sProxySpec

◆ MemWriteBuffersProxySpec

◆ MemWritePointersProxySpec

◆ MemWriteUInt16sProxySpec

◆ MemWriteUInt32sProxySpec

◆ MemWriteUInt64sProxySpec

◆ MemWriteUInt8sProxySpec

Function Documentation

◆ createEPCGenericDylibManager() [1/2]

Expected< std::unique_ptr< EPCGenericDylibManager > > llvm::orc::sps::createEPCGenericDylibManager ( ExecutionSession & ES)

Create an EPCGenericDylibManager for the ORC runtime's NativeDylibManager interface, resolving its symbols in the given ExecutionSession's bootstrap JITDylib.

Definition at line 65 of file EPCGenericDylibManagerSPS.cpp.

References createEPCGenericDylibManager(), and llvm::orc::ExecutionSession::getBootstrapJITDylib().

◆ createEPCGenericDylibManager() [2/2]

◆ createEPCGenericJITLinkMemoryManager() [1/2]

Expected< std::unique_ptr< EPCGenericJITLinkMemoryManager > > llvm::orc::sps::createEPCGenericJITLinkMemoryManager ( ExecutionSession & ES)

Create an EPCGenericJITLinkMemoryManager for the ORC runtime's SimpleNativeMemoryMap interface, resolving its symbols in the given ExecutionSession's bootstrap JITDylib.

Definition at line 38 of file EPCGenericJITLinkMemoryManagerSPS.cpp.

References createEPCGenericJITLinkMemoryManager(), and llvm::orc::ExecutionSession::getBootstrapJITDylib().

◆ createEPCGenericJITLinkMemoryManager() [2/2]

◆ createEPCGenericMemoryAccess() [1/2]

Expected< std::unique_ptr< EPCGenericMemoryAccess > > llvm::orc::sps::createEPCGenericMemoryAccess ( ExecutionSession & ES)

Create an EPCGenericMemoryAccess that reaches the memory-access wrappers in ES's bootstrap JITDylib via the runtime's SPS controller interface.

Definition at line 39 of file EPCGenericMemoryAccessSPS.cpp.

References createEPCGenericMemoryAccess(), and llvm::orc::ExecutionSession::getBootstrapJITDylib().

◆ createEPCGenericMemoryAccess() [2/2]