[Mlir-commits] [mlir] [OpenMP][MLIR] Add omp.distribute op to the OMP dialect (PR #67720)

Kiran Chandramohan llvmlistbot at llvm.org
Thu Nov 16 09:34:23 PST 2023


================
@@ -636,6 +636,57 @@ def YieldOp : OpenMP_Op<"yield",
   let assemblyFormat = [{ ( `(` $results^ `:` type($results) `)` )? attr-dict}];
 }
 
+//===----------------------------------------------------------------------===//
+// Distribute construct [2.9.4.1]
+//===----------------------------------------------------------------------===//
+def DistributeOp : OpenMP_Op<"distribute", [AttrSizedOperandSegments,
+                              MemoryEffects<[MemWrite]>]> {
----------------
kiranchandramohan wrote:

@shraiysh could you comment on the `MemWrite` effect here. I believe you previously worked on adding `RecursiveMemoryEffects`.

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


More information about the Mlir-commits mailing list