Previously, we generate AOS subviews for indices buffers when constructing an
immutable sparse tensor descriptor. We now only generate such subviews when
getIdxMemRefOrView is requested.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.cpp | ||
---|---|---|
122 | I am not sure whether a mutDesc is really needed here. |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.h | ||
---|---|---|
306 | You can move the getter to the base class (shared by mut/immut) |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.cpp | ||
---|---|---|
123 | Seems that you only need the idxMemSize from mutDesc, but these getters can be safely moved to the base class (they are not updating the descriptor anyway, see my previous comments), then you can get rid of this mutDesc here. | |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.h | ||
344 | Did you rebase? if not, these template need to be removed as well. |
Move some getters to the Impl class, remove the need for mutDesc for a case.
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.cpp | ||
---|---|---|
123 | Removed mutDesc here. |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.h | ||
---|---|---|
400 | These two parameter seems unecessary now |
You can move the getter to the base class (shared by mut/immut)