[llvm-branch-commits] [mlir] [mlir][Transforms] Dialect conversion: Add flag to disable rollback (PR #136490)
Matthias Springer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Apr 21 08:02:54 PDT 2025
================
@@ -861,8 +861,10 @@ struct ConversionPatternRewriterImpl : public RewriterBase::Listener {
/// conversion process succeeds.
void applyRewrites();
- /// Reset the state of the rewriter to a previously saved point.
- void resetState(RewriterState state);
+ /// Reset the state of the rewriter to a previously saved point. Optionally,
+ /// the name of the pattern that triggered the rollback can specified for
+ /// debugging purposes.
+ void resetState(RewriterState state, StringRef patternName = "");
----------------
matthias-springer wrote:
This entire function will disappear when we delete the rollback mechanism.
https://github.com/llvm/llvm-project/pull/136490
More information about the llvm-branch-commits
mailing list