|
LLVM
7.0.0
|
A utility class to expose symbols found via dlsym to the JIT. More...
#include "llvm/ExecutionEngine/Orc/ExecutionUtils.h"
Public Types | |
| using | SymbolPredicate = std::function< bool(SymbolStringPtr)> |
Public Member Functions | |
| DynamicLibraryFallbackGenerator (sys::DynamicLibrary Dylib, const DataLayout &DL, SymbolPredicate Allow) | |
| SymbolNameSet | operator() (VSO &V, const SymbolNameSet &Names) |
A utility class to expose symbols found via dlsym to the JIT.
If an instance of this class is attached to a VSO as a fallback definition generator, then any symbol found in the given DynamicLibrary that passes the 'Allow' predicate will be added to the VSO.
Definition at line 255 of file ExecutionUtils.h.
| using llvm::orc::DynamicLibraryFallbackGenerator::SymbolPredicate = std::function<bool(SymbolStringPtr)> |
Definition at line 257 of file ExecutionUtils.h.
| llvm::orc::DynamicLibraryFallbackGenerator::DynamicLibraryFallbackGenerator | ( | sys::DynamicLibrary | Dylib, |
| const DataLayout & | DL, | ||
| SymbolPredicate | Allow | ||
| ) |
Definition at line 210 of file ExecutionUtils.cpp.
References operator()().
| SymbolNameSet llvm::orc::DynamicLibraryFallbackGenerator::operator() | ( | VSO & | V, |
| const SymbolNameSet & | Names | ||
| ) |
Definition at line 216 of file ExecutionUtils.cpp.
References llvm::orc::absoluteSymbols(), llvm::cantFail(), llvm::orc::VSO::define(), llvm::JITSymbolFlags::Exported, and llvm::sys::DynamicLibrary::getAddressOfSymbol().
Referenced by DynamicLibraryFallbackGenerator().
1.8.13