[mlir][sparse] Add rewrite rule for the sparse_tensor.out operator.
authorbixia1 <bixia@google.com>
Fri, 21 Oct 2022 16:10:35 +0000 (09:10 -0700)
committerbixia1 <bixia@google.com>
Fri, 21 Oct 2022 19:20:53 +0000 (12:20 -0700)
commite445349d2cca15cf4581810ce298172a3939c453
treec22bb9f888ba23f9a07d2981c7bae1b879941d13
parent6e245918ec87ffcf70743dd43330ea896fe7810c
[mlir][sparse] Add rewrite rule for the sparse_tensor.out operator.

Also fix the rewrite rule for sparse_tensor.new to reflect the recent change of
the runtime C interface and to use utilities for memref.alloca.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D135891
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
mlir/test/Dialect/SparseTensor/rewriting_for_codegen.mlir