LLVM 24.0.0git
NativeDylibManagerSPSCI.h
Go to the documentation of this file.
1//===--- NativeDylibManagerSPSCI.h - SPS CI for dylib mgmt ------*- 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// SPS controller-interface descriptors for the runtime's NativeDylibManager
10// interface. Instances of the executor-side manager are created by calling
11// DylibMgrCreate, and the instance address is passed as the first argument to
12// each of the other calls.
13//
14// See CallSPSCI.h for a description of the descriptor scheme.
15//
16//===----------------------------------------------------------------------===//
17
18#ifndef LLVM_EXECUTIONENGINE_ORC_SHARED_SPSCI_NATIVEDYLIBMANAGERSPSCI_H
19#define LLVM_EXECUTIONENGINE_ORC_SHARED_SPSCI_NATIVEDYLIBMANAGERSPSCI_H
20
25
26#include <cstdint>
27
28namespace llvm::orc::rt::sps_ci {
29
30/// Create a new executor-side dylib-manager instance; returns its address.
31/// The instance is owned by the executor, and lives until the executor shuts
32/// down.
34 static constexpr SymbolNameSpec Name =
35 SymbolNameSpec::c("orc_rt_ci_sps_NativeDylibManager_create");
37};
38
39/// A pre-created executor-side dylib-manager instance. This is a data symbol
40/// (the manager object), not a wrapper to call.
41///
42/// This is published by executors that do not provide DylibMgrCreate --
43/// currently only LLVM's OrcTargetProcess library, whose wrapper functions
44/// have no context through which a new instance could be registered. Executors
45/// built on the ORC runtime provide DylibMgrCreate instead.
46///
47/// FIXME: Remove this once OrcTargetProcess is retired.
49 SymbolNameSpec::c("orc_rt_ci_NativeDylibManager_Instance");
50
51/// Open the dylib at the given path with the given mode flags; returns a
52/// handle to it.
54 static constexpr SymbolNameSpec Name =
55 SymbolNameSpec::c("orc_rt_ci_sps_NativeDylibManager_load");
58};
59
60/// Resolve the given lookup set within the given dylib.
69
70} // namespace llvm::orc::rt::sps_ci
71
72#endif // LLVM_EXECUTIONENGINE_ORC_SHARED_SPSCI_NATIVEDYLIBMANAGERSPSCI_H
uint64_t uint64_t
A symbol name together with the naming level (SymbolNameKind) it is expressed in, so that a Mangler /...
static constexpr SymbolNameSpec c(StringRef Name)
SPS tag type for expecteds, which are either a T or a string representing an error.
constexpr SymbolNameSpec NativeDylibManagerInstanceName
A pre-created executor-side dylib-manager instance.
SPSSequence< char > SPSString
SPS tag type for strings, which are equivalent to sequences of chars.
SPSSequence< SPSSymbolLookupSetElement > SPSSymbolLookupSet
Create a new executor-side dylib-manager instance; returns its address.
shared::SPSExpected< shared::SPSExecutorAddr >() SPSSig
Open the dylib at the given path with the given mode flags; returns a handle to it.
static constexpr SymbolNameSpec Name
shared::SPSExpected< shared::SPSExecutorAddr >( shared::SPSExecutorAddr, shared::SPSString, uint64_t) SPSSig
Resolve the given lookup set within the given dylib.
shared::SPSExpected< shared::SPSSequence< shared::SPSOptional< shared::SPSExecutorAddr > > >( shared::SPSExecutorAddr, shared::SPSExecutorAddr, shared::SPSSymbolLookupSet) SPSSig