#include "llvm/ExecutionEngine/Orc/MemoryMapper.h"
#include "llvm/Support/Process.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
usingnamespacellvm;
usingnamespacellvm::orc;
usingnamespacellvm::orc::shared;
namespace {
Expected<ExecutorAddrRange> reserve(MemoryMapper &M, size_t NumBytes) { … }
Expected<ExecutorAddr> initialize(MemoryMapper &M,
MemoryMapper::AllocInfo &AI) { … }
Error deinitialize(MemoryMapper &M,
const std::vector<ExecutorAddr> &Allocations) { … }
Error release(MemoryMapper &M, const std::vector<ExecutorAddr> &Reservations) { … }
orc::shared::CWrapperFunctionResult incrementWrapper(const char *ArgData,
size_t ArgSize) { … }
TEST(MemoryMapperTest, InitializeDeinitialize) { … }
}