@@ -55,11 +55,11 @@ bool mlirAttributeIsASparseTensorEncodingAttr(MlirAttribute attr) {
55
55
return isa<SparseTensorEncodingAttr>(unwrap (attr));
56
56
}
57
57
58
- MlirAttribute mlirSparseTensorEncodingAttrGet (MlirContext ctx, intptr_t lvlRank,
59
- level_type const *lvlTypes ,
60
- MlirAffineMap dimToLvl ,
61
- MlirAffineMap lvlToDim,
62
- int posWidth, int crdWidth) {
58
+ MlirAttribute
59
+ mlirSparseTensorEncodingAttrGet (MlirContext ctx, intptr_t lvlRank ,
60
+ MlirSparseTensorLevelType const *lvlTypes ,
61
+ MlirAffineMap dimToLvl, MlirAffineMap lvlToDim,
62
+ int posWidth, int crdWidth) {
63
63
SmallVector<LevelType> cppLvlTypes;
64
64
cppLvlTypes.reserve (lvlRank);
65
65
for (intptr_t l = 0 ; l < lvlRank; ++l)
@@ -81,9 +81,9 @@ intptr_t mlirSparseTensorEncodingGetLvlRank(MlirAttribute attr) {
81
81
return cast<SparseTensorEncodingAttr>(unwrap (attr)).getLvlRank ();
82
82
}
83
83
84
- level_type mlirSparseTensorEncodingAttrGetLvlType (MlirAttribute attr,
85
- intptr_t lvl) {
86
- return static_cast <level_type >(
84
+ MlirSparseTensorLevelType
85
+ mlirSparseTensorEncodingAttrGetLvlType (MlirAttribute attr, intptr_t lvl) {
86
+ return static_cast <MlirSparseTensorLevelType >(
87
87
cast<SparseTensorEncodingAttr>(unwrap (attr)).getLvlType (lvl));
88
88
}
89
89
0 commit comments