1349cc55cSDimitry Andric //===----------------------- OrcRTBootstrap.h -------------------*- C++ -*-===// 2349cc55cSDimitry Andric // 3349cc55cSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4349cc55cSDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5349cc55cSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6349cc55cSDimitry Andric // 7349cc55cSDimitry Andric //===----------------------------------------------------------------------===// 8349cc55cSDimitry Andric // 9349cc55cSDimitry Andric // OrcRTPrelinkImpl provides functions that should be linked into the executor 10349cc55cSDimitry Andric // to bootstrap common JIT functionality (e.g. memory allocation and memory 11349cc55cSDimitry Andric // access). 12349cc55cSDimitry Andric // 13349cc55cSDimitry Andric // Call rt_impl::addTo to add these functions to a bootstrap symbols map. 14349cc55cSDimitry Andric // 15349cc55cSDimitry Andric // FIXME: The functionality in this file should probably be moved to an ORC 16349cc55cSDimitry Andric // runtime bootstrap library in compiler-rt. 17349cc55cSDimitry Andric // 18349cc55cSDimitry Andric //===----------------------------------------------------------------------===// 19349cc55cSDimitry Andric 20349cc55cSDimitry Andric #ifndef LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H 21349cc55cSDimitry Andric #define LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H 22349cc55cSDimitry Andric 23349cc55cSDimitry Andric #include "llvm/ADT/StringMap.h" 24349cc55cSDimitry Andric #include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h" 25349cc55cSDimitry Andric 26349cc55cSDimitry Andric namespace llvm { 27349cc55cSDimitry Andric namespace orc { 28349cc55cSDimitry Andric namespace rt_bootstrap { 29349cc55cSDimitry Andric 30349cc55cSDimitry Andric void addTo(StringMap<ExecutorAddr> &M); 31349cc55cSDimitry Andric 32349cc55cSDimitry Andric } // namespace rt_bootstrap 33349cc55cSDimitry Andric } // end namespace orc 34349cc55cSDimitry Andric } // end namespace llvm 35349cc55cSDimitry Andric 36*04eeddc0SDimitry Andric #endif // LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H 37