https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/189261
Also remove redundant SPIRV check. >From b661af6b0709d10b6ea1fe514ae5d8874f9d8a92 Mon Sep 17 00:00:00 2001 From: Matt Arsenault <[email protected]> Date: Sun, 29 Mar 2026 10:31:06 +0200 Subject: [PATCH] clang: Use isAMDGPU triple helper Also remove redundant SPIRV check. --- clang/lib/Driver/Driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 3e489f0b1f4cf..f67dfcf1d3609 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -4467,7 +4467,7 @@ shouldBundleHIPAsmWithNewDriver(const Compilation &C, if (!TC) continue; const llvm::Triple &Tr = TC->getTriple(); - if (Tr.isSPIRV() || Tr.getArch() != llvm::Triple::amdgcn) + if (!Tr.isAMDGPU()) return false; HasAMDGCNHIPDevice = true; } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
