LLVM API Documentation
#include <SchedGraph.h>
Inheritance diagram for llvm::SchedGraph:
Public Types | |
typedef hash_map< const MachineInstr *, SchedGraphNode * >::const_iterator | iterator |
typedef hash_map< const MachineInstr *, SchedGraphNode * >::const_iterator | const_iterator |
Public Member Functions | |
MachineBasicBlock & | getBasicBlock () const |
const unsigned int | getNumNodes () const |
SchedGraphNode * | getGraphNodeForInstr (const MachineInstr *MI) const |
void | dump () const |
Protected Member Functions | |
SchedGraph (MachineBasicBlock &mbb, const TargetMachine &TM) | |
~SchedGraph () | |
hash_map< const MachineInstr *, SchedGraphNode * >::const_iterator | begin () const |
hash_map< const MachineInstr *, SchedGraphNode * >::const_iterator | end () const |
unsigned | size () |
iterator | find (const MachineInstr *MI) const |
SchedGraphNode *& | operator[] (const MachineInstr *MI) |
Friends | |
class | SchedGraphSet |
Definition at line 58 of file SchedGraph.h.
typedef hash_map<const MachineInstr*, SchedGraphNode*>::const_iterator llvm::SchedGraph::const_iterator |
Definition at line 64 of file SchedGraph.h.
typedef hash_map<const MachineInstr*, SchedGraphNode*>::const_iterator llvm::SchedGraph::iterator |
Definition at line 63 of file SchedGraph.h.
llvm::SchedGraph::SchedGraph | ( | MachineBasicBlock & | mbb, | |
const TargetMachine & | TM | |||
) | [protected] |
llvm::SchedGraph::~SchedGraph | ( | ) | [protected] |
hash_map<const MachineInstr*, SchedGraphNode*>::const_iterator llvm::SchedGraph::begin | ( | ) | const [inline, protected] |
void llvm::SchedGraph::dump | ( | ) | const |
Definition at line 108 of file SchedGraph.cpp.
References begin(), llvm::SchedGraphNodeCommon::beginOutEdges(), E, end(), llvm::SchedGraphNodeCommon::endOutEdges(), llvm::MachineBasicBlock::getBasicBlock(), llvm::Value::getName(), llvm::SchedGraphCommon::graphRoot, and I.
hash_map<const MachineInstr*, SchedGraphNode*>::const_iterator llvm::SchedGraph::end | ( | ) | const [inline, protected] |
Definition at line 86 of file SchedGraph.h.
Referenced by dump(), getGraphNodeForInstr(), and ~SchedGraph().
iterator llvm::SchedGraph::find | ( | const MachineInstr * | MI | ) | const [inline, protected] |
MachineBasicBlock& llvm::SchedGraph::getBasicBlock | ( | ) | const [inline] |
Definition at line 66 of file SchedGraph.h.
SchedGraphNode* llvm::SchedGraph::getGraphNodeForInstr | ( | const MachineInstr * | MI | ) | const [inline] |
Definition at line 68 of file SchedGraph.h.
References end(), find(), and MI.
Referenced by llvm::ChooseInstructionsForDelaySlots(), and llvm::ReplaceNopsWithUsefulInstr().
const unsigned int llvm::SchedGraph::getNumNodes | ( | ) | const [inline] |
Definition at line 67 of file SchedGraph.h.
SchedGraphNode*& llvm::SchedGraph::operator[] | ( | const MachineInstr * | MI | ) | [inline, protected] |
unsigned llvm::SchedGraph::size | ( | ) | [inline, protected] |
Definition at line 90 of file SchedGraph.h.
friend class SchedGraphSet [friend] |
Definition at line 98 of file SchedGraph.h.