Path: blob/main/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/OrcRTBootstrap.h
35323 views
//===----------------------- OrcRTBootstrap.h -------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// OrcRTPrelinkImpl provides functions that should be linked into the executor9// to bootstrap common JIT functionality (e.g. memory allocation and memory10// access).11//12// Call rt_impl::addTo to add these functions to a bootstrap symbols map.13//14// FIXME: The functionality in this file should probably be moved to an ORC15// runtime bootstrap library in compiler-rt.16//17//===----------------------------------------------------------------------===//1819#ifndef LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H20#define LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H2122#include "llvm/ADT/StringMap.h"23#include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h"2425namespace llvm {26namespace orc {27namespace rt_bootstrap {2829void addTo(StringMap<ExecutorAddr> &M);3031} // namespace rt_bootstrap32} // end namespace orc33} // end namespace llvm3435#endif // LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H363738