[Mlir-commits] [mlir] [mlir][OpenMP] add attribute for privatization barrier (PR #140089)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri May 16 08:49:24 PDT 2025


================
@@ -1102,7 +1102,10 @@ class OpenMP_PrivateClauseSkip<
 
   let arguments = (ins
     Variadic<AnyType>:$private_vars,
-    OptionalAttr<SymbolRefArrayAttr>:$private_syms
+    OptionalAttr<SymbolRefArrayAttr>:$private_syms,
+    // Set this attribute if a barrier is needed after initialization and
+    // copying of lastprivate variables.
+    UnitAttr:$private_needs_barrier
----------------
NimishMishra wrote:

>  the name of the clause to avoid name collisions (e.g. if a `needs_barrier` attribute was added to REDUCTION).

Oh okay thanks. Makes sense



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


More information about the Mlir-commits mailing list