[mlir][sparse] Replace the folding of nop convert with a codegen rule.
authorbixia1 <bixia@google.com>
Wed, 19 Oct 2022 00:22:13 +0000 (17:22 -0700)
committerbixia1 <bixia@google.com>
Wed, 19 Oct 2022 17:20:47 +0000 (10:20 -0700)
commit58b449c3bb9ddd49c9c840bdd4ed46135c1254e1
treedc8f1039da7c8802f662af90ce6e2edf2b30f086
parent614958912784a13737720de39b2da40fe6f26e75
[mlir][sparse] Replace the folding of nop convert with a codegen rule.

This is to allow the use of a nop convert to express that the sparse tensor
allocated through bufferization::AllocTensorOp will be expanded to sparse
tensor storage by sparse tensor codegen.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D136214
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
mlir/test/Dialect/SparseTensor/codegen.mlir
mlir/test/Dialect/SparseTensor/fold.mlir