[PATCH] D79410: [MLIR] [OpenMP] Add basic OpenMP parallel operation

David Truby via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 13:32:14 PDT 2020


DavidTruby marked an inline comment as done.
DavidTruby added inline comments.


================
Comment at: mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td:80
+
+def ParallelOp : OpenMP_Op<"parallel", [AttrSizedOperandSegments]>,
+  Arguments<(ins Optional<I1>:$if_expr_var,
----------------
rriddle wrote:
> DavidTruby wrote:
> > rriddle wrote:
> > > Is there a logical ordering of some kind you can establish for this file, e.g., alphabetical?
> > The order they're in here is the order they're in in the OpenMP specification. I can change it to be alphabetical or otherwise though
> That makes sense, it wasn't clear that there was an order on first glance. Can you add comment blocks to make this a bit cleaner?
> 
> e.g.: https://github.com/llvm/llvm-project/blob/4e9a7c8f5c527e7493394ab7869f38ca7c6b8903/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td#L205
Sure, I've realised that I should really add more comments to this in general!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79410/new/

https://reviews.llvm.org/D79410





More information about the llvm-commits mailing list