aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ExactHazardRecognizer.cpp
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-08-11 01:44:26 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-08-11 01:44:26 +0000
commit3a5f0d444cf21e2b90d5eb965bb677c7ce098546 (patch)
tree8a0e4fcdbfc9cc3251876109796ad317571df06c /lib/CodeGen/ExactHazardRecognizer.cpp
parentf24bd401eb453f3e15e69a093b3943f7946d5bed (diff)
downloadexternal_llvm-3a5f0d444cf21e2b90d5eb965bb677c7ce098546.zip
external_llvm-3a5f0d444cf21e2b90d5eb965bb677c7ce098546.tar.gz
external_llvm-3a5f0d444cf21e2b90d5eb965bb677c7ce098546.tar.bz2
Replace DOUT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ExactHazardRecognizer.cpp')
-rw-r--r--lib/CodeGen/ExactHazardRecognizer.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/CodeGen/ExactHazardRecognizer.cpp b/lib/CodeGen/ExactHazardRecognizer.cpp
index a7fcf91..7535caa 100644
--- a/lib/CodeGen/ExactHazardRecognizer.cpp
+++ b/lib/CodeGen/ExactHazardRecognizer.cpp
@@ -17,6 +17,7 @@
#include "llvm/CodeGen/ScheduleHazardRecognizer.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetInstrItineraries.h"
namespace llvm {
@@ -47,8 +48,8 @@ ExactHazardRecognizer::ExactHazardRecognizer(const InstrItineraryData &LItinData
Scoreboard = new unsigned[ScoreboardDepth];
ScoreboardHead = 0;
- DOUT << "Using exact hazard recognizer: ScoreboardDepth = "
- << ScoreboardDepth << '\n';
+ DEBUG(errs() << "Using exact hazard recognizer: ScoreboardDepth = "
+ << ScoreboardDepth << '\n');
}
ExactHazardRecognizer::~ExactHazardRecognizer() {
@@ -65,7 +66,7 @@ unsigned ExactHazardRecognizer::getFutureIndex(unsigned offset) {
}
void ExactHazardRecognizer::dumpScoreboard() {
- DOUT << "Scoreboard:\n";
+ DEBUG(errs() << "Scoreboard:\n");
unsigned last = ScoreboardDepth - 1;
while ((last > 0) && (Scoreboard[getFutureIndex(last)] == 0))
@@ -73,10 +74,10 @@ void ExactHazardRecognizer::dumpScoreboard() {
for (unsigned i = 0; i <= last; i++) {
unsigned FUs = Scoreboard[getFutureIndex(i)];
- DOUT << "\t";
+ DEBUG(errs() << "\t");
for (int j = 31; j >= 0; j--)
- DOUT << ((FUs & (1 << j)) ? '1' : '0');
- DOUT << '\n';
+ DEBUG(errs() << ((FUs & (1 << j)) ? '1' : '0'));
+ DEBUG(errs() << '\n');
}
}
@@ -96,8 +97,8 @@ ExactHazardRecognizer::HazardType ExactHazardRecognizer::getHazardType(SUnit *SU
unsigned index = getFutureIndex(cycle);
unsigned freeUnits = IS->Units & ~Scoreboard[index];
if (!freeUnits) {
- DOUT << "*** Hazard in cycle " << cycle << ", ";
- DOUT << "SU(" << SU->NodeNum << "): ";
+ DEBUG(errs() << "*** Hazard in cycle " << cycle << ", ");
+ DEBUG(errs() << "SU(" << SU->NodeNum << "): ");
DEBUG(SU->getInstr()->dump());
return Hazard;
}