Reapply "[ORC] Add unit tests for parts of the ..." with fixes and improvements.
authorLang Hames <lhames@gmail.com>
Mon, 26 Apr 2021 22:37:07 +0000 (15:37 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 27 Apr 2021 03:44:40 +0000 (20:44 -0700)
commitd122d80b3d1c3ffdfbf6a2168f3d61fa4337facc
treedf832011a7e217971b13c427357a67211f417a20
parent3c47f5f46e9f0b3fcd5550428e9b51a9d5a87392
Reapply "[ORC] Add unit tests for parts of the ..." with fixes and improvements.

This reapplies 8740360093b, which was reverted in bbddadd46e4 due to buildbot
errors.

This version checks that a JIT instance can be safely constructed, skipping
tests if it can not be. To enable this it introduces new C API to retrieve and
set the target triple for a JITTargetMachineBuilder.
llvm/include/llvm-c/LLJIT.h
llvm/include/llvm-c/Orc.h
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
llvm/unittests/ExecutionEngine/Orc/CMakeLists.txt
llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp [new file with mode: 0644]