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

Krzysztof Drewniak llvmlistbot at llvm.org
Wed May 6 11:55:03 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");
----------------
krzysz00 wrote:

There are things other  than barriers, which can be thread scoped

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


More information about the Mlir-commits mailing list