LLVM 24.0.0git
RemoteSymbolLookupSet.h
Go to the documentation of this file.
1//===- RemoteSymbolLookupSet.h - Executor-side lookup sets ------*- 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// The executor-side representation of a symbol lookup set, and its SPS
10// serialization.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_REMOTESYMBOLLOOKUPSET_H
15#define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_REMOTESYMBOLLOOKUPSET_H
16
19
20#include <string>
21#include <vector>
22
23namespace llvm::orc {
24
26 std::string Name;
28};
29
30using RemoteSymbolLookupSet = std::vector<RemoteSymbolLookupSetElement>;
31
32namespace shared {
33
34template <>
37public:
38 static size_t size(const RemoteSymbolLookupSetElement &V) {
39 return SPSArgList<SPSString, bool>::size(V.Name, V.Required);
40 }
41
42 static size_t serialize(SPSOutputBuffer &OB,
44 return SPSArgList<SPSString, bool>::serialize(OB, V.Name, V.Required);
45 }
46
47 static size_t deserialize(SPSInputBuffer &IB,
49 return SPSArgList<SPSString, bool>::deserialize(IB, V.Name, V.Required);
50 }
51};
52
53} // namespace shared
54
55} // namespace llvm::orc
56
57#endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_REMOTESYMBOLLOOKUPSET_H
A utility class for serializing to a blob from a variadic list.
Input char buffer with underflow check.
Output char buffer with overflow check.
static size_t serialize(SPSOutputBuffer &OB, const RemoteSymbolLookupSetElement &V)
Specialize to describe how to serialize/deserialize to/from the given concrete type.
SPSTuple< SPSString, bool > SPSSymbolLookupSetElement
A symbol name, and whether the symbol is required (true) or weakly referenced (false).
std::vector< RemoteSymbolLookupSetElement > RemoteSymbolLookupSet