[mlir][sparse] Refactoring: remove Operation * from the argument list in utility functions
This patch remove the Operation *op from the argument list in utility functions, and directly pass the Location instead of calling op->getLoc(). This should make the code more clear, as the utility function (logically) does not relies on the operation that we are currently rewriting, and they behave the same regardless of the operation. Reviewed By: aartbik, wrengr Differential Revision: https://reviews.llvm.org/D131991
Loading
Please sign in to comment