[Mlir-commits] [mlir] e8e9bef - [MLIR] Use LDBG in MLIR AsmPrinter (#151163)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jul 30 08:56:37 PDT 2025
Author: Mehdi Amini
Date: 2025-07-30T17:56:34+02:00
New Revision: e8e9bef32bc89ed1d0937ae87976269855d2fa71
URL: https://github.com/llvm/llvm-project/commit/e8e9bef32bc89ed1d0937ae87976269855d2fa71
DIFF: https://github.com/llvm/llvm-project/commit/e8e9bef32bc89ed1d0937ae87976269855d2fa71.diff
LOG: [MLIR] Use LDBG in MLIR AsmPrinter (#151163)
Added:
Modified:
mlir/lib/IR/AsmPrinter.cpp
Removed:
################################################################################
diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp
index f95ad290a1981..de52fbd3f215c 100644
--- a/mlir/lib/IR/AsmPrinter.cpp
+++ b/mlir/lib/IR/AsmPrinter.cpp
@@ -40,7 +40,7 @@
#include "llvm/ADT/StringSet.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/Debug.h"
+#include "llvm/Support/DebugLog.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Regex.h"
@@ -2070,9 +2070,8 @@ static OpPrintingFlags verifyOpAndAdjustFlags(Operation *op,
return failure();
});
if (failed(verify(op))) {
- LLVM_DEBUG(llvm::dbgs()
- << DEBUG_TYPE << ": '" << op->getName()
- << "' failed to verify and will be printed in generic form\n");
+ LDBG() << op->getName()
+ << "' failed to verify and will be printed in generic form";
printerFlags.printGenericOpForm();
}
More information about the Mlir-commits
mailing list