summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/PBQP
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-08-15 22:28:08 +0000
committerBill Wendling <isanbard@gmail.com>2009-08-15 22:28:08 +0000
commiteb75364020aad1af558b756e4a5e2eeea91be36f (patch)
tree4034fe0ad292f20f42c1de0f6b6cfd19e04b7e77 /lib/CodeGen/PBQP
parent04ef5428cda4813f6d61e3454dbd07e5a5c9874f (diff)
downloadexternal_llvm-eb75364020aad1af558b756e4a5e2eeea91be36f.zip
external_llvm-eb75364020aad1af558b756e4a5e2eeea91be36f.tar.gz
external_llvm-eb75364020aad1af558b756e4a5e2eeea91be36f.tar.bz2
Remove <iostream>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PBQP')
-rw-r--r--lib/CodeGen/PBQP/HeuristicSolver.h37
1 files changed, 17 insertions, 20 deletions
diff --git a/lib/CodeGen/PBQP/HeuristicSolver.h b/lib/CodeGen/PBQP/HeuristicSolver.h
index a36ca78..e786246 100644
--- a/lib/CodeGen/PBQP/HeuristicSolver.h
+++ b/lib/CodeGen/PBQP/HeuristicSolver.h
@@ -18,9 +18,8 @@
#include "Solver.h"
#include "AnnotatedGraph.h"
-
+#include "llvm/Support/raw_ostream.h"
#include <limits>
-#include <iostream>
namespace PBQP {
@@ -470,26 +469,24 @@ private:
}
void printNode(const GraphNodeIterator &nodeItr) {
-
- std::cerr << "Node " << g.getNodeID(nodeItr) << " (" << &*nodeItr << "):\n"
- << " costs = " << g.getNodeCosts(nodeItr) << "\n"
- << " link degree = " << g.getNodeData(nodeItr).getLinkDegree() << "\n"
- << " links = [ ";
+ llvm::errs() << "Node " << g.getNodeID(nodeItr) << " (" << &*nodeItr << "):\n"
+ << " costs = " << g.getNodeCosts(nodeItr) << "\n"
+ << " link degree = " << g.getNodeData(nodeItr).getLinkDegree() << "\n"
+ << " links = [ ";
for (typename HSIT::NodeData::AdjLinkIterator
aeItr = g.getNodeData(nodeItr).adjLinksBegin(),
aeEnd = g.getNodeData(nodeItr).adjLinksEnd();
aeItr != aeEnd; ++aeItr) {
- std::cerr << "(" << g.getNodeID(g.getEdgeNode1Itr(*aeItr))
- << ", " << g.getNodeID(g.getEdgeNode2Itr(*aeItr))
- << ") ";
+ llvm::errs() << "(" << g.getNodeID(g.getEdgeNode1Itr(*aeItr))
+ << ", " << g.getNodeID(g.getEdgeNode2Itr(*aeItr))
+ << ") ";
}
- std::cout << "]\n";
+ llvm::errs() << "]\n";
}
void dumpState() {
-
- std::cerr << "\n";
+ llvm::errs() << "\n";
for (GraphNodeIterator nodeItr = g.nodesBegin(), nodeEnd = g.nodesEnd();
nodeItr != nodeEnd; ++nodeItr) {
@@ -501,22 +498,22 @@ private:
for (unsigned b = 0; b < 3; ++b) {
NodeList &bucket = *buckets[b];
- std::cerr << "Bucket " << b << ": [ ";
+ llvm::errs() << "Bucket " << b << ": [ ";
for (NodeListIterator nItr = bucket.begin(), nEnd = bucket.end();
nItr != nEnd; ++nItr) {
- std::cerr << g.getNodeID(*nItr) << " ";
+ llvm::errs() << g.getNodeID(*nItr) << " ";
}
- std::cerr << "]\n";
+ llvm::errs() << "]\n";
}
- std::cerr << "Stack: [ ";
+ llvm::errs() << "Stack: [ ";
for (NodeStackIterator nsItr = stack.begin(), nsEnd = stack.end();
nsItr != nsEnd; ++nsItr) {
- std::cerr << g.getNodeID(*nsItr) << " ";
+ llvm::errs() << g.getNodeID(*nsItr) << " ";
}
- std::cerr << "]\n";
+ llvm::errs() << "]\n";
}
void reduce() {
@@ -549,7 +546,7 @@ private:
solution.incR1Reductions();
- //std::cerr << "Applying R1 to " << g.getNodeID(xNodeItr) << "\n";
+ //llvm::errs() << "Applying R1 to " << g.getNodeID(xNodeItr) << "\n";
assert((g.getNodeData(xNodeItr).getLinkDegree() == 1) &&
"Node in R1 bucket has degree != 1");