9#ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORSHAREDMEMORYMAPPERSERVICE_H
10#define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORSHAREDMEMORYMAPPERSERVICE_H
13#include "llvm/Config/llvm-config.h"
26namespace rt_bootstrap {
45 std::vector<shared::WrapperFunctionCall> DeinitializationActions;
51 std::vector<ExecutorAddr> Allocations;
53 HANDLE SharedMemoryFile;
59 reserveWrapper(
const char *ArgData,
size_t ArgSize);
62 initializeWrapper(
const char *ArgData,
size_t ArgSize);
65 deinitializeWrapper(
const char *ArgData,
size_t ArgSize);
68 releaseWrapper(
const char *ArgData,
size_t ArgSize);
70#if (defined(LLVM_ON_UNIX) && !defined(__ANDROID__)) || defined(_WIN32)
71 std::atomic<int> SharedMemoryCount{0};
75 ReservationMap Reservations;
76 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.