[Mlir-commits] [mlir] [mlir][sparse][pybind][CAPI] remove LevelType enum from CAPI, constru… (PR #81682)

Aart Bik llvmlistbot at llvm.org
Tue Feb 13 15:54:34 PST 2024


================
@@ -343,17 +344,31 @@ constexpr std::optional<LevelFormat> getLevelFormat(LevelType lt) {
 /// Convert a LevelFormat to its corresponding LevelType with the given
 /// properties. Returns std::nullopt when the properties are not applicable
 /// for the input level format.
-constexpr std::optional<LevelType> buildLevelType(LevelFormat lf, bool ordered,
-                                                  bool unique, uint64_t n = 0,
-                                                  uint64_t m = 0) {
+inline std::optional<LevelType>
+buildLevelType(LevelFormat lf,
+               llvm::ArrayRef<LevelPropertyNondefault> properties,
----------------
aartbik wrote:

can we use something different from array ref?

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


More information about the Mlir-commits mailing list