[Mlir-commits] [clang] [flang] [mlir] [flang][flang-driver][mlir][OpenMP] atomic control support (PR #143441)

Sergio Afonso llvmlistbot at llvm.org
Tue Jul 1 04:27:34 PDT 2025


================
@@ -1543,9 +1543,11 @@ def AtomicUpdateOp : OpenMP_Op<"atomic.update", traits = [
     operations.
   }] # clausesDescription;
 
-  let arguments = !con((ins Arg<OpenMP_PointerLikeType,
-                                "Address of variable to be updated",
-                                [MemRead, MemWrite]>:$x), clausesArgs);
+  let arguments = !con(
+      (ins Arg<OpenMP_PointerLikeType,
+               "Address of variable to be updated", [MemRead, MemWrite]>:$x,
+          AtomicControlAttr:$atomic_control),
----------------
skatrak wrote:

Does this new attribute only actually apply to `omp.atomic.update` or should we be adding it to the other atomic operations (`omp.atomic.read`, `omp.atomic.write` and `omp.atomic.capture`)?

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


More information about the Mlir-commits mailing list