[mlir][sparse] Making `TensorExp::Kind` a nested enum-class
authorwren romano <2998727+wrengr@users.noreply.github.com>
Mon, 20 Mar 2023 23:11:17 +0000 (16:11 -0700)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Mon, 20 Mar 2023 23:12:31 +0000 (16:12 -0700)
commit1f58ae80661b7c9738ca5cff08ff8246ddecf987
treedd8d889d9f3362718273382c83b59d2ae273fecb
parent2c7abc83f605b2d3b1062f28422eeff81278ecd5
[mlir][sparse] Making `TensorExp::Kind` a nested enum-class

This improves namespacing, and follows the pattern used for "Kind" enums elsewhere in MLIR.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D146086
mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
mlir/lib/Dialect/SparseTensor/Utils/Merger.cpp
mlir/unittests/Dialect/SparseTensor/MergerTest.cpp