18#ifndef LLVM_EXECUTIONENGINE_ORC_EPCGENERICJITLINKMEMORYMANAGER_H
19#define LLVM_EXECUTIONENGINE_ORC_EPCGENERICJITLINKMEMORYMANAGER_H
67 OnAllocatedFunction OnAllocated)
override;
70 using JITLinkMemoryManager::allocate;
72 void deallocate(std::vector<FinalizedAlloc> Allocs,
73 OnDeallocatedFunction OnDeallocated)
override;
76 using JITLinkMemoryManager::deallocate;
82 OnAllocatedFunction OnAllocated);
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Tagged union holding either a T or a Error.
BasicLayout simplifies the implementation of JITLinkMemoryManagers.
Represents a JITDylib as seen by JITLink.
Manages allocations of JIT memory.
EPCGenericJITLinkMemoryManager(ExecutionSession &ES, Bindings B)
Create an EPCGenericJITLinkMemoryManager instance from a given set of memory-manager bindings.
An ExecutionSession represents a running JIT program.
Represents an address in the executor process.
Represents a JIT'd dynamic library.
Proxy< Error(ExecutorAddr, ArrayRef< ExecutorAddr >)> MemMgrReleaseProxy
Release the allocations with the given base addresses.
Proxy< Error(ExecutorAddr, ArrayRef< ExecutorAddr >)> MemMgrDeinitializeProxy
Deinitialize the allocations with the given base addresses (running their deallocation actions) witho...
Proxy< Expected< ExecutorAddr >(ExecutorAddr, tpctypes::FinalizeRequest)> MemMgrInitializeProxy
Apply a finalize request; returns a key for the initialized allocation.
Proxy< Expected< ExecutorAddr >(ExecutorAddr, uint64_t)> MemMgrReserveProxy
Reserve an address range of the given size; returns its base.
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.
The resolved controller-side handle to an executor-side memory manager: the address of the allocator ...
rt::MemMgrDeinitializeProxy Deinitialize
rt::MemMgrInitializeProxy Initialize
rt::MemMgrReserveProxy Reserve
rt::MemMgrReleaseProxy Release