[clang] [llvm] [HIPSPV] Add in-tree SPIR-V backend support for chipStar (PR #206910)

Paulius Velesko via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 18 06:00:02 PDT 2026


================
@@ -473,9 +473,17 @@ fatbinary(ArrayRef<std::tuple<StringRef, StringRef, StringRef>> InputFiles,
   SmallVector<StringRef> Targets = {
       Saver.save("-targets=host-" + HostTriple.normalize())};
   for (const auto &[File, TripleRef, Arch] : InputFiles) {
+    llvm::Triple T(TripleRef);
+    // SPIR-V HIP targets (e.g. chipStar) can arrive without an arch, but the
+    // offload bundler requires a non-empty arch field; default to the
+    // canonical SPIR-V CPU model "generic".
----------------
pvelesko wrote:

good point, removed

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


More information about the cfe-commits mailing list