[C-API][ORC] Add C API to suspend lookups during definition generation.
authorLang Hames <lhames@gmail.com>
Tue, 14 Jun 2022 00:14:23 +0000 (17:14 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 14 Jun 2022 00:20:07 +0000 (17:20 -0700)
commit14b7c108a2bf46541efc3a5c9cbd589b3afc18e6
tree12be29d84669fd996b956ccc28d23ab420ab2193
parent145cc9db2b442fc0533e275b92943a9894e33337
[C-API][ORC] Add C API to suspend lookups during definition generation.

Slow definition generators may suspend lookups to temporarily release the
session lock, allowing unrelated lookups to proceed.

Using this functionality is discouraged: it is best to make definition
generation fast, rather than suspending the lookup. As a last resort where
this is not possible, suspension may be used.
llvm/include/llvm-c/Orc.h
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp