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

Aart Bik llvmlistbot at llvm.org
Fri Jun 14 10:33:17 PDT 2024


================
@@ -57,10 +70,113 @@ class ExtractIterSpaceConverter
   }
 };
 
+class SparseIterateOpConverter : public OneToNOpConversionPattern<IterateOp> {
+public:
+  using OneToNOpConversionPattern::OneToNOpConversionPattern;
+  LogicalResult
+  matchAndRewrite(IterateOp op, OpAdaptor adaptor,
+                  OneToNPatternRewriter &rewriter) const override {
+    if (!op.getCrdUsedLvls().empty())
+      llvm_unreachable("Not implemented.");
----------------
aartbik wrote:

or, return failure() with message? or do you really want to hard-stop?

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


More information about the Mlir-commits mailing list