[Mlir-commits] [mlir] [mlir][NVVM] Add support for barrier0 operation with predicate (PR #167036)
Guray Ozen
llvmlistbot at llvm.org
Mon Nov 10 03:28:26 PST 2025
================
@@ -1504,6 +1504,15 @@ LogicalResult NVVM::BarrierOp::verify() {
if (getNumberOfThreads() && !getBarrierId())
return emitOpError(
"barrier id is missing, it should be set between 0 to 15");
+
+ if (getBarrierId() && (getReductionOp() || getReductionPredicate()))
+ return emitOpError("reduction are only available for barrier id 0");
----------------
grypp wrote:
```suggestion
return emitOpError("reduction are only available when id is 0");
```
https://github.com/llvm/llvm-project/pull/167036
More information about the Mlir-commits
mailing list