LLVM 23.0.0git
OrcRTBridge.h
Go to the documentation of this file.
1//===---- OrcRTBridge.h -- Utils for interacting with orc-rt ----*- 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// Declares types and symbol names provided by the ORC runtime.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_EXECUTIONENGINE_ORC_SHARED_ORCRTBRIDGE_H
14#define LLVM_EXECUTIONENGINE_ORC_SHARED_ORCRTBRIDGE_H
15
21
22namespace llvm {
23namespace orc {
24namespace rt {
25
29
35
38LLVM_ABI extern const char
40LLVM_ABI extern const char
43
44LLVM_ABI extern const char *MemoryWriteUInt8sWrapperName;
50
51LLVM_ABI extern const char *MemoryReadUInt8sWrapperName;
52LLVM_ABI extern const char *MemoryReadUInt16sWrapperName;
53LLVM_ABI extern const char *MemoryReadUInt32sWrapperName;
54LLVM_ABI extern const char *MemoryReadUInt64sWrapperName;
56LLVM_ABI extern const char *MemoryReadBuffersWrapperName;
57LLVM_ABI extern const char *MemoryReadStringsWrapperName;
58
61
63
64LLVM_ABI extern const char *RunAsMainWrapperName;
65LLVM_ABI extern const char *RunAsVoidFunctionWrapperName;
66LLVM_ABI extern const char *RunAsIntFunctionWrapperName;
67
68/// Symbol names for memory management implementation.
69/// FIXME: We should find a better home for this struct.
77
78/// Default symbol names for the ORC runtime's SimpleNativeMemoryMap SPS
79/// interface.
82
86
90
93 uint64_t);
101
102// ExecutorSharedMemoryMapperService
112 shared::SPSError(shared::SPSExecutorAddr,
116
117// SimpleNativeMemoryMap APIs.
120 uint64_t);
128
133} // end namespace rt
134
135namespace rt_alt {
138} // end namespace rt_alt
139} // end namespace orc
140} // end namespace llvm
141
142#endif // LLVM_EXECUTIONENGINE_ORC_SHARED_ORCRTBRIDGE_H
#define LLVM_ABI
Definition Compiler.h:213
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
SPS tag type for expecteds, which are either a T or a string representing an error.
LLVM_ABI const char * UnwindInfoManagerDeregisterActionName
LLVM_ABI const char * UnwindInfoManagerRegisterActionName
LLVM_ABI const char * SimpleExecutorMemoryManagerInitializeWrapperName
shared::SPSExpected< shared::SPSExecutorAddr >(shared::SPSExecutorAddr, uint64_t) SPSSimpleExecutorMemoryManagerReserveSignature
Definition OrcRTBridge.h:91
int64_t(shared::SPSExecutorAddr, shared::SPSSequence< shared::SPSString >) SPSRunAsMainSignature
LLVM_ABI const char * MemoryReadUInt64sWrapperName
LLVM_ABI const char * MemoryWriteUInt16sWrapperName
LLVM_ABI const char * MemoryReadStringsWrapperName
LLVM_ABI const char * MemoryReadUInt16sWrapperName
LLVM_ABI const char * RunAsIntFunctionWrapperName
LLVM_ABI const char * ExecutorSharedMemoryMapperServiceInstanceName
LLVM_ABI const char * MemoryReadPointersWrapperName
int32_t(shared::SPSExecutorAddr) SPSRunAsVoidFunctionSignature
shared::SPSExpected< shared::SPSTuple< shared::SPSExecutorAddr, shared::SPSString > >( shared::SPSExecutorAddr, uint64_t) SPSExecutorSharedMemoryMapperServiceReserveSignature
shared::SPSExpected< shared::SPSExecutorAddr >(shared::SPSExecutorAddr, shared::SPSFinalizeRequest) SPSSimpleExecutorMemoryManagerInitializeSignature
Definition OrcRTBridge.h:94
shared::SPSExpected< shared::SPSExecutorAddr >(shared::SPSExecutorAddr, shared::SPSString, uint64_t) SPSSimpleExecutorDylibManagerOpenSignature
Definition OrcRTBridge.h:83
LLVM_ABI const char * DeregisterEHFrameSectionAllocActionName
shared::SPSError( shared::SPSExecutorAddr, shared::SPSSequence< shared::SPSExecutorAddr >) SPSSimpleExecutorMemoryManagerDeinitializeSignature
Definition OrcRTBridge.h:97
LLVM_ABI const char * SimpleExecutorDylibManagerResolveWrapperName
LLVM_ABI const char * MemoryReadUInt32sWrapperName
LLVM_ABI const char * ExecutorSharedMemoryMapperServiceReserveWrapperName
LLVM_ABI const char * SimpleExecutorMemoryManagerReserveWrapperName
LLVM_ABI const char * RegisterJITLoaderGDBAllocActionName
LLVM_ABI const char * SimpleExecutorDylibManagerOpenWrapperName
shared::SPSExpected< shared::SPSExecutorAddr >(shared::SPSExecutorAddr, shared::SPSFinalizeRequest) SPSSimpleRemoteMemoryMapInitializeSignature
LLVM_ABI const char * ExecutorSharedMemoryMapperServiceDeinitializeWrapperName
LLVM_ABI const char * ExecutorSharedMemoryMapperServiceReleaseWrapperName
LLVM_ABI const char * MemoryWriteUInt64sWrapperName
LLVM_ABI const char * SimpleExecutorMemoryManagerReleaseWrapperName
LLVM_ABI const char * MemoryWriteUInt8sWrapperName
int32_t(shared::SPSExecutorAddr, int32_t) SPSRunAsIntFunctionSignature
LLVM_ABI const char * MemoryWritePointersWrapperName
LLVM_ABI const char * MemoryWriteUInt32sWrapperName
shared::SPSError( shared::SPSExecutorAddr, shared::SPSSequence< shared::SPSExecutorAddr >) SPSSimpleRemoteMemoryMapReleaseSignature
LLVM_ABI const char * RegisterEHFrameSectionAllocActionName
LLVM_ABI const char * SimpleExecutorMemoryManagerDeinitializeWrapperName
shared::SPSExpected< shared::SPSSequence< shared::SPSOptional< shared::SPSExecutorSymbolDef > > >( shared::SPSExecutorAddr, shared::SPSRemoteSymbolLookupSet) SPSSimpleExecutorDylibManagerResolveSignature
Definition OrcRTBridge.h:87
LLVM_ABI const char * RunAsVoidFunctionWrapperName
LLVM_ABI const char * MemoryWriteBuffersWrapperName
shared::SPSExpected< shared::SPSExecutorAddr >( shared::SPSExecutorAddr, shared::SPSExecutorAddr, shared::SPSSharedMemoryFinalizeRequest) SPSExecutorSharedMemoryMapperServiceInitializeSignature
shared::SPSError( shared::SPSExecutorAddr, shared::SPSSequence< shared::SPSExecutorAddr >) SPSSimpleExecutorMemoryManagerReleaseSignature
Definition OrcRTBridge.h:99
shared::SPSExpected< shared::SPSExecutorAddr >(shared::SPSExecutorAddr, uint64_t) SPSSimpleRemoteMemoryMapReserveSignature
LLVM_ABI const char * MemoryReadBuffersWrapperName
LLVM_ABI const char * RunAsMainWrapperName
shared::SPSError( shared::SPSExecutorAddr, shared::SPSSequence< shared::SPSExecutorAddr >) SPSSimpleRemoteMemoryMapDeinitializeSignature
LLVM_ABI const char * SimpleExecutorDylibManagerInstanceName
shared::SPSError(shared::SPSExecutorAddr, shared::SPSSequence< shared::SPSExecutorAddr >) SPSExecutorSharedMemoryMapperServiceDeinitializeSignature
LLVM_ABI const char * MemoryReadUInt8sWrapperName
LLVM_ABI const char * SimpleExecutorMemoryManagerInstanceName
LLVM_ABI const char * ExecutorSharedMemoryMapperServiceInitializeWrapperName
shared::SPSError( shared::SPSExecutorAddr, shared::SPSSequence< shared::SPSExecutorAddr >) SPSExecutorSharedMemoryMapperServiceReleaseSignature
const SimpleExecutorMemoryManagerSymbolNames orc_rt_SimpleNativeMemoryMapSPSSymbols
Default symbol names for the ORC runtime's SimpleNativeMemoryMap SPS interface.
SPSTuple< SPSSequence< SPSSegFinalizeRequest >, SPSSequence< SPSAllocActionCallPair > > SPSFinalizeRequest
SPSSequence< char > SPSString
SPS tag type for strings, which are equivalent to sequences of chars.
SPSSequence< SPSRemoteSymbolLookupSetElement > SPSRemoteSymbolLookupSet
SPSTuple< SPSSequence< SPSSharedMemorySegFinalizeRequest >, SPSSequence< SPSAllocActionCallPair > > SPSSharedMemoryFinalizeRequest
This is an optimization pass for GlobalISel generic memory operations.
Symbol names for memory management implementation.
Definition OrcRTBridge.h:70