[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user