[all-commits] [llvm/llvm-project] 116958: [ORC-RT] Refactor ORC runtime CMake for future tes...

lhames via All-commits all-commits at lists.llvm.org
Fri Sep 2 21:24:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1169586dcde0376ef291802208daedc4f8107c7e
      https://github.com/llvm/llvm-project/commit/1169586dcde0376ef291802208daedc4f8107c7e
  Author: Lang Hames <lhames at gmail.com>
  Date:   2022-09-02 (Fri, 02 Sep 2022)

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

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

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.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D133084




More information about the All-commits mailing list