[Mlir-commits] [mlir] [MLIR][SCF] Define `-scf-rotate-while` pass (PR #99850)
Ivan Butygin
llvmlistbot at llvm.org
Tue Jul 23 02:57:03 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);
----------------
Hardcode84 wrote:
Yeah, I feel not exposing this option on patterns is better solution, but you will need to keep old test pass to be able to test it.
https://github.com/llvm/llvm-project/pull/99850
More information about the Mlir-commits
mailing list