This helps the Merger maintain invariants, as well as clarifying the immutability of the underlying objects (with the one exception of TensorExp::val).
Depends On: D146559
Paths
| Differential D146083
[mlir][sparse] Updating the `Merger::{exp,lat,set}` methods to return const ClosedPublic Authored by wrengr on Mar 14 2023, 1:08 PM.
Details Summary This helps the Merger maintain invariants, as well as clarifying the immutability of the underlying objects (with the one exception of TensorExp::val). Depends On: D146559
Diff Detail
Event Timeline
wrengr added a child revision: D146561: [mlir][sparse] Removing shared_ptr from the MergerTest.cpp unit test.Mar 21 2023, 1:33 PM aartbik added inline comments.
This revision is now accepted and ready to land.Mar 22 2023, 12:59 PM wrengr added inline comments.
wrengr added a child revision: D146562: [mlir][sparse] Misc cleanup in Merger.h.Mar 22 2023, 9:17 PM wrengr removed a child revision: D146561: [mlir][sparse] Removing shared_ptr from the MergerTest.cpp unit test.Mar 22 2023, 9:47 PM Closed by commit rG7c7c10a0233f: [mlir][sparse] Updating the `Merger::{exp,lat,set}` methods to return const (authored by wrengr). · Explain WhyMar 24 2023, 2:48 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 507580 mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h
mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.h
mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.cpp
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
|
I would remove L468-471 as a note to self (unless you have an immediate solution)
mainly because I want to make it very clear that L452-464 apply to all three methods here