[Mlir-commits] [mlir] [mlir][sparse] Enable explicit and implicit value in sparse encoding (PR #88975)

Peiming Liu llvmlistbot at llvm.org
Tue Apr 16 13:53:31 PDT 2024


================
@@ -307,6 +326,12 @@ def SparseTensorEncodingAttr : SparseTensor_Attr<"SparseTensorEncoding",
     // The required bitwidth for coordinate storage.
     "unsigned":$crdWidth,
 
+    // The required explicit value.
+    "::mlir::Attribute":$explicitVal,
----------------
PeimingLiu wrote:

nit: I am not sure whether there is any style guidance for this, should it (as well as other field) use underscore (i.e., `$explicit_value`)? See https://github.com/llvm/llvm-project/blob/c6e01627acf8591830ee1d211cff4d5388095f3d/mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td#L79.

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


More information about the Mlir-commits mailing list