[Mlir-commits] [mlir] [mlir] Add splitForOpAtBound utility and use it in loop unrolling (PR #215108)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Aug 26 01:33:58 PDT 2026


================
@@ -363,6 +364,112 @@ void mlir::generateUnrolledLoop(
   loopBodyBlock->getTerminator()->setOperands(lastYielded);
 }
 
+/// Splits `forOp` into two consecutive loops at `splitPoint`.
+FailureOr<std::pair<scf::ForOp, scf::ForOp>>
+mlir::splitForOpAtPoint(scf::ForOp forOp, Value splitPoint) {
----------------
davidlerner96 wrote:

Done.

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


More information about the Mlir-commits mailing list