[llvm-commits] CVS: llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp SchedPriorities.h

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 2 16:09:00 PST 2002


Changes in directory llvm/lib/CodeGen/InstrSched:

SchedPriorities.cpp updated: 1.23 -> 1.24
SchedPriorities.h updated: 1.21 -> 1.22

---
Log message:

Move function to cpp file from header


---
Diffs of the changes:

Index: llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
diff -u llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp:1.23 llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp:1.24
--- llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp:1.23	Mon Oct 28 12:50:08 2002
+++ llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp	Sat Nov  2 16:07:51 2002
@@ -17,6 +17,12 @@
 #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),


Index: llvm/lib/CodeGen/InstrSched/SchedPriorities.h
diff -u llvm/lib/CodeGen/InstrSched/SchedPriorities.h:1.21 llvm/lib/CodeGen/InstrSched/SchedPriorities.h:1.22
--- llvm/lib/CodeGen/InstrSched/SchedPriorities.h:1.21	Fri Nov  1 10:46:05 2002
+++ llvm/lib/CodeGen/InstrSched/SchedPriorities.h	Sat Nov  2 16:07:51 2002
@@ -18,7 +18,6 @@
 #include "llvm/Target/MachineSchedInfo.h"
 #include "Support/hash_set"
 #include <list>
-#include <iosfwd>
 
 class Function;
 class MachineInstr;
@@ -202,9 +201,6 @@
   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





More information about the llvm-commits mailing list