LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::SchedGraph Class Reference

#include <SchedGraph.h>

Inheritance diagram for llvm::SchedGraph:

Inheritance graph
[legend]
Collaboration diagram for llvm::SchedGraph:

Collaboration graph
[legend]
List of all members.

Public Types

typedef hash_map< const MachineInstr *,
SchedGraphNode * >::const_iterator 
iterator
typedef hash_map< const MachineInstr *,
SchedGraphNode * >::const_iterator 
const_iterator

Public Member Functions

MachineBasicBlockgetBasicBlock () const
const unsigned int getNumNodes () const
SchedGraphNodegetGraphNodeForInstr (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

Detailed Description

Definition at line 58 of file SchedGraph.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

llvm::SchedGraph::SchedGraph MachineBasicBlock mbb,
const TargetMachine TM
[protected]
 

Definition at line 88 of file SchedGraph.cpp.

llvm::SchedGraph::~SchedGraph  )  [protected]
 

Definition at line 103 of file SchedGraph.cpp.

References begin(), end(), and I.


Member Function Documentation

hash_map<const MachineInstr*, SchedGraphNode*>::const_iterator llvm::SchedGraph::begin  )  const [inline, protected]
 

Definition at line 83 of file SchedGraph.h.

Referenced by dump(), and ~SchedGraph().

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]
 

Definition at line 91 of file SchedGraph.h.

Referenced by getGraphNodeForInstr().

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(), and find().

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]
 

Definition at line 93 of file SchedGraph.h.

unsigned llvm::SchedGraph::size  )  [inline, protected]
 

Definition at line 90 of file SchedGraph.h.


Friends And Related Function Documentation

friend class SchedGraphSet [friend]
 

Definition at line 98 of file SchedGraph.h.


The documentation for this class was generated from the following files: