21#ifndef LLVM_EXECUTIONENGINE_ORC_EPCGENERICJITLINKMEMORYMANAGER_H
22#define LLVM_EXECUTIONENGINE_ORC_EPCGENERICJITLINKMEMORYMANAGER_H
76 OnAllocatedFunction OnAllocated)
override;
79 using JITLinkMemoryManager::allocate;
81 void deallocate(std::vector<FinalizedAlloc> Allocs,
82 OnDeallocatedFunction OnDeallocated)
override;
85 using JITLinkMemoryManager::deallocate;
91 OnAllocatedFunction OnAllocated);
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Represent a constant reference to an array (0 or more elements consecutively in memory),...
Lightweight error class with error context and mandatory checking.
BasicLayout simplifies the implementation of JITLinkMemoryManagers.
Represents a JITDylib as seen by JITLink.
Manages allocations of JIT memory.
Proxy< Expected< ExecutorAddr >(ExecutorAddr, uint64_t)> ReserveProxy
Reserve an address range of the given size; returns its base.
EPCGenericJITLinkMemoryManager(ExecutionSession &ES, Bindings B)
Create an EPCGenericJITLinkMemoryManager instance from a given set of memory-manager bindings.
Proxy< Error(ExecutorAddr, ArrayRef< ExecutorAddr >)> DeinitializeProxy
Deinitialize the allocations with the given base addresses (running their deallocation actions) witho...
Proxy< Error(ExecutorAddr, ArrayRef< ExecutorAddr >)> ReleaseProxy
Release the allocations with the given base addresses.
Proxy< Expected< ExecutorAddr >(ExecutorAddr, tpctypes::FinalizeRequest)> InitializeProxy
Apply a finalize request; returns a key for the initialized allocation.
An ExecutionSession represents a running JIT program.
Represents an address in the executor process.
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 ...
DeinitializeProxy Deinitialize
InitializeProxy Initialize