[mlir][sparse] Factoring out SparseTensorFile class for readSparseTensorShape
authorwren romano <2998727+wrengr@users.noreply.github.com>
Tue, 31 May 2022 19:55:01 +0000 (12:55 -0700)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Tue, 31 May 2022 20:24:28 +0000 (13:24 -0700)
commita4c53f8cd6e4519242690b9e5aa54a928609cf8b
tree4f249a42fb88c9f01bf168ecc0ba32e4079f49eb
parentfde240c9c328b8a824a064c8ccd91252516e6d41
[mlir][sparse] Factoring out SparseTensorFile class for readSparseTensorShape

The primary goal of this change is to define readSparseTensorShape.  Whereas the SparseTensorFile class is merely introduced as a way to reduce code duplication along the way.

Depends On D126106

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D126233
mlir/include/mlir/ExecutionEngine/SparseTensorUtils.h
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp