#include "Support/PostOrderIterator.h"
using std::cerr;
+std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd) {
+ return os << "Delay for node " << nd->node->getNodeId()
+ << " = " << (long)nd->delay << "\n";
+}
+
+
SchedPriorities::SchedPriorities(const Function *, const SchedGraph *G,
FunctionLiveVarInfo &LVI)
: curTime(0), graph(G), methodLiveVarInfo(LVI),
#include "llvm/Target/MachineSchedInfo.h"
#include "Support/hash_set"
#include <list>
-#include <iosfwd>
class Function;
class MachineInstr;
mcands.clear();
}
-inline std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd) {
- return os << "Delay for node " << nd->node->getNodeId()
- << " = " << (long)nd->delay << "\n";
-}
+std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd);
#endif
#include "Support/PostOrderIterator.h"
using std::cerr;
+std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd) {
+ return os << "Delay for node " << nd->node->getNodeId()
+ << " = " << (long)nd->delay << "\n";
+}
+
+
SchedPriorities::SchedPriorities(const Function *, const SchedGraph *G,
FunctionLiveVarInfo &LVI)
: curTime(0), graph(G), methodLiveVarInfo(LVI),
#include "llvm/Target/MachineSchedInfo.h"
#include "Support/hash_set"
#include <list>
-#include <iosfwd>
class Function;
class MachineInstr;
mcands.clear();
}
-inline std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd) {
- return os << "Delay for node " << nd->node->getNodeId()
- << " = " << (long)nd->delay << "\n";
-}
+std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd);
#endif