LLVM 22.0.0git
|
#include "llvm/ExecutionEngine/Orc/ExecutorResolutionGenerator.h"
Public Types | |
using | SymbolPredicate = unique_function<bool(const SymbolStringPtr &)> |
using | AbsoluteSymbolsFn |
Public Member Functions | |
ExecutorResolutionGenerator (ExecutionSession &ES, tpctypes::ResolverHandle H, SymbolPredicate Allow=SymbolPredicate(), AbsoluteSymbolsFn AbsoluteSymbols=absoluteSymbols) | |
ExecutorResolutionGenerator (ExecutionSession &ES, SymbolPredicate Allow=SymbolPredicate(), AbsoluteSymbolsFn AbsoluteSymbols=absoluteSymbols) | |
Error | tryToGenerate (LookupState &LS, LookupKind K, JITDylib &JD, JITDylibLookupFlags JDLookupFlags, const SymbolLookupSet &LookupSet) override |
DefinitionGenerators should override this method to insert new definitions into the parent JITDylib. | |
Public Member Functions inherited from llvm::orc::DefinitionGenerator | |
virtual | ~DefinitionGenerator () |
Static Public Member Functions | |
static Expected< std::unique_ptr< ExecutorResolutionGenerator > > | Load (ExecutionSession &ES, const char *LibraryPath, SymbolPredicate Allow=SymbolPredicate(), AbsoluteSymbolsFn AbsoluteSymbols=absoluteSymbols) |
Permanently loads the library at the given path and, on success, returns an ExecutorResolutionGenerator that will search it for symbol definitions in the library. | |
static Expected< std::unique_ptr< ExecutorResolutionGenerator > > | GetForTargetProcess (ExecutionSession &ES, SymbolPredicate Allow=SymbolPredicate(), AbsoluteSymbolsFn AbsoluteSymbols=absoluteSymbols) |
Creates a ExecutorResolutionGenerator that searches for symbols in the target process. |
Definition at line 24 of file ExecutorResolutionGenerator.h.
Definition at line 27 of file ExecutorResolutionGenerator.h.
using llvm::orc::ExecutorResolutionGenerator::SymbolPredicate = unique_function<bool(const SymbolStringPtr &)> |
Definition at line 26 of file ExecutorResolutionGenerator.h.
|
inline |
Definition at line 30 of file ExecutorResolutionGenerator.h.
References llvm::orc::absoluteSymbols(), llvm::orc::DefinitionGenerator::ExecutionSession, and llvm::move().
|
inline |
Definition at line 37 of file ExecutorResolutionGenerator.h.
References llvm::orc::absoluteSymbols(), llvm::orc::DefinitionGenerator::ExecutionSession, and llvm::move().
|
inlinestatic |
Creates a ExecutorResolutionGenerator that searches for symbols in the target process.
Definition at line 55 of file ExecutorResolutionGenerator.h.
References llvm::orc::absoluteSymbols(), llvm::orc::DefinitionGenerator::ExecutionSession, and Load().
|
static |
Permanently loads the library at the given path and, on success, returns an ExecutorResolutionGenerator that will search it for symbol definitions in the library.
On failure returns the reason the library failed to load.
Definition at line 21 of file ExecutorResolutionGenerator.cpp.
References llvm::orc::DefinitionGenerator::ExecutionSession, llvm::orc::ExecutorProcessControl::getDylibMgr(), llvm::orc::ExecutionSession::getExecutorProcessControl(), and llvm::orc::DylibManager::loadDylib().
Referenced by GetForTargetProcess().
|
overridevirtual |
DefinitionGenerators should override this method to insert new definitions into the parent JITDylib.
K specifies the kind of this lookup. JD specifies the target JITDylib being searched, and JDLookupFlags specifies whether the search should match against hidden symbols. Finally, Symbols describes the set of unresolved symbols and their associated lookup flags.
Implements llvm::orc::DefinitionGenerator.
Definition at line 31 of file ExecutorResolutionGenerator.cpp.
References assert(), llvm::dbgs(), llvm::orc::JITDylib::define(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::empty(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::empty(), llvm::orc::SymbolLookupSet::empty(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), LLVM_DEBUG, LLVM_UNLIKELY, llvm::make_error(), llvm::orc::RequiredSymbol, llvm::orc::Result, and llvm::Error::success().