[Mlir-commits] [mlir] [MLIR][SCF] Define `-scf-rotate-while` pass (PR #99850)

Victor Perez llvmlistbot at llvm.org
Tue Jul 23 02:51:22 PDT 2024


================
@@ -85,6 +86,10 @@ void populateSCFForLoopCanonicalizationPatterns(RewritePatternSet &patterns);
 ///  * `after` block containing arith.addi
 void populateUpliftWhileToForPatterns(RewritePatternSet &patterns);
 
+/// Populate patterns to rotate `scf.while` ops, constructing `do-while` loops
+/// from `while` loops.
+void populateSCFRotateWhileLoopPatterns(
+    RewritePatternSet &patterns, const SCFRotateWhileLoopPassOptions &options);
----------------
victor-eds wrote:

I'm planning on using the patterns, that's why I went with this. We could also hide the problem by not allowing options in the patterns. The pass can remain as is. WDYT?

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


More information about the Mlir-commits mailing list