|
LLVM
7.0.0
|
Symbol resolution interface. More...
#include "llvm/ExecutionEngine/JITSymbol.h"
Public Types | |
| using | LookupSet = std::set< StringRef > |
| using | LookupResult = std::map< StringRef, JITEvaluatedSymbol > |
| using | LookupFlagsResult = std::map< StringRef, JITSymbolFlags > |
Public Member Functions | |
| virtual | ~JITSymbolResolver ()=default |
| virtual Expected< LookupResult > | lookup (const LookupSet &Symbols)=0 |
| Returns the fully resolved address and flags for each of the given symbols. More... | |
| virtual Expected< LookupFlagsResult > | lookupFlags (const LookupSet &Symbols)=0 |
| Returns the symbol flags for each of the given symbols. More... | |
Symbol resolution interface.
Allows symbol flags and addresses to be looked up by name. Symbol queries are done in bulk (i.e. you request resolution of a set of symbols, rather than a single one) to reduce IPC overhead in the case of remote JITing, and expose opportunities for parallel compilation.
Definition at line 292 of file JITSymbol.h.
| using llvm::JITSymbolResolver::LookupFlagsResult = std::map<StringRef, JITSymbolFlags> |
Definition at line 296 of file JITSymbol.h.
| using llvm::JITSymbolResolver::LookupResult = std::map<StringRef, JITEvaluatedSymbol> |
Definition at line 295 of file JITSymbol.h.
| using llvm::JITSymbolResolver::LookupSet = std::set<StringRef> |
Definition at line 294 of file JITSymbol.h.
|
virtualdefault |
|
pure virtual |
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.
Implemented in llvm::LegacyJITSymbolResolver, and llvm::orc::JITSymbolResolverAdapter.
Referenced by llvm::RuntimeDyldCheckerImpl::checkAllRulesInBuffer().
|
pure virtual |
Returns the symbol flags for each of the given symbols.
This method does NOT return an error if any of the given symbols is missing. Instead, that symbol will be left out of the result map.
Implemented in llvm::LegacyJITSymbolResolver, and llvm::orc::JITSymbolResolverAdapter.
1.8.13