Comment fixes, and make Schedule() pure virtual.
authorDan Gohman <gohman@apple.com>
Tue, 24 Jun 2008 00:02:44 +0000 (00:02 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 24 Jun 2008 00:02:44 +0000 (00:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52658 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/ScheduleDAG.h

index 0c393a0628ac2606a86b86f748d8e0dfc033ffbf..4849f914ca92433b8e92e5ab61be5ff49b76372c 100644 (file)
@@ -229,8 +229,9 @@ namespace llvm {
     virtual void remove(SUnit *SU) = 0;
 
     /// ScheduledNode - As each node is scheduled, this method is invoked.  This
-    /// allows the priority function to adjust the priority of node that have
-    /// already been emitted.
+    /// allows the priority function to adjust the priority of related
+    /// unscheduled nodes, for example.
+    ///
     virtual void ScheduledNode(SUnit *) {}
 
     virtual void UnscheduledNode(SUnit *) {}
@@ -339,9 +340,10 @@ namespace llvm {
 
     void dumpSchedule() const;
 
-    /// Schedule - Order nodes according to selected style.
+    /// Schedule - Order nodes according to selected style, filling
+    /// in the Sequence member.
     ///
-    virtual void Schedule() {}
+    virtual void Schedule() = 0;
 
   private:
     /// EmitSubregNode - Generate machine code for subreg nodes.