This repository was archived by the owner on Oct 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ enum MlirSparseTensorLevelFormat {
3939enum MlirSparseTensorLevelPropertyNondefault {
4040 MLIR_SPARSE_PROPERTY_NON_UNIQUE = 0x0001 ,
4141 MLIR_SPARSE_PROPERTY_NON_ORDERED = 0x0002 ,
42+ MLIR_SPARSE_PROPERTY_SOA = 0x0004 ,
4243};
4344
4445//===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ static void populateDialectSparseTensorSubmodule(const py::module &m) {
3333 py::enum_<MlirSparseTensorLevelPropertyNondefault>(m, " LevelProperty" ,
3434 py::module_local ())
3535 .value (" non_ordered" , MLIR_SPARSE_PROPERTY_NON_ORDERED)
36- .value (" non_unique" , MLIR_SPARSE_PROPERTY_NON_UNIQUE);
36+ .value (" non_unique" , MLIR_SPARSE_PROPERTY_NON_UNIQUE)
37+ .value (" soa" , MLIR_SPARSE_PROPERTY_SOA);
3738
3839 mlir_attribute_subclass (m, " EncodingAttr" ,
3940 mlirAttributeIsASparseTensorEncodingAttr)
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ static_assert(
3636static_assert (static_cast <int >(MLIR_SPARSE_PROPERTY_NON_ORDERED) ==
3737 static_cast <int >(LevelPropNonDefault::Nonordered) &&
3838 static_cast <int >(MLIR_SPARSE_PROPERTY_NON_UNIQUE) ==
39- static_cast <int >(LevelPropNonDefault::Nonunique),
39+ static_cast <int >(LevelPropNonDefault::Nonunique) &&
40+ static_cast <int >(MLIR_SPARSE_PROPERTY_SOA) ==
41+ static_cast <int >(LevelPropNonDefault::SoA),
4042 " MlirSparseTensorLevelProperty (C-API) and "
4143 " LevelPropertyNondefault (C++) mismatch" );
4244
You can’t perform that action at this time.
0 commit comments