Go to the documentation of this file.
14 #ifndef LLVM_EXECUTIONENGINE_ORC_EPCDYNAMICLIBRARYSEARCHGENERATOR_H
15 #define LLVM_EXECUTIONENGINE_ORC_EPCDYNAMICLIBRARYSEARCHGENERATOR_H
23 class ExecutorProcessControl;
38 : EPC(ES.getExecutorProcessControl()),
H(
H), Allow(
std::
move(Allow)) {}
68 #endif // LLVM_EXECUTIONENGINE_ORC_EPCDYNAMICLIBRARYSEARCHGENERATOR_H
This is an optimization pass for GlobalISel generic memory operations.
Represents a JIT'd dynamic library.
A set of symbols to look up, each associated with a SymbolLookupFlags value.
Pointer to a pooled string representing a symbol name.
ExecutorProcessControl supports interaction with a JIT target process.
Tagged union holding either a T or a Error.
LookupKind
Describes the kind of lookup being performed.
static Expected< std::unique_ptr< EPCDynamicLibrarySearchGenerator > > Load(ExecutionSession &ES, const char *LibraryPath, SymbolPredicate Allow=SymbolPredicate())
Permanently loads the library at the given path and, on success, returns a DynamicLibrarySearchGenera...
JITTargetAddress DylibHandle
A handle used to represent a loaded dylib in the target process.
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition generators can be attached to JITDylibs to generate new definitions for otherwise unresolv...
Error tryToGenerate(LookupState &LS, LookupKind K, JITDylib &JD, JITDylibLookupFlags JDLookupFlags, const SymbolLookupSet &Symbols) override
DefinitionGenerators should override this method to insert new definitions into the parent JITDylib.
Wraps state for a lookup-in-progress.
static Expected< std::unique_ptr< EPCDynamicLibrarySearchGenerator > > GetForTargetProcess(ExecutionSession &ES, SymbolPredicate Allow=SymbolPredicate())
Creates a EPCDynamicLibrarySearchGenerator that searches for symbols in the target process.
unique_function< bool(const SymbolStringPtr &)> SymbolPredicate
Lightweight error class with error context and mandatory checking.
An ExecutionSession represents a running JIT program.
JITDylibLookupFlags
Lookup flags that apply to each dylib in the search order for a lookup.
EPCDynamicLibrarySearchGenerator(ExecutionSession &ES, tpctypes::DylibHandle H, SymbolPredicate Allow=SymbolPredicate())
Create a DynamicLibrarySearchGenerator that searches for symbols in the library with the given handle...