17#ifndef LLVM_EXECUTIONENGINE_ORC_SIMPLEREMOTEMEMORYMAPPER_H
18#define LLVM_EXECUTIONENGINE_ORC_SIMPLEREMOTEMEMORYMAPPER_H
34 return std::make_unique<SimpleRemoteMemoryMapper>(ES, std::move(B));
38 return ES.getExecutorProcessControl().getPageSize();
43 void reserve(
size_t NumBytes, OnReservedFunction OnReserved)
override;
46 size_t ContentSize)
override;
58 OnDeinitializedFunction OnDeInitialized)
override;
63 OnReleasedFunction OnRelease)
override;
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, const llvm::StringTable &StandardNames, VectorLibrary VecLib)
Initialize the set of available library functions based on the specified target triple.
Represent a constant reference to an array (0 or more elements consecutively in memory),...
Tagged union holding either a T or a Error.
An ExecutionSession represents a running JIT program.
Represents an address in the executor process.
Manages mapping, content transfer and protections for JIT memory.
static Expected< std::unique_ptr< SimpleRemoteMemoryMapper > > Create(ExecutionSession &ES, SimpleMemoryMapBindings B)
unsigned int getPageSize() override
SimpleRemoteMemoryMapper(ExecutionSession &ES, SimpleMemoryMapBindings B)
Create a SimpleRemoteMemoryMapper from a given set of memory-manager bindings.
Summary of memprof metadata on allocations.
The resolved controller-side handle to an executor-side memory manager: the address of the manager in...