[mlir][sparse] Canonicalizing arguments to genReshapeDstShape and foreachInSparseConstant
authorwren romano <2998727+wrengr@users.noreply.github.com>
Tue, 11 Apr 2023 22:16:47 +0000 (15:16 -0700)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Wed, 12 Apr 2023 02:11:59 +0000 (19:11 -0700)
commit9d4df97ff0ef459316cdb55f17eaea9fe9b1c1d5
tree16da555da9e37fe98eca8619291ea3324f543723
parentcae2a36d480d7795c763f755d41deca0ffe02465
[mlir][sparse] Canonicalizing arguments to genReshapeDstShape and foreachInSparseConstant

These functions don't need a`PatternRewriter`, they only need an `OpBuilder`.  And, the builder should be the first argument, before the `Location`, to match the style used everywhere else in MLIR.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D148059
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp