[mlir][sparse] Factoring out getZero() and avoiding unnecessary Type params
authorwren romano <2998727+wrengr@users.noreply.github.com>
Fri, 1 Oct 2021 00:25:32 +0000 (17:25 -0700)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Fri, 1 Oct 2021 21:17:53 +0000 (14:17 -0700)
commitca010347145d2f03052f50a327bb84f4efd1fa49
tree2a7a2c4ae11cca60aa10e724cbb665be747e025f
parentb084b98abe07455fe190fba933d14f0dc365dd25
[mlir][sparse] Factoring out getZero() and avoiding unnecessary Type params

This is preliminary work towards D110790

Reviewed By: aartbik

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