[mlir][sparse] Add rewriting rule for the convert operator.
authorbixia1 <bixia@google.com>
Mon, 31 Oct 2022 04:55:25 +0000 (21:55 -0700)
committerbixia1 <bixia@google.com>
Tue, 1 Nov 2022 22:57:34 +0000 (15:57 -0700)
commiteb877006a61733a87257c1c999f5a0b880ccf3cd
tree87f04f3116732edb56ce1c14a6ae3c2b6ee125dd
parentf71d32a0eea47b3d2bb43d6be15cf09d47ef6971
[mlir][sparse] Add rewriting rule for the convert operator.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D136301
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
mlir/test/Dialect/SparseTensor/convert_dense2sparse.mlir
mlir/test/Dialect/SparseTensor/convert_sparse2dense.mlir
mlir/test/Dialect/SparseTensor/convert_sparse2sparse.mlir
mlir/test/Dialect/SparseTensor/rewriting_for_codegen.mlir
mlir/test/Dialect/SparseTensor/sparse_concat_codegen.mlir
mlir/test/Dialect/SparseTensor/sparse_reshape.mlir