[clang] [AMDGPU] Use generic builtins for `wave_reduce` ops (PR #179589)

Alex Voicu via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 4 05:05:40 PST 2026


================
@@ -2126,9 +2126,10 @@ bool Sema::CheckTSBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID,
   case llvm::Triple::spirv:
   case llvm::Triple::spirv32:
   case llvm::Triple::spirv64:
-    if (TI.getTriple().getOS() != llvm::Triple::OSType::AMDHSA)
+    if (TI.getTriple().getVendor() != llvm::Triple::VendorType::AMD)
       return SPIRV().CheckSPIRVBuiltinFunctionCall(TI, BuiltinID, TheCall);
-    return false;
+    else
----------------
AlexVlx wrote:

Fixed.

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


More information about the cfe-commits mailing list