LLVM
8.0.1
|
Legacy adapter. Remove once we kill off the old ORC layers. More...
#include "llvm/ExecutionEngine/Orc/Legacy.h"
Public Member Functions | |
JITSymbolResolverAdapter (ExecutionSession &ES, SymbolResolver &R, MaterializationResponsibility *MR) | |
Expected< LookupSet > | getResponsibilitySet (const LookupSet &Symbols) override |
Returns the subset of the given symbols that should be materialized by the caller. More... | |
void | lookup (const LookupSet &Symbols, OnResolvedFunction OnResolved) override |
Returns the fully resolved address and flags for each of the given symbols. More... | |
Public Member Functions inherited from llvm::JITSymbolResolver | |
virtual | ~JITSymbolResolver ()=default |
Additional Inherited Members | |
Public Types inherited from llvm::JITSymbolResolver | |
using | LookupSet = std::set< StringRef > |
using | LookupResult = std::map< StringRef, JITEvaluatedSymbol > |
using | OnResolvedFunction = std::function< void(Expected< LookupResult >)> |
llvm::orc::JITSymbolResolverAdapter::JITSymbolResolverAdapter | ( | ExecutionSession & | ES, |
SymbolResolver & | R, | ||
MaterializationResponsibility * | MR | ||
) |
Definition at line 17 of file Legacy.cpp.
|
overridevirtual |
Returns the subset of the given symbols that should be materialized by the caller.
Only weak/common symbols should be looked up, as strong definitions are implicitly always part of the caller's responsibility.
Implements llvm::JITSymbolResolver.
Definition at line 52 of file Legacy.cpp.
References llvm::orc::SymbolResolver::getResponsibilitySet(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), and llvm::orc::ExecutionSession::intern().
|
overridevirtual |
Returns the fully resolved address and flags for each of the given symbols.
This method will return an error if any of the given symbols can not be resolved, or if the resolution process itself triggers an error.
Implements llvm::JITSymbolResolver.
Definition at line 21 of file Legacy.cpp.
References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), and llvm::orc::ExecutionSession::intern().