[ORC] Add support for custom generators to the C bindings.
authorLang Hames <lhames@gmail.com>
Fri, 16 Oct 2020 00:33:16 +0000 (17:33 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 19 Oct 2020 08:59:04 +0000 (01:59 -0700)
commitb6ca0c7dd53528cece4e058eb12c281792893b2f
treefe17edd848e55b6f0f25ccb0d285b33cf625d270
parent19402ce79a896563823fff45b853f229df4c1261
[ORC] Add support for custom generators to the C bindings.

C API clients can now define a custom definition generator by providing a
callback function (to implement DefinitionGenerator::tryToGenerate) and context
object. All arguments for the DefinitionGenerator::tryToGenerate method have
been given C API counterparts, and the API allows for optionally asynchronous
generation.
llvm/include/llvm-c/Orc.h
llvm/include/llvm/ExecutionEngine/Orc/Core.h
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp