[Mlir-commits] [mlir] [MLIR][NVVM] Add barrier.arrive (PR #85412)

Mehdi Amini llvmlistbot at llvm.org
Fri Mar 15 16:29:14 PDT 2024


================
@@ -1029,6 +1029,13 @@ LogicalResult NVVM::BarrierOp::verify() {
   return success();
 }
 
+LogicalResult NVVM::BarrierArriveOp::verify() {
+  if (getNumberOfThreads() && !getBarrierId())
+    return emitOpError(
+        "barrier id is missing, it should be set between 0 to 15");
----------------
joker-eph wrote:

```suggestion
        "barrierId is required when numberOfThreads is provided");
```

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


More information about the Mlir-commits mailing list