diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-12 14:18:01 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-12 14:18:01 +0000 |
commit | af00d485a409983639881b4d34f0cd89e1eb4d38 (patch) | |
tree | add356970280a6bc2a82ca2faf1e19900aa2f652 /lib/CodeGen/InstrSched/SchedGraph.h | |
parent | 5567e942c03056cc566225e93a93f6516d73f305 (diff) |
Major improvement to how nodes are built for a BB.
LLVM instruction is no longer recorded in each node, but BB is.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSched/SchedGraph.h')
-rw-r--r-- | lib/CodeGen/InstrSched/SchedGraph.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/InstrSched/SchedGraph.h b/lib/CodeGen/InstrSched/SchedGraph.h index dc5d0059e5..1fec41e4ba 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.h +++ b/lib/CodeGen/InstrSched/SchedGraph.h @@ -142,7 +142,7 @@ private: class SchedGraphNode: public NonCopyable { private: unsigned int nodeId; - const Instruction* instr; + const BasicBlock* bb; const MachineInstr* minstr; vector<SchedGraphEdge*> inEdges; vector<SchedGraphEdge*> outEdges; @@ -160,13 +160,13 @@ public: // Accessor methods // unsigned int getNodeId () const { return nodeId; } - const Instruction* getInstr () const { return instr; } const MachineInstr* getMachineInstr () const { return minstr; } const MachineOpCode getOpCode () const { return minstr->getOpCode();} int getLatency () const { return latency; } unsigned int getNumInEdges () const { return inEdges.size(); } unsigned int getNumOutEdges () const { return outEdges.size(); } bool isDummyNode () const { return (minstr == NULL); } + const BasicBlock* getBB () const { return bb; } int getOrigIndexInBB() const { return origIndexInBB; } // @@ -203,7 +203,7 @@ private: // disable default constructor and provide a ctor for single-block graphs /*ctor*/ SchedGraphNode(); // DO NOT IMPLEMENT /*ctor*/ SchedGraphNode (unsigned int _nodeId, - const Instruction* _instr, + const BasicBlock* _bb, const MachineInstr* _minstr, int indexInBB, const TargetMachine& _target); |