[clang] [llvm] [TargetParser] Add a list of Intel GPUs, and use it in offload-arch (PR #222072)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 21:51:54 PDT 2026


================
@@ -1,6 +1,7 @@
 set(OffloadArchTestSources
   OffloadArchTest.cpp
   ${CMAKE_CURRENT_SOURCE_DIR}/../../tools/offload-arch/AMDGPUArchByKFD.cpp
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../tools/offload-arch/LevelZeroArch.cpp
----------------
nico wrote:

Instead of randomly including tool source files in the unittest target, please do the standard thing of adding a tools/foo/lib target with the files you'd like to share and link the lib into the test.

https://github.com/llvm/llvm-project/pull/222072


More information about the llvm-commits mailing list