LLVM 24.0.0git
OrcRTBootstrap.h
Go to the documentation of this file.
1//===----------------------- OrcRTBootstrap.h -------------------*- 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// OrcRTBootstrap provides functions that should be linked into the executor
10// to bootstrap common JIT functionality (e.g. memory allocation and memory
11// access).
12//
13// Call addTo to add these functions to a bootstrap symbols map.
14//
15//===----------------------------------------------------------------------===//
16
17#ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H
18#define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H
19
20#include "llvm/ADT/StringMap.h"
22
24
25/// Adds executor-side wrappers for the run-as function proxies.
26void addRunAsFunctionWrappersTo(StringMap<ExecutorAddr> &M);
27
28/// Adds all default target-process bootstrap wrappers.
29void addTo(StringMap<ExecutorAddr> &M);
30
31} // namespace llvm::orc::rt_bootstrap
32
33#endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H
This file defines the StringMap class.
void addRunAsFunctionWrappersTo(StringMap< ExecutorAddr > &M)
Adds executor-side wrappers for the run-as function proxies.
void addTo(StringMap< ExecutorAddr > &M)
Adds all default target-process bootstrap wrappers.