[llvm-branch-commits] [mlir] [mlir][Transforms] Dialect conversion: Add flag to disable rollback (PR #136490)

Jacques Pienaar via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Apr 21 06:46:58 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 = "");
----------------
jpienaar wrote:

Are patternName params intended to stay post?

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


More information about the llvm-branch-commits mailing list