mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Moved index in BB to common graph class.
llvm-svn: 8175
This commit is contained in:
parent
7ce05c067d
commit
ff06e1a796
@ -29,6 +29,7 @@ protected:
|
||||
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 @@ public:
|
||||
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 @@ protected:
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user