LLVM API Documentation

llvm::MSchedGraphSB Class Reference

#include <MSchedGraphSB.h>

Collaboration diagram for llvm::MSchedGraphSB:

Collaboration graph
[legend]
List of all members.

Public Types

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

Public Member Functions

 MSchedGraphSB (const MachineBasicBlock *bb, const TargetMachine &targ, std::map< const MachineInstr *, unsigned > &ignoreInstrs, DependenceAnalyzer &DA, std::map< MachineInstr *, Instruction * > &machineTollvm)
 MSchedGraphSB (const MSchedGraphSB &G, std::map< MSchedGraphSBNode *, MSchedGraphSBNode * > &newNodes)
 MSchedGraphSB (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
 ~MSchedGraphSB ()
void addNode (const MachineInstr *MI, MSchedGraphSBNode *node)
void deleteNode (MSchedGraphSBNode *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 244 of file MSchedGraphSB.h.


Member Typedef Documentation

typedef std::map<const MachineInstr*, MSchedGraphSBNode*>::const_iterator llvm::MSchedGraphSB::const_iterator

Definition at line 293 of file MSchedGraphSB.h.

typedef std::map<const MachineInstr*, MSchedGraphSBNode*>::iterator llvm::MSchedGraphSB::iterator

Definition at line 292 of file MSchedGraphSB.h.

typedef std::map<const MachineInstr*, MSchedGraphSBNode*>::reverse_iterator llvm::MSchedGraphSB::reverse_iterator

Definition at line 294 of file MSchedGraphSB.h.


Constructor & Destructor Documentation

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

MSchedGraphSB::MSchedGraphSB ( const MSchedGraphSB G,
std::map< MSchedGraphSBNode *, MSchedGraphSBNode * > &  newNodes 
)

Definition at line 277 of file MSchedGraphSB.cpp.

References G.

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

Definition at line 170 of file MSchedGraphSB.cpp.

References BB, llvm::MachineBasicBlock::begin(), llvm::X86II::DA, DEBUG, E, llvm::MachineBasicBlock::end(), llvm::MachineCodeForInstruction::get(), llvm::BranchInst::getCondition(), llvm::MSchedGraphSBNode::getInst(), llvm::TargetMachine::getInstrInfo(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::Instruction::getParent(), llvm::BasicBlock::getTerminator(), llvm::MachineOperand::getVRegValue(), I, Inst, llvm::TargetInstrInfo::isBranch(), llvm::BranchInst::isConditional(), llvm::TargetInstrInfo::isNop(), MBB, llvm::MachineOperand::MO_VirtualRegister, llvm::MachineCodeForInstruction::size(), Target, and V.

MSchedGraphSB::~MSchedGraphSB (  ) 

Definition at line 317 of file MSchedGraphSB.cpp.

References E, and I.


Member Function Documentation

void MSchedGraphSB::addNode ( const MachineInstr MI,
MSchedGraphSBNode node 
)

Definition at line 140 of file MSchedGraphSB.cpp.

References MI.

Referenced by llvm::MSchedGraphSBNode::MSchedGraphSBNode().

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

Definition at line 297 of file MSchedGraphSB.h.

void MSchedGraphSB::deleteNode ( MSchedGraphSBNode node  ) 

Definition at line 151 of file MSchedGraphSB.cpp.

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

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

Definition at line 296 of file MSchedGraphSB.h.

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

Definition at line 295 of file MSchedGraphSB.h.

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

Definition at line 304 of file MSchedGraphSB.h.

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

Definition at line 303 of file MSchedGraphSB.h.

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

Definition at line 324 of file MSchedGraphSB.cpp.

References llvm::MSchedGraphSBNode::print().

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

Definition at line 299 of file MSchedGraphSB.h.

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

Definition at line 300 of file MSchedGraphSB.h.

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

Definition at line 298 of file MSchedGraphSB.h.

int MSchedGraphSB::totalDelay (  ) 

Definition at line 345 of file MSchedGraphSB.cpp.


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