[mlir][sparse] Move a few routines to CodegenUtils.
authorbixia1 <bixia@google.com>
Tue, 11 Oct 2022 20:22:14 +0000 (13:22 -0700)
committerbixia1 <bixia@google.com>
Tue, 11 Oct 2022 21:42:18 +0000 (14:42 -0700)
commit2d252a0f5cc2b320fd57f2eb9313a11bef74e793
tree4ed164b2c5d8664a585cd1d3dfcb48a621c51d8e
parent51db96ad2b39ee365200f3421b75e977395d8b85
[mlir][sparse] Move a few routines to CodegenUtils.

Move a few supporting routines for generating function calls to CodegenUtils so
that they can be used by the codegen path for sparse tensor file input and
output.

Reviewed By: aartbik

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