[all-commits] [llvm/llvm-project] 7df758: [mlir][MemRef] Deprecate unspecified trailing offs...
MaheshRavishankar via All-commits
all-commits at lists.llvm.org
Wed Dec 29 11:18:52 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7df7586a0b09ecebd2fd07b03efb30d30207e09d
https://github.com/llvm/llvm-project/commit/7df7586a0b09ecebd2fd07b03efb30d30207e09d
Author: MaheshRavishankar <ravishankarm at google.com>
Date: 2021-12-29 (Wed, 29 Dec 2021)
Changed paths:
M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
M mlir/lib/Dialect/Vector/VectorTransferOpTransforms.cpp
M mlir/lib/Interfaces/ViewLikeInterface.cpp
M mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir
M mlir/test/Dialect/Linalg/transform-patterns-matmul-to-vector.mlir
M mlir/test/Dialect/MemRef/canonicalize.mlir
M mlir/test/Dialect/MemRef/invalid.mlir
M mlir/test/Dialect/MemRef/subview.mlir
M mlir/test/Dialect/Tensor/canonicalize.mlir
M mlir/test/Dialect/Tensor/invalid.mlir
M mlir/test/Dialect/Vector/vector-transfer-drop-unit-dims-patterns.mlir
M mlir/test/Integration/Dialect/Standard/CPU/test_subview.mlir
Log Message:
-----------
[mlir][MemRef] Deprecate unspecified trailing offset, size, and strides semantics of `OffsetSizeAndStrideOpInterface`.
The semantics of the ops that implement the
`OffsetSizeAndStrideOpInterface` is that if the number of offsets,
sizes or strides are less than the rank of the source, then some
default values are filled along the trailing dimensions (0 for offset,
source dimension of sizes, and 1 for strides). This is confusing,
especially with rank-reducing semantics. Immediate issue here is that
the methods of `OffsetSizeAndStridesOpInterface` assumes that the
number of values is same as the source rank. This cause out-of-bounds
errors.
So simplifying the specification of `OffsetSizeAndStridesOpInterface`
to make it invalid to specify number of offsets/sizes/strides not
equal to the source rank.
Differential Revision: https://reviews.llvm.org/D115677
More information about the All-commits
mailing list