14 #ifndef LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H 15 #define LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H 25 template <
typename DylibLookupFtorT,
typename ExternalLookupFtorT>
30 ExternalLookupFtorT ExternalLookupFtor),
31 "ORCv1 utilities (including resolvers) are deprecated and will be " 33 "in the next release. Please use ORCv2 (see docs/ORCv2.rst)");
36 DylibLookupFtorT DylibLookupFtor,
37 ExternalLookupFtorT ExternalLookupFtor)
38 : DylibLookupFtor(DylibLookupFtor),
39 ExternalLookupFtor(ExternalLookupFtor) {}
42 return DylibLookupFtor(
Name);
46 return ExternalLookupFtor(
Name);
50 DylibLookupFtorT DylibLookupFtor;
51 ExternalLookupFtorT ExternalLookupFtor;
54 template <
typename DylibLookupFtorT,
typename ExternalLookupFtorT>
56 DylibLookupFtorT DylibLookupFtor, ExternalLookupFtorT ExternalLookupFtor)
57 : DylibLookupFtor(DylibLookupFtor), ExternalLookupFtor(ExternalLookupFtor) {
60 template <
typename DylibLookupFtorT,
61 typename ExternalLookupFtorT>
62 std::shared_ptr<LambdaResolver<DylibLookupFtorT, ExternalLookupFtorT>>
64 ExternalLookupFtorT ExternalLookupFtor) {
66 return std::make_unique<LR>(std::move(DylibLookupFtor),
67 std::move(ExternalLookupFtor));
70 template <
typename DylibLookupFtorT,
typename ExternalLookupFtorT>
71 std::shared_ptr<LambdaResolver<DylibLookupFtorT, ExternalLookupFtorT>>
73 DylibLookupFtorT DylibLookupFtor,
74 ExternalLookupFtorT ExternalLookupFtor) {
77 std::move(DylibLookupFtor),
78 std::move(ExternalLookupFtor));
84 #endif // LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H
Represents a symbol in the JIT.
This class represents lattice values for constants.
LambdaResolver(ORCv1DeprecationAcknowledgement, DylibLookupFtorT DylibLookupFtor, ExternalLookupFtorT ExternalLookupFtor)
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
Legacy symbol resolution interface.
ORCv1DeprecationAcknowledgement
JITSymbol findSymbolInLogicalDylib(const std::string &Name) final
This method returns the address of the specified symbol if it exists within the logical dynamic libra...
JITSymbol findSymbol(const std::string &Name) final
This method returns the address of the specified function or variable.
std::shared_ptr< LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT > > createLambdaResolver(DylibLookupFtorT DylibLookupFtor, ExternalLookupFtorT ExternalLookupFtor)
LLVM_ATTRIBUTE_DEPRECATED(LambdaResolver(DylibLookupFtorT DylibLookupFtor, ExternalLookupFtorT ExternalLookupFtor), "ORCv1 utilities (including resolvers) are deprecated and will be " "removed " "in the next release. Please use ORCv2 (see docs/ORCv2.rst)")