[mlir][sparse] implement singleton dimension level type
authorAart Bik <ajcbik@google.com>
Sat, 17 Sep 2022 00:55:50 +0000 (17:55 -0700)
committerAart Bik <ajcbik@google.com>
Thu, 29 Sep 2022 23:25:07 +0000 (16:25 -0700)
commit0bfaa301e28dacc9b79ecdff12254439e2e8458a
treeb9bb16646c69fb98c51a63f1bdc4d7232f9408f0
parent3716851a84f2b4aac8afa08b2003b19cab166100
[mlir][sparse] implement singleton dimension level type

This is a first step towards fully implementing the new dimension
level types and properties, illustrating with a fully functional
sorted COO of any dimension. Note that the sparsification part is
pretty complete. The required parts in the runtime support library
have been kept to a minimum, to avoid huge conflicts with Wren's
ongoing refactoring. The missing parts will be filled in later.

Reviewed By: Peiming

Differential Revision: https://reviews.llvm.org/D134096
mlir/test/Dialect/SparseTensor/sorted_coo.mlir [new file with mode: 0644]
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sorted_coo.mlir [new file with mode: 0644]