[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Mar 8 22:37:42 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

ScheduleDAGList.cpp updated: 1.26 -> 1.27
---
Log message:

add some comments


---
Diffs of the changes:  (+13 -8)

 ScheduleDAGList.cpp |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.26 llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.27
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.26	Thu Mar  9 00:35:14 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp	Thu Mar  9 00:37:29 2006
@@ -119,13 +119,14 @@
 }
 
 //===----------------------------------------------------------------------===//
-// SchedulingPriorityQueue - This interface is used to plug different
-// priorities computation algorithms into the list scheduler.  It implements the
-// interface of a standard priority queue, where nodes are inserted in arbitrary
-// order and returned in priority order.  The computation of the priority and
-// the representation of the queue are totally up to the implementation to
-// decide.
-// 
+/// SchedulingPriorityQueue - This interface is used to plug different
+/// priorities computation algorithms into the list scheduler. It implements the
+/// interface of a standard priority queue, where nodes are inserted in 
+/// arbitrary order and returned in priority order.  The computation of the
+/// priority and the representation of the queue are totally up to the
+/// implementation to decide.
+/// 
+namespace {
 class SchedulingPriorityQueue {
 public:
   virtual ~SchedulingPriorityQueue() {}
@@ -137,11 +138,15 @@
   virtual void push(SUnit *U) = 0;
   virtual SUnit *pop() = 0;
 };
+}
 
 
 
 namespace {
-/// ScheduleDAGList - List scheduler.
+//===----------------------------------------------------------------------===//
+/// ScheduleDAGList - The actual list scheduler implementation.  This supports
+/// both top-down and bottom-up scheduling.
+///
 class ScheduleDAGList : public ScheduleDAG {
 private:
   // SDNode to SUnit mapping (many to one).






More information about the llvm-commits mailing list