[llvm] [mlir] [mlir][sparse] Change LevelType enum to 64 bit (PR #80501)

Aart Bik via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 17:33:02 PST 2024


================
@@ -52,16 +54,15 @@ mlirAttributeIsASparseTensorEncodingAttr(MlirAttribute attr);
 
 /// Creates a `sparse_tensor.encoding` attribute with the given parameters.
 MLIR_CAPI_EXPORTED MlirAttribute mlirSparseTensorEncodingAttrGet(
-    MlirContext ctx, intptr_t lvlRank,
-    enum MlirSparseTensorLevelType const *lvlTypes, MlirAffineMap dimToLvl,
-    MlirAffineMap lvlTodim, int posWidth, int crdWidth);
+    MlirContext ctx, intptr_t lvlRank, MlirBaseLevelType const *lvlTypes,
----------------
aartbik wrote:

e.g. here we want to use MlirSparseTensorLevelType (and not a base)

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


More information about the llvm-commits mailing list