diff options
author | Peiming Liu <peiming@google.com> | 2022-08-16 20:47:02 +0000 |
---|---|---|
committer | Peiming Liu <peiming@google.com> | 2022-08-16 21:26:43 +0000 |
commit | ee986ab72711d838a7e7ff363c0d2efa7dba91e8 (patch) | |
tree | fa9279c5514f33494ab5380907260bff30721a83 /llvm/lib/Transforms/Utils/BuildLibCalls.cpp | |
parent | 5482432bf6cc7e334894734ebbdac0a97ee98b19 (diff) | |
download | llvm-ee986ab72711d838a7e7ff363c0d2efa7dba91e8.zip llvm-ee986ab72711d838a7e7ff363c0d2efa7dba91e8.tar.gz llvm-ee986ab72711d838a7e7ff363c0d2efa7dba91e8.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions