LLVM 24.0.0git
SharedMemoryMapSPS.cpp
Go to the documentation of this file.
1//===- SharedMemoryMapSPS.cpp - SPS shared-memory map bindings ------------===//
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
10
13
14namespace llvm::orc::sps {
15
18 // Instance is the executor-side mapper object -- a data symbol passed as the
19 // first argument to each call, not a wrapper to proxy.
20 if (auto Err = lookupAndApply(
21 JD,
27 return std::move(Err);
28 return std::move(B);
29}
30
35
36} // namespace llvm::orc::sps
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Tagged union holding either a T or a Error.
Definition Error.h:485
An ExecutionSession represents a running JIT program.
Definition Core.h:1111
JITDylib & getBootstrapJITDylib()
Returns a reference to the bootstrap JITDylib.
Definition Core.h:1177
Represents a JIT'd dynamic library.
Definition Core.h:675
constexpr SymbolNameSpec SharedMemoryMapperInstanceName
LLVM_ABI Expected< SharedMemoryMapBindings > createSharedMemoryMapBindings(JITDylib &JD)
Build bindings over the SPS controller interface, resolving the operations in the given JITDylib unde...
LookupPrepareFn recordProxy(Proxy< FnT > *P, typename Proxy< FnT >::DispatchFn Dispatch, SymbolNameSpec Name, SymbolLookupFlags LF=SymbolLookupFlags::RequiredSymbol)
Builds P over the symbol with the given name, dispatching through Dispatch.
Definition RecordProxy.h:32
LLVM_ABI void lookupAndApply(unique_function< void(Error)> OnApplied, LookupKind K, const JITDylibSearchOrder &SearchOrder, ArrayRef< LookupPrepareFn > PrepareFns)
Resolve the symbols contributed by every prepare function with a single lookup, then let each of thei...
LookupPrepareFn recordAddr(SymbolNameSpec Name, ExecutorAddr *A, SymbolLookupFlags LF=SymbolLookupFlags::RequiredSymbol)
Records the address of the symbol with the given name.
The resolved controller-side handle to an executor-side shared-memory mapper: the address of the mapp...