[clang] [llvm] [HLSL] Implement WaveActiveAnyTrue intrinsic (PR #115902)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 20 09:48:40 PST 2024


================
@@ -1949,24 +1955,48 @@ bool SPIRVInstructionSelector::selectSign(Register ResVReg,
   return Result;
 }
 
+bool SPIRVInstructionSelector::selectWaveNOpInst(Register ResVReg,
+                                                 const SPIRVType *ResType,
+                                                 MachineInstr &I,
+                                                 unsigned Opcode,
+                                                 unsigned OperandCount) const {
+  assert(I.getNumOperands() == OperandCount);
----------------
farzonl wrote:

Why are you even taking in `OperandCount` as a value just use  `getNumOperands`.

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


More information about the cfe-commits mailing list