llvm-project/mlir/lib/Dialect/SparseTensor
Aart Bik eca6f9160f [mlir][sparse][bufferization] refine bufferization assumption enforcement
Enforce the assumption made on tensor buffers explicitly. When in-place,
reuse the buffer, but fill with all zeroes for the non-update case, since
the kernel assumes all elements are written to. When not in-place, zero
out the new buffer when materializing or when no-updates occur. Copy the
original tensor value when updates occur. This prepares migrating to the
new bufferization strategy, where these assumptions must be made explicit.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D128691
2022-06-28 09:43:30 -07:00
..
IR [mlir] (NFC) Clean up bazel and CMake target names 2022-06-13 16:24:15 +00:00
Pipelines [mlir] (NFC) Clean up bazel and CMake target names 2022-06-13 16:24:15 +00:00
Transforms [mlir][sparse][bufferization] refine bufferization assumption enforcement 2022-06-28 09:43:30 -07:00
Utils Revert "Don't use Optional::hasValue (NFC)" 2022-06-25 11:56:50 -07:00
CMakeLists.txt [mlir][sparse] Adding standard pipeline for tests. 2022-01-28 15:11:12 -08:00