[mlir][sparse] replace experimental flag with inplace attribute
authorAart Bik <ajcbik@google.com>
Sat, 15 May 2021 04:02:31 +0000 (21:02 -0700)
committerAart Bik <ajcbik@google.com>
Mon, 17 May 2021 18:43:44 +0000 (11:43 -0700)
commit5879da496cdf44e50cbd8ea062aa36370e218fdb
tree4d16c5972e80faa8e163ca10dc7962a61a3bddae
parent4a12248ee27631c86c2c29d203b22599339ced92
[mlir][sparse] replace experimental flag with inplace attribute

The experimental flag for "inplace" bufferization in the sparse
compiler can be replaced with the new inplace attribute. This gives
a uniform way of expressing the more efficient way of bufferization.

Reviewed By: bixia

Differential Revision: https://reviews.llvm.org/D102538
mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
mlir/test/Dialect/SparseTensor/sparse_lower.mlir
mlir/test/Dialect/SparseTensor/sparse_lower_inplace.mlir [new file with mode: 0644]
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_matmul.mlir