[Mlir-commits] [mlir] [mlir][SCF] Allow using a custom operation to generate loops with `mlir::tileUsingSCF`. (PR #159660)

Quinn Dawkins llvmlistbot at llvm.org
Fri Sep 19 13:31:03 PDT 2025


================
@@ -491,27 +459,108 @@ static LogicalResult generateLoopNestUsingForOp(
         cast<scf::ForOp>(outerLoop.getOperation()).getBody());
     scf::YieldOp::create(rewriter, outerLoop.getLoc(), innerLoop->getResults());
   }
-  return success();
+  return loops;
+}
+
+/// Compute the `OpFoldResult`s that represents the multi-dimensional
+/// `offset`s and `size`s of the tile of the iteration space that the
+/// innermost loop body of the generated tiled loops corresponds to
+/// when tiling using `forall` op. This is handle separately dut to
----------------
qedawkins wrote:

```suggestion
/// when tiling using `forall` op. This is handle separately due to
```

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


More information about the Mlir-commits mailing list