[Mlir-commits] [llvm] [mlir] [MLIR] Update GreedyRewriter to use the LDBG() debug log mechanism (NFC) (PR #153961)
Jacques Pienaar
llvmlistbot at llvm.org
Mon Aug 18 06:54:01 PDT 2025
================
@@ -394,8 +395,12 @@ class GreedyPatternRewriteDriver : public RewriterBase::Listener {
function_ref<void(Diagnostic &)> reasonCallback) override;
#ifndef NDEBUG
+ /// A raw output stream used to prefix the debug log.
+
+ llvm::impl::raw_ldbg_ostream os{(Twine("[") + DEBUG_TYPE + ":1] ").str(),
----------------
jpienaar wrote:
Not loving this one ... But beyond adding another macro, not sure what could be done.
https://github.com/llvm/llvm-project/pull/153961
More information about the Mlir-commits
mailing list