[mlir][sparse] simplify some header code (#70989)
commit22212ca745cfaa6e8e55d808fb83c6dd94791f74
authorAart Bik <39774503+aartbik@users.noreply.github.com>
Thu, 2 Nov 2023 16:31:11 +0000 (2 09:31 -0700)
committerGitHub <noreply@github.com>
Thu, 2 Nov 2023 16:31:11 +0000 (2 09:31 -0700)
treec1cb933f068a2dabaf094290add4ba945af700e2
parent4c41e7ce2045ff7cfa2d9d5dd2b8529041ac9bee
[mlir][sparse] simplify some header code (#70989)

This is a first revision in a small series of changes that removes
duplications between direct encoding methods and sparse tensor type
wrapper methods (in favor of the latter abstraction, since it provides
more safety). The goal is to simply end up with "just" SparseTensorType
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.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/SparseTensorCodegen.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp