[clang] [llvm] [HIPSPV] Add in-tree SPIR-V backend support for chipStar (PR #206910)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 25 09:57:21 PDT 2026
================
@@ -42,3 +43,5 @@
// NO-PLUGIN-NOT: {{".*opt"}} {{".*.bc"}} "-load-pass-plugin"
// NO-PLUGIN-NOT: {{".*/Inputs/hipspv/lib/libLLVMHipSpvPasses.so"}}
// ALL: {{".*llvm-spirv[^ ]*"}}
+// CHIPSTAR: {{".*clang.*"}} "-cc1"
----------------
yxsamliu wrote:
Maybe add `REQUIRES: spirv-registered-target` to this test.
The new chipStar checks expect the in-tree SPIR-V backend path (`clang -cc1 -emit-obj`). If LLVM is built without the SPIR-V target, HIPSPV should fall back to `llvm-spirv`, so these checks may fail. `hipspv-toolchain.hip` already has this guard.
https://github.com/llvm/llvm-project/pull/206910
More information about the cfe-commits
mailing list