[clang] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveProduct intrinsic #164385 (PR #165109)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 22 05:26:13 PST 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang,llvm` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/31991

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
507.885 [2699/34/1623] Building CXX object lib/Target/NVPTX/MCTargetDesc/CMakeFiles/LLVMNVPTXDesc.dir/NVPTXInstPrinter.cpp.o
508.506 [2698/34/1624] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVLegalizeImplicitBinding.cpp.o
511.121 [2697/34/1625] Building CXX object lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcISelLowering.cpp.o
513.478 [2696/34/1626] Building CXX object lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcTargetMachine.cpp.o
514.487 [2695/34/1627] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVAPI.cpp.o
514.572 [2694/34/1628] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVInstrInfo.cpp.o
514.790 [2693/34/1629] Building CXX object lib/Target/PowerPC/CMakeFiles/LLVMPowerPCCodeGen.dir/PPCISelLowering.cpp.o
515.403 [2692/34/1630] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVInlineAsmLowering.cpp.o
515.694 [2691/34/1631] Building CXX object lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcTargetTransformInfo.cpp.o
515.734 [2690/34/1632] Building CXX object lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVInstructionSelector.cpp.o
FAILED: lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVInstructionSelector.cpp.o 
/opt/ccache/bin/g++ -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Target/SPIRV -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVInstructionSelector.cpp.o -MF lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVInstructionSelector.cpp.o.d -o lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVInstructionSelector.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:253:56: error: ‘SPIRVType’ does not name a type
  253 |   bool selectWaveReduceProduct(Register ResVReg, const SPIRVType *ResType,
      |                                                        ^~~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp: In lambda function:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:2898:26: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
 2898 |         return IsFloatTy ? SPIRV::OpGroupNonUniformFMax : IntOp;
      |                ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp: In lambda function:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:2913:26: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
 2913 |         return IsFloatTy ? SPIRV::OpGroupNonUniformFMin : IntOp;
      |                ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp: At global scope:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:2930:62: error: ‘SPIRVType’ does not name a type
 2930 |                                                        const SPIRVType *ResType,
      |                                                              ^~~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp: In member function ‘bool {anonymous}::SPIRVInstructionSelector::selectWaveReduceProduct(llvm::Register, const int*, llvm::MachineInstr&) const’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:2938:28: error: no matching function for call to ‘{anonymous}::SPIRVInstructionSelector::selectWaveReduce(llvm::Register&, const int*&, llvm::MachineInstr&, bool, {anonymous}::SPIRVInstructionSelector::selectWaveReduceProduct(llvm::Register, const int*, llvm::MachineInstr&) const::<lambda(llvm::Register, bool)>) const’
 2938 |                           });
      |                            ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:240:8: note: candidate: ‘template<class PickOpcodeFn> bool {anonymous}::SPIRVInstructionSelector::selectWaveReduce(llvm::Register, llvm::SPIRVTypeInst, llvm::MachineInstr&, bool, PickOpcodeFn&&) const’
  240 |   bool selectWaveReduce(Register ResVReg, SPIRVTypeInst ResType,
      |        ^~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:240:8: note:   template argument deduction/substitution failed:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:2932:36: note:   cannot convert ‘ResType’ (type ‘const int*’) to type ‘llvm::SPIRVTypeInst’
 2932 |   return selectWaveReduce(ResVReg, ResType, I, /*IsUnsigned*/ false,
      |                                    ^~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp: In member function ‘bool {anonymous}::SPIRVInstructionSelector::selectIntrinsic(llvm::Register, llvm::SPIRVTypeInst, llvm::MachineInstr&) const’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:4122:45: error: cannot convert ‘llvm::SPIRVTypeInst’ to ‘const int*’
 4122 |     return selectWaveReduceProduct(ResVReg, ResType, I);
      |                                             ^~~~~~~
      |                                             |
      |                                             llvm::SPIRVTypeInst
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:2930:73: note:   initializing argument 2 of ‘bool {anonymous}::SPIRVInstructionSelector::selectWaveReduceProduct(llvm::Register, const int*, llvm::MachineInstr&) const’
 2930 |                                                        const SPIRVType *ResType,
      |                                                        ~~~~~~~~~~~~~~~~~^~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp: At global scope:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:2929:6: warning: ‘bool {anonymous}::SPIRVInstructionSelector::selectWaveReduceProduct(llvm::Register, const int*, llvm::MachineInstr&) const’ defined but not used [-Wunused-function]

```

</details>

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


More information about the cfe-commits mailing list