llvm.org GIT mirror llvm / f68b8a2
Moved index in BB to common graph class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8175 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 17 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2828 std::vector inEdges;
2929 std::vector outEdges;
3030 int latency;
31 int origIndexInBB; // original position of instr in BB
3132
3233 public:
3334 typedef std::vector::iterator iterator;
4041 int getLatency() const { return latency; }
4142 unsigned getNumInEdges() const { return inEdges.size(); }
4243 unsigned getNumOutEdges() const { return outEdges.size(); }
43
44 int getOrigIndexInBB() const { return origIndexInBB; }
4445
4546 // Iterators
4647 iterator beginInEdges() { return inEdges.begin(); }
6768 // disable default constructor and provide a ctor for single-block graphs
6869 SchedGraphNodeCommon(); // DO NOT IMPLEMENT
6970
70 inline SchedGraphNodeCommon(unsigned Id) : ID(Id), latency(0) {}
71 inline SchedGraphNodeCommon(unsigned Id, int index) : ID(Id), latency(0),
72 origIndexInBB(index) {}
7173 virtual ~SchedGraphNodeCommon();
7274
7375 //Functions to add and remove edges