[mlir][vector] NFC: Expose castAwayContractionLeadingOneDim
authorLei Zhang <antiagainst@google.com>
Fri, 21 Apr 2023 16:41:01 +0000 (09:41 -0700)
committerLei Zhang <antiagainst@google.com>
Fri, 21 Apr 2023 16:41:14 +0000 (09:41 -0700)
commiteca7698a979ebc2338c075d63ac52c4c21b19cb1
tree394b405e8329ce7b8565e6abbc65cd1471c0cad0
parentca554ad7c2bc417ab1256f51a6b95eda7a0cc7c6
[mlir][vector] NFC: Expose castAwayContractionLeadingOneDim

This commit exposes the transformation behind the pattern.
It is useful for more targeted application on a specific op
for once.

Reviewed By: kuhar

Differential Revision: https://reviews.llvm.org/D148758
mlir/include/mlir/Dialect/Vector/IR/VectorOps.h
mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp