LLVM 24.0.0git
DlfcnSPSCI.h
Go to the documentation of this file.
1//===----- DlfcnSPSCI.h - SPS CI for dlfcn-style calls ----------*- 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 dlfcn-style calls
10// (dlopen / dlupdate / dlclose). See CallSPSCI.h for the descriptor scheme.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_EXECUTIONENGINE_ORC_SHARED_SPSCI_DLFCNSPSCI_H
15#define LLVM_EXECUTIONENGINE_ORC_SHARED_SPSCI_DLFCNSPSCI_H
16
20
21#include <cstdint>
22
23namespace llvm::orc::rt::sps_ci {
24
25/// Open a JITDylib by name with the given dlopen-style mode flags; returns its
26/// dso handle.
27struct DlfcnOpen {
28 static constexpr SymbolNameSpec Name =
29 SymbolNameSpec::verbatim("__orc_rt_jit_dlopen_wrapper");
31};
32
33/// Re-run initializers for an already-open dso handle; returns nonzero on
34/// failure.
36 static constexpr SymbolNameSpec Name =
37 SymbolNameSpec::verbatim("__orc_rt_jit_dlupdate_wrapper");
39};
40
41/// Close the given dso handle, running its deinitializers; returns nonzero on
42/// failure.
43struct DlfcnClose {
44 static constexpr SymbolNameSpec Name =
45 SymbolNameSpec::verbatim("__orc_rt_jit_dlclose_wrapper");
47};
48
49} // namespace llvm::orc::rt::sps_ci
50
51#endif // LLVM_EXECUTIONENGINE_ORC_SHARED_SPSCI_DLFCNSPSCI_H
A symbol name together with the naming level (SymbolNameKind) it is expressed in, so that a Mangler /...
static constexpr SymbolNameSpec verbatim(StringRef Name)
SPSSequence< char > SPSString
SPS tag type for strings, which are equivalent to sequences of chars.
Close the given dso handle, running its deinitializers; returns nonzero on failure.
Definition DlfcnSPSCI.h:43
static constexpr SymbolNameSpec Name
Definition DlfcnSPSCI.h:44
int32_t(shared::SPSExecutorAddr) SPSSig
Definition DlfcnSPSCI.h:46
Open a JITDylib by name with the given dlopen-style mode flags; returns its dso handle.
Definition DlfcnSPSCI.h:27
static constexpr SymbolNameSpec Name
Definition DlfcnSPSCI.h:28
shared::SPSExecutorAddr(shared::SPSString, int32_t) SPSSig
Definition DlfcnSPSCI.h:30
Re-run initializers for an already-open dso handle; returns nonzero on failure.
Definition DlfcnSPSCI.h:35
int32_t(shared::SPSExecutorAddr) SPSSig
Definition DlfcnSPSCI.h:38
static constexpr SymbolNameSpec Name
Definition DlfcnSPSCI.h:36