[PATCH] D72223: [MLIR] Introduce affine.execute_region op

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 21 04:16:55 PDT 2021


ftynse accepted this revision.
ftynse added inline comments.


================
Comment at: mlir/include/mlir/Dialect/Affine/IR/AffineOps.td:120
+      The `affine.execute_region` op introduces a new symbol context for affine
+      operations. It holds a single region,  which can be a list of one or more
+      blocks, and its semantics are to execute its region exactly once. The op's
----------------



================
Comment at: mlir/lib/Dialect/Affine/IR/AffineOps.cpp:2673
+  Region *region = result.addRegion();
+  Block *body = new Block();
+  region->push_back(body);
----------------
We can now do `builder.createBlock`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72223



More information about the llvm-commits mailing list