LLVM API Documentation

llvm::MSchedGraph Class Reference

#include <MSchedGraph.h>

Collaboration diagram for llvm::MSchedGraph:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::map< const MachineInstr *,
MSchedGraphNode * >::iterator 
iterator
typedef std::map< const MachineInstr *,
MSchedGraphNode * >::const_iterator 
const_iterator
typedef std::map< const MachineInstr *,
MSchedGraphNode * >::reverse_iterator 
reverse_iterator

Public Member Functions

 MSchedGraph (const MachineBasicBlock *bb, const TargetMachine &targ, std::map< const MachineInstr *, unsigned > &ignoreInstrs, DependenceAnalyzer &DA, std::map< MachineInstr *, Instruction * > &machineTollvm)
 MSchedGraph (const MSchedGraph &G, std::map< MSchedGraphNode *, MSchedGraphNode * > &newNodes)
 MSchedGraph (std::vector< const MachineBasicBlock * > &bbs, const TargetMachine &targ, std::map< const MachineInstr *, unsigned > &ignoreInstrs, DependenceAnalyzer &DA, std::map< MachineInstr *, Instruction * > &machineTollvm)
void print (std::ostream &os) const
 ~MSchedGraph ()
void addNode (const MachineInstr *MI, MSchedGraphNode *node)
void deleteNode (MSchedGraphNode *node)
int totalDelay ()
iterator find (const MachineInstr *I)
iterator end ()
iterator begin ()
unsigned size ()
reverse_iterator rbegin ()
reverse_iterator rend ()
const TargetMachinegetTarget ()
std::vector< const MachineBasicBlock * > getBBs ()

Detailed Description

Definition at line 234 of file MSchedGraph.h.


Member Typedef Documentation

typedef std::map<const MachineInstr*, MSchedGraphNode*>::const_iterator llvm::MSchedGraph::const_iterator

Definition at line 281 of file MSchedGraph.h.

typedef std::map<const MachineInstr*, MSchedGraphNode*>::iterator llvm::MSchedGraph::iterator

Definition at line 280 of file MSchedGraph.h.

typedef std::map<const MachineInstr*, MSchedGraphNode*>::reverse_iterator llvm::MSchedGraph::reverse_iterator

Definition at line 282 of file MSchedGraph.h.


Constructor & Destructor Documentation

MSchedGraph::MSchedGraph ( const MachineBasicBlock bb,
const TargetMachine targ,
std::map< const MachineInstr *, unsigned > &  ignoreInstrs,
DependenceAnalyzer DA,
std::map< MachineInstr *, Instruction * > &  machineTollvm 
)

Definition at line 151 of file MSchedGraph.cpp.

References llvm::X86II::DA.

MSchedGraph::MSchedGraph ( const MSchedGraph G,
std::map< MSchedGraphNode *, MSchedGraphNode * > &  newNodes 
)

Definition at line 193 of file MSchedGraph.cpp.

References G.

MSchedGraph::MSchedGraph ( std::vector< const MachineBasicBlock * > &  bbs,
const TargetMachine targ,
std::map< const MachineInstr *, unsigned > &  ignoreInstrs,
DependenceAnalyzer DA,
std::map< MachineInstr *, Instruction * > &  machineTollvm 
)

Definition at line 174 of file MSchedGraph.cpp.

References llvm::X86II::DA.

MSchedGraph::~MSchedGraph (  ) 

Definition at line 233 of file MSchedGraph.cpp.

References E, and I.


Member Function Documentation

void MSchedGraph::addNode ( const MachineInstr MI,
MSchedGraphNode node 
)

Definition at line 121 of file MSchedGraph.cpp.

References MI.

Referenced by llvm::MSchedGraphNode::MSchedGraphNode().

iterator llvm::MSchedGraph::begin (  )  [inline]

Definition at line 285 of file MSchedGraph.h.

void MSchedGraph::deleteNode ( MSchedGraphNode node  ) 

Definition at line 132 of file MSchedGraph.cpp.

References llvm::MSchedGraphNode::getInst(), llvm::MSchedGraphNode::pred_begin(), and llvm::MSchedGraphNode::pred_size().

iterator llvm::MSchedGraph::end (  )  [inline]

Definition at line 284 of file MSchedGraph.h.

iterator llvm::MSchedGraph::find ( const MachineInstr I  )  [inline]

Definition at line 283 of file MSchedGraph.h.

std::vector<const MachineBasicBlock*> llvm::MSchedGraph::getBBs (  )  [inline]

Definition at line 292 of file MSchedGraph.h.

const TargetMachine* llvm::MSchedGraph::getTarget (  )  [inline]

Definition at line 291 of file MSchedGraph.h.

void MSchedGraph::print ( std::ostream &  os  )  const

Definition at line 240 of file MSchedGraph.cpp.

References llvm::MSchedGraphNode::print().

Referenced by llvm::ModuloSchedulingPass::runOnFunction().

reverse_iterator llvm::MSchedGraph::rbegin (  )  [inline]

Definition at line 287 of file MSchedGraph.h.

reverse_iterator llvm::MSchedGraph::rend (  )  [inline]

Definition at line 288 of file MSchedGraph.h.

unsigned llvm::MSchedGraph::size (  )  [inline]

Definition at line 286 of file MSchedGraph.h.

int MSchedGraph::totalDelay (  ) 

Definition at line 261 of file MSchedGraph.cpp.


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