[mlir] Added support for rank reducing subviews
authorJakub Lichman <limo@google.com>
Wed, 30 Sep 2020 07:42:43 +0000 (07:42 +0000)
committerJakub Lichman <limo@google.com>
Wed, 30 Sep 2020 11:15:18 +0000 (11:15 +0000)
commit14088a6f5d1ae597960833a366beb9acee8d65cb
tree58973eb275a745a7257a1277ec499879e715830a
parentaf47d40b9c68744eb66aa2ef779065e946aaa099
[mlir] Added support for rank reducing subviews

This commit adds support for subviews which enable to reduce resulting rank
by dropping static dimensions of size 1.

Differential Revision: https://reviews.llvm.org/D88534
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/lib/Dialect/Vector/VectorTransforms.cpp
mlir/test/IR/core-ops.mlir
mlir/test/IR/invalid-ops.mlir