summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-c-test/llvm-c-test.h
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-03-14 04:18:04 +0000
committerLang Hames <lhames@gmail.com>2018-03-14 04:18:04 +0000
commit817f1f64d9848e44fd9b0aebe98dc5605f2ec03d (patch)
treebd1731f9c88fbf5748ca35fb9c2db0c3c5f69ce3 /llvm/tools/llvm-c-test/llvm-c-test.h
parent66b84079f93f068117c9fb3f9d520c2cc0904f72 (diff)
downloadbcm5719-llvm-817f1f64d9848e44fd9b0aebe98dc5605f2ec03d.tar.gz
bcm5719-llvm-817f1f64d9848e44fd9b0aebe98dc5605f2ec03d.zip
[ORC] Add a 'lookup' convenience function for finding symbols in a list of VSOs.
The lookup function takes a list of VSOs, a set of symbol names (or just one symbol name) and a materialization function object. It returns an Expected<SymbolMap> (if given a set of names) or an Expected<JITEvaluatedSymbol> (if given just one name). The lookup method constructs an AsynchronousSymbolQuery for the given names, applies that query to each VSO in the list in turn, and then blocks waiting for the query to complete. If threading is enabled then the materialization function object can be used to execute the materialization on different threads. If threading is disabled the MaterializeOnCurrentThread utility must be used. llvm-svn: 327474
Diffstat (limited to 'llvm/tools/llvm-c-test/llvm-c-test.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud