[Mlir-commits] [mlir] [mlir][GPU] Extend gpu.barrier with scope and named-barrier support (PR #195692)

Fabian Mora llvmlistbot at llvm.org
Wed May 6 05:51:25 PDT 2026


================
@@ -1512,13 +1517,33 @@ LogicalResult RotateOp::verify() {
 // BarrierOp
 //===----------------------------------------------------------------------===//
 
+LogicalResult BarrierOp::verify() {
+  Scope scope = getScope();
+
+  if (scope == Scope::Thread)
+    return emitOpError("thread-level scope is not meaningful for barriers");
----------------
fabianmcg wrote:

If this is always invalid, why adding it to the enum?

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


More information about the Mlir-commits mailing list