[mlir][sparse] add "sort" to the compress op codegen
authorAart Bik <ajcbik@google.com>
Wed, 28 Sep 2022 00:06:20 +0000 (17:06 -0700)
committerAart Bik <ajcbik@google.com>
Wed, 28 Sep 2022 17:41:40 +0000 (10:41 -0700)
commit4d06861950978b223f6ebdacee071e8203d0911b
tree99b558070b489ce75642edcdc6c1a65d4c0508cc
parentc5983963de7a6fb4dce0c7232905cc66c7b52030
[mlir][sparse] add "sort" to the compress op codegen

This revision also adds convenience methods to test the
dim level type/property (with the codegen being first client)

Reviewed By: bixia

Differential Revision: https://reviews.llvm.org/D134776
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp
mlir/test/Dialect/SparseTensor/codegen.mlir