[llvm-commits] CVS: llvm/include/llvm/CodeGen/SchedGraphCommon.h

Tanya Brethour tbrethou at cs.uiuc.edu
Thu Aug 28 10:32:01 PDT 2003


Changes in directory llvm/include/llvm/CodeGen:

SchedGraphCommon.h updated: 1.3 -> 1.4

---
Log message:

Moved index in BB to common graph class.


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/SchedGraphCommon.h
diff -u llvm/include/llvm/CodeGen/SchedGraphCommon.h:1.3 llvm/include/llvm/CodeGen/SchedGraphCommon.h:1.4
--- llvm/include/llvm/CodeGen/SchedGraphCommon.h:1.3	Wed Aug 27 10:52:23 2003
+++ llvm/include/llvm/CodeGen/SchedGraphCommon.h	Thu Aug 28 10:31:28 2003
@@ -29,6 +29,7 @@
   std::vector<SchedGraphEdge*> inEdges;
   std::vector<SchedGraphEdge*> outEdges;
   int latency;
+  int origIndexInBB;            // original position of instr in BB
 
 public:
   typedef std::vector<SchedGraphEdge*>::iterator iterator;
@@ -41,7 +42,7 @@
   int getLatency() const { return latency; }
   unsigned getNumInEdges() const { return inEdges.size(); }
   unsigned getNumOutEdges() const { return outEdges.size(); }
-  
+  int getOrigIndexInBB() const { return origIndexInBB; }
 
   // Iterators
   iterator beginInEdges() { return inEdges.begin(); }
@@ -68,7 +69,8 @@
   // disable default constructor and provide a ctor for single-block graphs
   SchedGraphNodeCommon();	// DO NOT IMPLEMENT
   
-  inline SchedGraphNodeCommon(unsigned Id) : ID(Id), latency(0) {}
+  inline SchedGraphNodeCommon(unsigned Id, int index) : ID(Id), latency(0), 
+							origIndexInBB(index) {}
   virtual ~SchedGraphNodeCommon();
   
   //Functions to add and remove edges





More information about the llvm-commits mailing list