[PATCH] D133084: [ORC-RT] Refactor ORC runtime CMake for future test tool(s).

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 20:19:37 PDT 2022


lhames created this revision.
lhames added reviewers: beanz, sgraenitz, ldionne, sunho, phosek.
Herald added subscribers: Enna1, StephenFan, mgorny.
Herald added a project: All.
lhames requested review of this revision.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.

We want to move functionality from the LLVM ORCTargetProcess library into the
ORC runtime, and this will mean implementing remote-executor testing tools
(like llvm-jitlink-executor and lli-child-target) in the ORC runtime.

This patch refactors the ORC runtime build system to introduce an
`add_orc_tool` function that can be used to add new test tools. The code is
modeled on existing functions for adding unit tests.

A placeholder `orc-rt-executor` tool and test are added to verify that the
config changes behave as expected.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133084

Files:
  compiler-rt/lib/orc/CMakeLists.txt
  compiler-rt/lib/orc/tests/CMakeLists.txt
  compiler-rt/lib/orc/tests/tools/CMakeLists.txt
  compiler-rt/lib/orc/tests/tools/orc-rt-executor.cpp
  compiler-rt/lib/orc/tests/unit/CMakeLists.txt
  compiler-rt/lib/orc/tests/unit/adt_test.cpp
  compiler-rt/lib/orc/tests/unit/c_api_test.cpp
  compiler-rt/lib/orc/tests/unit/endian_test.cpp
  compiler-rt/lib/orc/tests/unit/error_test.cpp
  compiler-rt/lib/orc/tests/unit/executor_address_test.cpp
  compiler-rt/lib/orc/tests/unit/extensible_rtti_test.cpp
  compiler-rt/lib/orc/tests/unit/orc_unit_test_main.cpp
  compiler-rt/lib/orc/tests/unit/simple_packed_serialization_test.cpp
  compiler-rt/lib/orc/tests/unit/wrapper_function_utils_test.cpp
  compiler-rt/lib/orc/unittests/CMakeLists.txt
  compiler-rt/lib/orc/unittests/adt_test.cpp
  compiler-rt/lib/orc/unittests/c_api_test.cpp
  compiler-rt/lib/orc/unittests/endian_test.cpp
  compiler-rt/lib/orc/unittests/error_test.cpp
  compiler-rt/lib/orc/unittests/executor_address_test.cpp
  compiler-rt/lib/orc/unittests/extensible_rtti_test.cpp
  compiler-rt/lib/orc/unittests/orc_unit_test_main.cpp
  compiler-rt/lib/orc/unittests/simple_packed_serialization_test.cpp
  compiler-rt/lib/orc/unittests/wrapper_function_utils_test.cpp
  compiler-rt/test/orc/CMakeLists.txt
  compiler-rt/test/orc/TestCases/Generic/lit.local.cfg.py
  compiler-rt/test/orc/TestCases/Generic/orc-rt-executor-usage.test
  compiler-rt/test/orc/lit.cfg.py
  compiler-rt/test/orc/lit.site.cfg.py.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133084.457163.patch
Type: text/x-patch
Size: 54615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220901/de0f531d/attachment.bin>


More information about the llvm-commits mailing list