[Mlir-commits] [mlir] [mlir][sparse] implement lowering rules for ExtractIterSpaceOp. (PR #89143)

Ingo Müller llvmlistbot at llvm.org
Fri May 10 09:16:39 PDT 2024


================
@@ -112,9 +114,9 @@ class BatchLevel : public SparseTensorLevel {
 
   ValueRange getLvlBuffers() const override { return {}; }
 
-  ValuePair peekRangeAt(OpBuilder &b, Location l, ValueRange, Value p,
-                        Value max) const override {
-    assert(max == nullptr && "Dense level can not be non-unique.");
+  ValuePair peekRangeAt(OpBuilder &b, Location l, ValueRange,
+                        ValueRange parentPos) const override {
+    assert(parentPos.size() == 1 && "Dense level can not be non-unique.");
----------------
ingomueller-net wrote:

```suggestion
    assert(parentPos.size() == 1 && "Dense level cannot be non-unique.");
```

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


More information about the Mlir-commits mailing list