aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorLeandro Lacerda <leandrolcampos@yahoo.com.br>2025-08-04 09:00:51 -0300
committerGitHub <noreply@github.com>2025-08-04 07:00:51 -0500
commitf1eb869bae2ab86726ee3a5a5c7980d5b2acbd5d (patch)
treea5ed94260d0c801ee92e29e35d001140e3b936be /llvm/lib/Transforms/Utils/Local.cpp
parent95191d54603e6bcd6b924c99755b3a9f3bb1c345 (diff)
downloadllvm-f1eb869bae2ab86726ee3a5a5c7980d5b2acbd5d.zip
llvm-f1eb869bae2ab86726ee3a5a5c7980d5b2acbd5d.tar.gz
llvm-f1eb869bae2ab86726ee3a5a5c7980d5b2acbd5d.tar.bz2
[Offload][UnitTests] Build device code as C++ (#151714)
This commit refactors the `add_offload_test_device_code` CMake function to compile device code using the C++ compiler (`CMAKE_CXX_COMPILER`) instead of the C compiler. This change enables the use of C++ features, such as templates, within device-side test kernels. This will allow for more advanced and reusable kernel wrappers, reducing boilerplate code in the conformance test suite. As part of this change: - All `.c` files for device code in `unittests/` have been renamed to `.cpp`. - Kernel definitions are now wrapped in `extern "C"` to ensure C linkage and prevent name mangling. This change affects the `OffloadAPI` and `Conformance` test suites. cc @callumfare @RossBrunton @jhuber6
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions