[mlir][Linalg] Change signature of `get(Parallel/Reduce/Window)Dims` method.
authorMaheshRavishankar <ravishankarm@google.com>
Thu, 30 Dec 2021 22:01:38 +0000 (14:01 -0800)
committerMaheshRavishankar <ravishankarm@google.com>
Thu, 30 Dec 2021 22:02:15 +0000 (14:02 -0800)
commit59442a54608f84636c8e167fb38c3e27667e4671
treea9054db6448f738169b24a19877a873bfb8f16ac
parent441de75f69e975b0c7690044560520f8538b4efb
[mlir][Linalg] Change signature of `get(Parallel/Reduce/Window)Dims` method.

These method currently takes a SmallVector<AffineExpr> & as an
argument to return the dims as AffineExpr. This creation of
AffineExpr objects is unnecessary.

Differential Revision: https://reviews.llvm.org/D116422
mlir/include/mlir/Dialect/Linalg/IR/Linalg.h
mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp