Skip to content

Commit 780750b

Browse files
authored
[MLIR] Adopt LDBG() debug macro in ConvertToLLVMPass (NFC) (#154616)
1 parent 5c4f506 commit 780750b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "mlir/IR/PatternMatch.h"
1515
#include "mlir/Rewrite/FrozenRewritePatternSet.h"
1616
#include "mlir/Transforms/DialectConversion.h"
17+
#include "llvm/Support/DebugLog.h"
1718
#include <memory>
1819

1920
#define DEBUG_TYPE "convert-to-llvm"
@@ -79,13 +80,13 @@ class LoadDependentDialectExtension : public DialectExtensionBase {
7980

8081
void apply(MLIRContext *context,
8182
MutableArrayRef<Dialect *> dialects) const final {
82-
LLVM_DEBUG(llvm::dbgs() << "Convert to LLVM extension load\n");
83+
LDBG() << "Convert to LLVM extension load";
8384
for (Dialect *dialect : dialects) {
8485
auto *iface = dyn_cast<ConvertToLLVMPatternInterface>(dialect);
8586
if (!iface)
8687
continue;
87-
LLVM_DEBUG(llvm::dbgs() << "Convert to LLVM found dialect interface for "
88-
<< dialect->getNamespace() << "\n");
88+
LDBG() << "Convert to LLVM found dialect interface for "
89+
<< dialect->getNamespace();
8990
iface->loadDependentDialects(context);
9091
}
9192
}

0 commit comments

Comments
 (0)