mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove <iostream>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
04ef5428cd
commit
eb75364020
@ -18,9 +18,8 @@
|
||||
|
||||
#include "Solver.h"
|
||||
#include "AnnotatedGraph.h"
|
||||
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <limits>
|
||||
#include <iostream>
|
||||
|
||||
namespace PBQP {
|
||||
|
||||
@ -470,8 +469,7 @@ private:
|
||||
}
|
||||
|
||||
void printNode(const GraphNodeIterator &nodeItr) {
|
||||
|
||||
std::cerr << "Node " << g.getNodeID(nodeItr) << " (" << &*nodeItr << "):\n"
|
||||
llvm::errs() << "Node " << g.getNodeID(nodeItr) << " (" << &*nodeItr << "):\n"
|
||||
<< " costs = " << g.getNodeCosts(nodeItr) << "\n"
|
||||
<< " link degree = " << g.getNodeData(nodeItr).getLinkDegree() << "\n"
|
||||
<< " links = [ ";
|
||||
@ -480,16 +478,15 @@ private:
|
||||
aeItr = g.getNodeData(nodeItr).adjLinksBegin(),
|
||||
aeEnd = g.getNodeData(nodeItr).adjLinksEnd();
|
||||
aeItr != aeEnd; ++aeItr) {
|
||||
std::cerr << "(" << g.getNodeID(g.getEdgeNode1Itr(*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");
|
||||
|
Loading…
Reference in New Issue
Block a user