[mlir][sparse] Factoring out SparseTensorFile::canReadAs predicate
authorwren romano <2998727+wrengr@users.noreply.github.com>
Thu, 29 Sep 2022 20:09:24 +0000 (13:09 -0700)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Thu, 29 Sep 2022 21:46:45 +0000 (14:46 -0700)
commitc8177f845b4132f2838d169cee04270051235140
tree45b9dc2beb6d5e6e7ccfdd54f54b9bf37dd9f25f
parent164b66f796ddde52a05e97301fbf6f9461b12881
[mlir][sparse] Factoring out SparseTensorFile::canReadAs predicate

This is a followup to the refactoring of D133462, D133830, D133831, and D133833.

Depends On D133833

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D133835
mlir/include/mlir/ExecutionEngine/SparseTensor/File.h
mlir/lib/ExecutionEngine/SparseTensor/File.cpp