[Mlir-commits] [mlir] [MLIR] [Transforms] Let `transform.structured.convert_to_loops` return handles to loops (PR #83984)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Mar 5 09:46:23 PST 2024


================
@@ -2122,6 +2122,9 @@ DiagnosedSilenceableFailure transform::ConvertToLoopsOp::applyToOne(
   if (failed(loops))
     return emitDefaultDefiniteFailure(target);
   rewriter.eraseOp(target);
+  for (auto &loop : *loops) {
+    results.push_back(loop);
+  }
----------------
lhunloh wrote:

We decided to go with a single handle for all generated loops. This is easily splittable via `transform.split_handle`.

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


More information about the Mlir-commits mailing list