diff options
| author | Nicola Zaghen <nicola.zaghen@imgtec.com> | 2018-05-15 13:37:17 +0000 |
|---|---|---|
| committer | Nicola Zaghen <nicola.zaghen@imgtec.com> | 2018-05-15 13:37:17 +0000 |
| commit | 349506a926c78af36cdcac75d44ac7522f168d06 (patch) | |
| tree | e3d1f236a6bf854d438b9d8a824c7a4d676d0e0e /polly/lib/Analysis/ScopDetection.cpp | |
| parent | e7245b429b942946ed3cb8f422b22e3de6d00a3c (diff) | |
| download | bcm5719-llvm-349506a926c78af36cdcac75d44ac7522f168d06.tar.gz bcm5719-llvm-349506a926c78af36cdcac75d44ac7522f168d06.zip | |
[polly] Update uses of DEBUG macro to LLVM_DEBUG.
The DEBUG() macro is very generic so it might clash with other projects.
The renaming was done as follows:
- git grep -l 'DEBUG' | xargs sed -i 's/\bDEBUG\s\?(/LLVM_DEBUG(/g'
- git diff -U0 master | ../clang/tools/clang-format/clang-format-diff.py -i -p1 -style LLVM
Differential Revision: https://reviews.llvm.org/D44978
llvm-svn: 332352
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 4c5c95af6e6..9fc5eeb0f0f 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -410,8 +410,8 @@ inline bool ScopDetection::invalid(DetectionContext &Context, bool Assert, if (PollyTrackFailures) Log.report(RejectReason); - DEBUG(dbgs() << RejectReason->getMessage()); - DEBUG(dbgs() << "\n"); + LLVM_DEBUG(dbgs() << RejectReason->getMessage()); + LLVM_DEBUG(dbgs() << "\n"); } else { assert(!Assert && "Verification of detected scop failed"); } @@ -704,8 +704,8 @@ bool ScopDetection::isValidCallInst(CallInst &CI, return false; if (isDebugCall(&CI)) { - DEBUG(dbgs() << "Allow call to debug function: " - << CalledFunction->getName() << '\n'); + LLVM_DEBUG(dbgs() << "Allow call to debug function: " + << CalledFunction->getName() << '\n'); return true; } @@ -1383,14 +1383,14 @@ Region *ScopDetection::expandRegion(Region &R) { std::unique_ptr<Region> LastValidRegion; auto ExpandedRegion = std::unique_ptr<Region>(R.getExpandedRegion()); - DEBUG(dbgs() << "\tExpanding " << R.getNameStr() << "\n"); + LLVM_DEBUG(dbgs() << "\tExpanding " << R.getNameStr() << "\n"); while (ExpandedRegion) { const auto &It = DetectionContextMap.insert(std::make_pair( getBBPairForRegion(ExpandedRegion.get()), DetectionContext(*ExpandedRegion, AA, false /*verifying*/))); DetectionContext &Context = It.first->second; - DEBUG(dbgs() << "\t\tTrying " << ExpandedRegion->getNameStr() << "\n"); + LLVM_DEBUG(dbgs() << "\t\tTrying " << ExpandedRegion->getNameStr() << "\n"); // Only expand when we did not collect errors. if (!Context.Log.hasErrors()) { @@ -1424,7 +1424,7 @@ Region *ScopDetection::expandRegion(Region &R) { } } - DEBUG({ + LLVM_DEBUG({ if (LastValidRegion) dbgs() << "\tto " << LastValidRegion->getNameStr() << "\n"; else @@ -1630,23 +1630,23 @@ bool ScopDetection::isProfitableRegion(DetectionContext &Context) const { bool ScopDetection::isValidRegion(DetectionContext &Context) const { Region &CurRegion = Context.CurRegion; - DEBUG(dbgs() << "Checking region: " << CurRegion.getNameStr() << "\n\t"); + LLVM_DEBUG(dbgs() << "Checking region: " << CurRegion.getNameStr() << "\n\t"); if (!PollyAllowFullFunction && CurRegion.isTopLevelRegion()) { - DEBUG(dbgs() << "Top level region is invalid\n"); + LLVM_DEBUG(dbgs() << "Top level region is invalid\n"); return false; } DebugLoc DbgLoc; if (CurRegion.getExit() && isa<UnreachableInst>(CurRegion.getExit()->getTerminator())) { - DEBUG(dbgs() << "Unreachable in exit\n"); + LLVM_DEBUG(dbgs() << "Unreachable in exit\n"); return invalid<ReportUnreachableInExit>(Context, /*Assert=*/true, CurRegion.getExit(), DbgLoc); } if (!CurRegion.getEntry()->getName().count(OnlyRegion)) { - DEBUG({ + LLVM_DEBUG({ dbgs() << "Region entry does not match -polly-region-only"; dbgs() << "\n"; }); @@ -1667,7 +1667,7 @@ bool ScopDetection::isValidRegion(DetectionContext &Context) const { return invalid<ReportIrreducibleRegion>(Context, /*Assert=*/true, &CurRegion, DbgLoc); - DEBUG(dbgs() << "OK\n"); + LLVM_DEBUG(dbgs() << "OK\n"); return true; } |

