|
30 | 30 | #include "llvm/Support/Allocator.h" |
31 | 31 | #include "llvm/Support/CommandLine.h" |
32 | 32 | #include "llvm/Support/Compiler.h" |
33 | | -#include "llvm/Support/Debug.h" |
| 33 | +#include "llvm/Support/DebugLog.h" |
34 | 34 | #include "llvm/Support/ManagedStatic.h" |
35 | 35 | #include "llvm/Support/Mutex.h" |
36 | 36 | #include "llvm/Support/RWMutex.h" |
@@ -455,8 +455,7 @@ MLIRContext::getOrLoadDialect(StringRef dialectNamespace, TypeID dialectID, |
455 | 455 | auto dialectIt = impl.loadedDialects.try_emplace(dialectNamespace, nullptr); |
456 | 456 |
|
457 | 457 | if (dialectIt.second) { |
458 | | - LLVM_DEBUG(llvm::dbgs() |
459 | | - << "Load new dialect in Context " << dialectNamespace << "\n"); |
| 458 | + LDBG() << "Load new dialect in Context " << dialectNamespace; |
460 | 459 | #ifndef NDEBUG |
461 | 460 | if (impl.multiThreadedExecutionContext != 0) |
462 | 461 | llvm::report_fatal_error( |
@@ -525,8 +524,7 @@ DynamicDialect *MLIRContext::getOrLoadDynamicDialect( |
525 | 524 | "' has already been registered"); |
526 | 525 | } |
527 | 526 |
|
528 | | - LLVM_DEBUG(llvm::dbgs() << "Load new dynamic dialect in Context " |
529 | | - << dialectNamespace << "\n"); |
| 527 | + LDBG() << "Load new dynamic dialect in Context " << dialectNamespace; |
530 | 528 | #ifndef NDEBUG |
531 | 529 | if (impl.multiThreadedExecutionContext != 0) |
532 | 530 | llvm::report_fatal_error( |
@@ -1192,11 +1190,10 @@ willBeValidAffineMap(unsigned dimCount, unsigned symbolCount, |
1192 | 1190 | getMaxDimAndSymbol(ArrayRef<ArrayRef<AffineExpr>>(results), maxDimPosition, |
1193 | 1191 | maxSymbolPosition); |
1194 | 1192 | if ((maxDimPosition >= dimCount) || (maxSymbolPosition >= symbolCount)) { |
1195 | | - LLVM_DEBUG( |
1196 | | - llvm::dbgs() |
| 1193 | + LDBG() |
1197 | 1194 | << "maximum dimensional identifier position in result expression must " |
1198 | 1195 | "be less than `dimCount` and maximum symbolic identifier position " |
1199 | | - "in result expression must be less than `symbolCount`\n"); |
| 1196 | + "in result expression must be less than `symbolCount`"; |
1200 | 1197 | return false; |
1201 | 1198 | } |
1202 | 1199 | return true; |
|
0 commit comments