[clang] [llvm] [HIPSPV] Add in-tree SPIR-V backend support for chipStar (PR #206910)
Henry Linjamäki via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 21 02:46:54 PDT 2026
================
@@ -85,11 +89,12 @@
// CHIPSTAR-SAME: "[[HIP_PATH]]/lib/libLLVMHipSpvPasses.so"
// CHIPSTAR-SAME: "-passes=hip-post-link-passes" "-o" [[LOWER_BC:".*bc"]]
-// CHIPSTAR: {{".*llvm-spirv"}} "--spirv-max-version=1.2"
-// CHIPSTAR-SAME: "--spirv-ext=-all,+SPV_INTEL_function_pointers,+SPV_INTEL_subgroups"
+// CHIPSTAR: {{".*clang.*"}} "-cc1" "-triple" "spirv64-unknown-chipstar"
+// CHIPSTAR-SAME: "-emit-obj"
+// CHIPSTAR-SAME: "-mllvm" "-spirv-ext=+SPV_INTEL_function_pointers,+SPV_INTEL_subgroups,+SPV_EXT_relaxed_printf_string_address_space,+SPV_KHR_bit_instructions,+SPV_EXT_shader_atomic_float_add"
----------------
linehill wrote:
I suspect these SPIR-V backed checks fail if SPIR-V backend is not built. You probably need to separate the checks to own test file and have it being guarded by `REQUIRES: spirv-registered-target`.
https://github.com/llvm/llvm-project/pull/206910
More information about the cfe-commits
mailing list