[ORC] Add support for dumping objects to the C API.
authorLang Hames <lhames@gmail.com>
Fri, 18 Jun 2021 09:48:20 +0000 (19:48 +1000)
committerLang Hames <lhames@gmail.com>
Fri, 18 Jun 2021 10:56:45 +0000 (20:56 +1000)
commitcec8e69f01c3374cb38c6683058381b96fab8f89
treee72f8dcc3f854051b7a48f1e26dd4b7734cab399
parent93183a41b962ce21ea168357172aaf00cdca5bd9
[ORC] Add support for dumping objects to the C API.

Provides ObjectTransformLayer APIs, a getter to access the
ObjectTransformLayer member of LLJIT, and the DumpObjects utility
to make construction of a dump-to-disk transform easy.

An example showing how the new APIs can be used has been added in
llvm/examples/OrcV2Examples/OrcV2CBindingsDumpObjects.
llvm/examples/OrcV2Examples/CMakeLists.txt
llvm/examples/OrcV2Examples/OrcV2CBindingsDumpObjects/CMakeLists.txt [new file with mode: 0644]
llvm/examples/OrcV2Examples/OrcV2CBindingsDumpObjects/OrcV2CBindingsDumpObjects.c [new file with mode: 0644]
llvm/include/llvm-c/LLJIT.h
llvm/include/llvm-c/Orc.h
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp