[mlir] Extract offsets-sizes-strides computation from `makeTiledShape(s)`.
authorAlexander Belyaev <pifon@google.com>
Thu, 4 Aug 2022 09:18:04 +0000 (11:18 +0200)
committerAlexander Belyaev <pifon@google.com>
Thu, 4 Aug 2022 09:23:58 +0000 (11:23 +0200)
commit56d94b3b902e21ff79b1ce9a6fb606a3f7c1c4db
tree95074dc12ea4308d94f4bc239ba939aa52bc40a3
parent57a9bccec7dea036dbfa1a78f1ec5e73ecf7a33c
[mlir] Extract offsets-sizes-strides computation from `makeTiledShape(s)`.

This change separates computation of the actual parameters of the subset and
the materialization of subview/extract_slice. That way the users can still use
Linalg tiling logic even if they use different operations to materialize the
subsets.

Differential Revision: https://reviews.llvm.org/D131053
mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
mlir/lib/Dialect/Linalg/Utils/Utils.cpp
mlir/test/Dialect/Linalg/tile-and-distribute.mlir
mlir/test/Dialect/Linalg/tile-and-fuse-tensors.mlir
mlir/test/Dialect/Linalg/tile-conv.mlir
mlir/test/Dialect/Linalg/tile-to-foreach-thread.mlir
mlir/test/Dialect/Linalg/tile.mlir
mlir/test/Dialect/Linalg/transform-op-split.mlir