[PATCH] D73614: [mlir] Linalg tiling: generate code avoding out-of-bounds accesses

Nicolas Vasilache via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 06:22:58 PST 2020


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


================
Comment at: mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp:300
+        // Compute min(size, dim - offset) to avoid out-of-bounds accesses.
+        auto minMap = AffineMap::get(
+            /*dimCount=*/3, /*symbolCount=*/0,
----------------
At some point in the future I think I'll start to move some of that boilerplate to `StructuredIndexed` (e.g. https://github.com/llvm/llvm-project/blob/master/mlir/test/EDSC/builder-api-test.cpp#L909)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73614





More information about the llvm-commits mailing list