[Mlir-commits] [mlir] [MLIR][NVVM] Update redux.sync op (PR #166125)

Durgadoss R llvmlistbot at llvm.org
Mon Nov 3 01:39:10 PST 2025


================
@@ -1577,6 +1563,32 @@ LogicalResult NVVM::ClusterLaunchControlQueryCancelOp::verify() {
   return success();
 }
 
+LogicalResult NVVM::ReduxOp::verify() {
+  mlir::Type reduxType = getType();
+
+  if (!reduxType.isF32() && getAbs())
+    return emitOpError("abs attribute is supported only for f32 type");
+
+  if (!reduxType.isF32() && getNan())
+    return emitOpError("nan attribute is supported only for f32 type");
----------------
durga4github wrote:

can we move both of these within one `if` condition ?
```
if (!f32) {
  abs-check
  nan-check
}

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


More information about the Mlir-commits mailing list