1*2c8e7849SLang Hames //===----------------------- OrcRTBootstrap.h -------------------*- C++ -*-===//
2*2c8e7849SLang Hames //
3*2c8e7849SLang Hames // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*2c8e7849SLang Hames // See https://llvm.org/LICENSE.txt for license information.
5*2c8e7849SLang Hames // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*2c8e7849SLang Hames //
7*2c8e7849SLang Hames //===----------------------------------------------------------------------===//
8*2c8e7849SLang Hames //
9*2c8e7849SLang Hames // OrcRTPrelinkImpl provides functions that should be linked into the executor
10*2c8e7849SLang Hames // to bootstrap common JIT functionality (e.g. memory allocation and memory
11*2c8e7849SLang Hames // access).
12*2c8e7849SLang Hames //
13*2c8e7849SLang Hames // Call rt_impl::addTo to add these functions to a bootstrap symbols map.
14*2c8e7849SLang Hames //
15*2c8e7849SLang Hames // FIXME: The functionality in this file should probably be moved to an ORC
16*2c8e7849SLang Hames // runtime bootstrap library in compiler-rt.
17*2c8e7849SLang Hames //
18*2c8e7849SLang Hames //===----------------------------------------------------------------------===//
19*2c8e7849SLang Hames 
20*2c8e7849SLang Hames #ifndef LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H
21*2c8e7849SLang Hames #define LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H
22*2c8e7849SLang Hames 
23*2c8e7849SLang Hames #include "llvm/ADT/StringMap.h"
24*2c8e7849SLang Hames #include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h"
25*2c8e7849SLang Hames 
26*2c8e7849SLang Hames namespace llvm {
27*2c8e7849SLang Hames namespace orc {
28*2c8e7849SLang Hames namespace rt_bootstrap {
29*2c8e7849SLang Hames 
30*2c8e7849SLang Hames void addTo(StringMap<ExecutorAddress> &M);
31*2c8e7849SLang Hames 
32*2c8e7849SLang Hames } // namespace rt_bootstrap
33*2c8e7849SLang Hames } // end namespace orc
34*2c8e7849SLang Hames } // end namespace llvm
35*2c8e7849SLang Hames 
36*2c8e7849SLang Hames #endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H
37