[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
This commit is contained in:
wren romano
2023-04-11 15:16:47 -07:00
parent cae2a36d48
commit 9d4df97ff0
4 changed files with 18 additions and 18 deletions

View File

@@ -489,7 +489,7 @@ genSparse2SparseReshape(ReshapeOp op, typename ReshapeOp::Adaptor adaptor,
// Static "shapes" are in fact "sizes".
fillDimShape(rewriter, loc, dstTp, dstDimSizes);
else
genReshapeDstShape(loc, rewriter, dstDimSizes, srcDimSizes,
genReshapeDstShape(rewriter, loc, dstDimSizes, srcDimSizes,
dstTp.getDimShape(), op.getReassociationIndices());
const Value coo =
params.genBuffers(dstTp, dstDimSizes).genNewCall(Action::kEmptyCOO);