xref: /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Shared/OrcRTBridge.cpp (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
1 //===------ OrcRTBridge.cpp - Executor functions for bootstrap -----===//
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 #include "llvm/ExecutionEngine/Orc/Shared/OrcRTBridge.h"
10 
11 namespace llvm {
12 namespace orc {
13 namespace rt {
14 
15 const char *SimpleExecutorDylibManagerInstanceName =
16     "__llvm_orc_SimpleExecutorDylibManager_Instance";
17 const char *SimpleExecutorDylibManagerOpenWrapperName =
18     "__llvm_orc_SimpleExecutorDylibManager_open_wrapper";
19 const char *SimpleExecutorDylibManagerLookupWrapperName =
20     "__llvm_orc_SimpleExecutorDylibManager_lookup_wrapper";
21 
22 const char *SimpleExecutorMemoryManagerInstanceName =
23     "__llvm_orc_SimpleExecutorMemoryManager_Instance";
24 const char *SimpleExecutorMemoryManagerReserveWrapperName =
25     "__llvm_orc_SimpleExecutorMemoryManager_reserve_wrapper";
26 const char *SimpleExecutorMemoryManagerFinalizeWrapperName =
27     "__llvm_orc_SimpleExecutorMemoryManager_finalize_wrapper";
28 const char *SimpleExecutorMemoryManagerDeallocateWrapperName =
29     "__llvm_orc_SimpleExecutorMemoryManager_deallocate_wrapper";
30 
31 const char *ExecutorSharedMemoryMapperServiceInstanceName =
32     "__llvm_orc_ExecutorSharedMemoryMapperService_Instance";
33 const char *ExecutorSharedMemoryMapperServiceReserveWrapperName =
34     "__llvm_orc_ExecutorSharedMemoryMapperService_Reserve";
35 const char *ExecutorSharedMemoryMapperServiceInitializeWrapperName =
36     "__llvm_orc_ExecutorSharedMemoryMapperService_Initialize";
37 const char *ExecutorSharedMemoryMapperServiceDeinitializeWrapperName =
38     "__llvm_orc_ExecutorSharedMemoryMapperService_Deinitialize";
39 const char *ExecutorSharedMemoryMapperServiceReleaseWrapperName =
40     "__llvm_orc_ExecutorSharedMemoryMapperService_Release";
41 
42 const char *MemoryWriteUInt8sWrapperName =
43     "__llvm_orc_bootstrap_mem_write_uint8s_wrapper";
44 const char *MemoryWriteUInt16sWrapperName =
45     "__llvm_orc_bootstrap_mem_write_uint16s_wrapper";
46 const char *MemoryWriteUInt32sWrapperName =
47     "__llvm_orc_bootstrap_mem_write_uint32s_wrapper";
48 const char *MemoryWriteUInt64sWrapperName =
49     "__llvm_orc_bootstrap_mem_write_uint64s_wrapper";
50 const char *MemoryWriteBuffersWrapperName =
51     "__llvm_orc_bootstrap_mem_write_buffers_wrapper";
52 
53 const char *RegisterEHFrameSectionWrapperName =
54     "llvm_orc_registerEHFrameSectionWrapper";
55 const char *DeregisterEHFrameSectionWrapperName =
56     "llvm_orc_deregisterEHFrameSectionWrapper";
57 
58 const char *RunAsMainWrapperName = "__llvm_orc_bootstrap_run_as_main_wrapper";
59 const char *RunAsVoidFunctionWrapperName =
60     "__llvm_orc_bootstrap_run_as_void_function_wrapper";
61 const char *RunAsIntFunctionWrapperName =
62     "__llvm_orc_bootstrap_run_as_int_function_wrapper";
63 
64 } // end namespace rt
65 } // end namespace orc
66 } // end namespace llvm
67