[Mlir-commits] [llvm] [clang-tools-extra] [clang] [mlir] [mlir][sparse] Change LevelType enum to 64 bit (PR #80501)

Aart Bik llvmlistbot at llvm.org
Mon Feb 5 13:16:20 PST 2024


================
@@ -25,7 +25,9 @@ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(SparseTensor, sparse_tensor);
 /// These correspond to SparseTensorEncodingAttr::LevelType in the C++ API.
 /// If updating, keep them in sync and update the static_assert in the impl
 /// file.
-enum MlirSparseTensorLevelType {
+typedef uint64_t MlirSparseTensorLevelType;
+
+enum MlirBaseLevelType {
----------------
aartbik wrote:

Since this is not used in too many places, let's stay consistent and use 

MlirSparseTensorLevelBaseType;

or

MlirBaseSparseTensorLevelType;

https://github.com/llvm/llvm-project/pull/80501


More information about the Mlir-commits mailing list