[Mlir-commits] [mlir] [mlir][sparse] Expand LevelType to 64 bits and implement parsing n out of m (PR #79935)

Yinying Li llvmlistbot at llvm.org
Fri Feb 2 11:38:02 PST 2024


================
@@ -25,21 +25,24 @@ 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.
+
+typedef uint64_t level_type;
+
 enum MlirSparseTensorLevelType {
----------------
yinying-lisa-li wrote:

Yes, I kept the enum for building py_enum in the python binding, which will be helpful for us to buildLevelType with enum. WDYT?

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


More information about the Mlir-commits mailing list