15 #ifndef LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H 16 #define LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H 25 template <
typename DylibLookupFtorT,
typename ExternalLookupFtorT>
29 ExternalLookupFtorT ExternalLookupFtor)
30 : DylibLookupFtor(DylibLookupFtor),
31 ExternalLookupFtor(ExternalLookupFtor) {}
34 return DylibLookupFtor(
Name);
38 return ExternalLookupFtor(
Name);
42 DylibLookupFtorT DylibLookupFtor;
43 ExternalLookupFtorT ExternalLookupFtor;
46 template <
typename DylibLookupFtorT,
47 typename ExternalLookupFtorT>
48 std::shared_ptr<LambdaResolver<DylibLookupFtorT, ExternalLookupFtorT>>
50 ExternalLookupFtorT ExternalLookupFtor) {
52 return make_unique<LR>(std::move(DylibLookupFtor),
53 std::move(ExternalLookupFtor));
59 #endif // LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H Represents a symbol in the JIT.
This class represents lattice values for constants.
Legacy symbol resolution interface.
amdgpu Simplify well known AMD library false Value Value const Twine & Name
LambdaResolver(DylibLookupFtorT DylibLookupFtor, ExternalLookupFtorT ExternalLookupFtor)
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)