[mlir][sparse] (re)introducing getRankedTensorType/getMemrefType
authorwren romano <2998727+wrengr@users.noreply.github.com>
Tue, 24 Jan 2023 21:23:52 +0000 (13:23 -0800)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Wed, 25 Jan 2023 19:29:54 +0000 (11:29 -0800)
commit9916ab03f19dc50c688b8567ac0d30b4a6615f9d
treec253e3e30539e5f97b553688d0a0cb206c56d1c6
parentb0e4d389d33b0f6c62628b10289df9b11fa74e01
[mlir][sparse] (re)introducing getRankedTensorType/getMemrefType

The bulk of D142074 seems to have gotten overwritten due to some sort of merge conflict (afaict there's no record of it having been reverted intentionally).  So this commit redoes those changes.  In addition to the original changes, this commit also:
* moves the definition of `getRankedTensorType` (from `Transforms/CodegenUtils.h` to `IR/SparseTensor.h`), so that it can be used by `IR/SparseTensorDialect.cpp`.
* adds `getMemRefType` as another abbreviation.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D142503
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h
mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp