[Mlir-commits] [mlir] [mlir][sparse] handle padding on sparse levels. (PR #90527)

Aart Bik llvmlistbot at llvm.org
Mon Apr 29 16:05:47 PDT 2024


================
@@ -75,6 +75,40 @@ static Value genSliceStride(OpBuilder &builder, Location loc, Value tensor,
   return createOrFoldSliceStrideOp(builder, loc, tensor, toDim(enc, lvl));
 }
 
+static bool isIntOrFPZero(Attribute attr) {
----------------
aartbik wrote:

we have various helpers for isZero now, but they all are slightly different

not now, but in the longer run we should move all these into one general place again

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


More information about the Mlir-commits mailing list