LLVM 24.0.0git
GenericMemoryManagerProxies.h
Go to the documentation of this file.
1//===- GenericMemoryManagerProxies.h - Proxies for mem mgmt -----*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Named rt::Proxy types for the executor's memory-manager operations. The
10// instance address of the executor-side manager is passed as the first
11// argument to each call.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_EXECUTIONENGINE_ORC_RTBRIDGE_GENERICMEMORYMANAGERPROXIES_H
16#define LLVM_EXECUTIONENGINE_ORC_RTBRIDGE_GENERICMEMORYMANAGERPROXIES_H
17
18#include "llvm/ADT/ArrayRef.h"
21
22#include <cstdint>
23
24namespace llvm::orc::rt {
25
26/// Reserve an address range of the given size; returns its base.
29
30/// Apply a finalize request; returns a key for the initialized allocation.
33
34/// Deinitialize the allocations with the given base addresses (running their
35/// deallocation actions) without releasing their memory.
38
39/// Release the allocations with the given base addresses.
41
42} // namespace llvm::orc::rt
43
44#endif // LLVM_EXECUTIONENGINE_ORC_RTBRIDGE_GENERICMEMORYMANAGERPROXIES_H
Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition ArrayRef.h:40
Represents an address in the executor process.
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.