9#ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORSHAREDMEMORYMAPPERSERVICE_H
10#define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORSHAREDMEMORYMAPPERSERVICE_H
25namespace rt_bootstrap {
44 std::vector<shared::WrapperFunctionCall> DeinitializationActions;
50 std::vector<ExecutorAddr> Allocations;
52 HANDLE SharedMemoryFile;
58 reserveWrapper(
const char *ArgData,
size_t ArgSize);
61 initializeWrapper(
const char *ArgData,
size_t ArgSize);
64 deinitializeWrapper(
const char *ArgData,
size_t ArgSize);
67 releaseWrapper(
const char *ArgData,
size_t ArgSize);
69#if (defined(LLVM_ON_UNIX) && !defined(__ANDROID__)) || defined(_WIN32)
70 std::atomic<int> SharedMemoryCount{0};
74 ReservationMap Reservations;
75 AllocationMap Allocations;
This file defines the DenseMap class.
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
Represents an address in the executor process.
void addBootstrapSymbols(StringMap< ExecutorAddr > &M) override
~ExecutorSharedMemoryMapperService()
Error deinitialize(const std::vector< ExecutorAddr > &Bases)
Expected< std::pair< ExecutorAddr, std::string > > reserve(uint64_t Size)
Error shutdown() override
Expected< ExecutorAddr > initialize(ExecutorAddr Reservation, tpctypes::SharedMemoryFinalizeRequest &FR)
This is an optimization pass for GlobalISel generic memory operations.