[mlir][sparse] Move routines for generating memref.alloca to CodegenUtils.
authorbixia1 <bixia@google.com>
Thu, 13 Oct 2022 15:34:36 +0000 (08:34 -0700)
committerbixia1 <bixia@google.com>
Sun, 16 Oct 2022 15:22:02 +0000 (08:22 -0700)
commit5f919cd439d2be94f5e6a5594b163b9015d87d93
tree821cf8087852c1c585da80263ef8ef01e9e36769
parente5ee0b06d694fe7749b56706f1bf67e22eaef628
[mlir][sparse] Move routines for generating memref.alloca to CodegenUtils.

This is to allow the use of the routines in the rewrite pass.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D135890
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp