LLVM API Documentation

llvm::MSchedGraphSBNode Class Reference

#include <MSchedGraphSB.h>

Collaboration diagram for llvm::MSchedGraphSBNode:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::vector< MSchedGraphSBNode
* >::iterator 
pred_iterator
typedef std::vector< MSchedGraphSBNode
* >::const_iterator 
pred_const_iterator
typedef MSchedGraphSBNodeIterator<
std::vector< MSchedGraphSBEdge
>::const_iterator, const MSchedGraphSBNode
succ_const_iterator
typedef MSchedGraphSBNodeIterator<
std::vector< MSchedGraphSBEdge
>::iterator, MSchedGraphSBNode
succ_iterator

Public Member Functions

 MSchedGraphSBNode (const MachineInstr *inst, MSchedGraphSB *graph, unsigned index, unsigned late=0, bool isBranch=false)
 MSchedGraphSBNode (const MachineInstr *inst, std::vector< const MachineInstr * > &other, MSchedGraphSB *graph, unsigned index, unsigned late=0, bool isPNode=true)
 MSchedGraphSBNode (const MSchedGraphSBNode &N)
pred_iterator pred_begin ()
pred_iterator pred_end ()
unsigned pred_size ()
pred_const_iterator pred_begin () const
pred_const_iterator pred_end () const
succ_const_iterator succ_begin () const
succ_const_iterator succ_end () const
succ_iterator succ_begin ()
succ_iterator succ_end ()
unsigned succ_size ()
void setPredecessor (unsigned index, MSchedGraphSBNode *dest)
MSchedGraphSBNodegetPredecessor (unsigned index)
MSchedGraphSBEdgegetSuccessor (unsigned index)
void deleteSuccessor (MSchedGraphSBNode *node)
void addOutEdge (MSchedGraphSBNode *destination, MSchedGraphSBEdge::MSchedGraphSBEdgeType type, unsigned deptype, unsigned diff=0)
const MachineInstrgetInst ()
MSchedGraphSBgetParent ()
bool hasPredecessors ()
bool hasSuccessors ()
unsigned getLatency ()
unsigned getLatency () const
unsigned getIndex ()
unsigned getIteDiff (MSchedGraphSBNode *succ)
MSchedGraphSBEdge getInEdge (MSchedGraphSBNode *pred)
unsigned getInEdgeNum (MSchedGraphSBNode *pred)
bool isSuccessor (MSchedGraphSBNode *)
bool isPredecessor (MSchedGraphSBNode *)
bool isBranch ()
bool isPredicate ()
bool isPredicate () const
std::vector< const MachineInstr * > getOtherInstrs ()
void print (std::ostream &os) const
void setParent (MSchedGraphSB *p)

Detailed Description

Definition at line 71 of file MSchedGraphSB.h.


Member Typedef Documentation

typedef std::vector<MSchedGraphSBNode*>::const_iterator llvm::MSchedGraphSBNode::pred_const_iterator

Definition at line 99 of file MSchedGraphSB.h.

typedef std::vector<MSchedGraphSBNode*>::iterator llvm::MSchedGraphSBNode::pred_iterator

Definition at line 94 of file MSchedGraphSB.h.

typedef MSchedGraphSBNodeIterator<std::vector<MSchedGraphSBEdge>::const_iterator, const MSchedGraphSBNode> llvm::MSchedGraphSBNode::succ_const_iterator

Definition at line 104 of file MSchedGraphSB.h.

typedef MSchedGraphSBNodeIterator<std::vector<MSchedGraphSBEdge>::iterator, MSchedGraphSBNode> llvm::MSchedGraphSBNode::succ_iterator

Definition at line 109 of file MSchedGraphSB.h.


Constructor & Destructor Documentation

MSchedGraphSBNode::MSchedGraphSBNode ( const MachineInstr inst,
MSchedGraphSB graph,
unsigned  index,
unsigned  late = 0,
bool  isBranch = false 
)

Definition at line 37 of file MSchedGraphSB.cpp.

References llvm::MSchedGraphSB::addNode().

MSchedGraphSBNode::MSchedGraphSBNode ( const MachineInstr inst,
std::vector< const MachineInstr * > &  other,
MSchedGraphSB graph,
unsigned  index,
unsigned  late = 0,
bool  isPNode = true 
)

Definition at line 48 of file MSchedGraphSB.cpp.

References llvm::MSchedGraphSB::addNode().

MSchedGraphSBNode::MSchedGraphSBNode ( const MSchedGraphSBNode N  ) 

Definition at line 62 of file MSchedGraphSB.cpp.

References index, index, Inst, Inst, isBranchInstr, latency, otherInstrs, and Parent.


Member Function Documentation

void llvm::MSchedGraphSBNode::addOutEdge ( MSchedGraphSBNode destination,
MSchedGraphSBEdge::MSchedGraphSBEdgeType  type,
unsigned  deptype,
unsigned  diff = 0 
) [inline]

Definition at line 137 of file MSchedGraphSB.h.

References Predecessors.

void llvm::MSchedGraphSBNode::deleteSuccessor ( MSchedGraphSBNode node  )  [inline]

Definition at line 127 of file MSchedGraphSB.h.

References Predecessors.

unsigned llvm::MSchedGraphSBNode::getIndex (  )  [inline]

Definition at line 151 of file MSchedGraphSB.h.

MSchedGraphSBEdge MSchedGraphSBNode::getInEdge ( MSchedGraphSBNode pred  ) 

Definition at line 83 of file MSchedGraphSB.cpp.

References abort(), E, I, succ_begin(), and succ_end().

unsigned MSchedGraphSBNode::getInEdgeNum ( MSchedGraphSBNode pred  ) 

Definition at line 107 of file MSchedGraphSB.cpp.

References abort(), E, I, succ_begin(), and succ_end().

const MachineInstr* llvm::MSchedGraphSBNode::getInst (  )  [inline]

Definition at line 145 of file MSchedGraphSB.h.

Referenced by llvm::MSchedGraphSB::deleteNode(), and llvm::MSchedGraphSB::MSchedGraphSB().

unsigned MSchedGraphSBNode::getIteDiff ( MSchedGraphSBNode succ  ) 

Definition at line 96 of file MSchedGraphSB.cpp.

References E, and I.

unsigned llvm::MSchedGraphSBNode::getLatency (  )  const [inline]

Definition at line 150 of file MSchedGraphSB.h.

unsigned llvm::MSchedGraphSBNode::getLatency (  )  [inline]

Definition at line 149 of file MSchedGraphSB.h.

std::vector<const MachineInstr*> llvm::MSchedGraphSBNode::getOtherInstrs (  )  [inline]

Definition at line 160 of file MSchedGraphSB.h.

MSchedGraphSB* llvm::MSchedGraphSBNode::getParent (  )  [inline]

Definition at line 146 of file MSchedGraphSB.h.

MSchedGraphSBNode* llvm::MSchedGraphSBNode::getPredecessor ( unsigned  index  )  [inline]

Definition at line 119 of file MSchedGraphSB.h.

MSchedGraphSBEdge* llvm::MSchedGraphSBNode::getSuccessor ( unsigned  index  )  [inline]

Definition at line 123 of file MSchedGraphSB.h.

bool llvm::MSchedGraphSBNode::hasPredecessors (  )  [inline]

Definition at line 147 of file MSchedGraphSB.h.

bool llvm::MSchedGraphSBNode::hasSuccessors (  )  [inline]

Definition at line 148 of file MSchedGraphSB.h.

bool llvm::MSchedGraphSBNode::isBranch (  )  [inline]

Definition at line 157 of file MSchedGraphSB.h.

bool MSchedGraphSBNode::isPredecessor ( MSchedGraphSBNode  ) 

Definition at line 131 of file MSchedGraphSB.cpp.

bool llvm::MSchedGraphSBNode::isPredicate (  )  const [inline]

Definition at line 159 of file MSchedGraphSB.h.

bool llvm::MSchedGraphSBNode::isPredicate (  )  [inline]

Definition at line 158 of file MSchedGraphSB.h.

Referenced by print().

bool MSchedGraphSBNode::isSuccessor ( MSchedGraphSBNode  ) 

Definition at line 123 of file MSchedGraphSB.cpp.

References E, I, succ_begin(), and succ_end().

pred_const_iterator llvm::MSchedGraphSBNode::pred_begin (  )  const [inline]

Definition at line 100 of file MSchedGraphSB.h.

pred_iterator llvm::MSchedGraphSBNode::pred_begin (  )  [inline]

Definition at line 95 of file MSchedGraphSB.h.

Referenced by llvm::GraphTraits< Inverse< const MSchedGraphSB * > >::child_begin(), llvm::GraphTraits< Inverse< MSchedGraphSB * > >::child_begin(), and llvm::MSchedGraphSB::deleteNode().

pred_const_iterator llvm::MSchedGraphSBNode::pred_end (  )  const [inline]

Definition at line 101 of file MSchedGraphSB.h.

pred_iterator llvm::MSchedGraphSBNode::pred_end (  )  [inline]

Definition at line 96 of file MSchedGraphSB.h.

Referenced by llvm::GraphTraits< Inverse< const MSchedGraphSB * > >::child_end(), and llvm::GraphTraits< Inverse< MSchedGraphSB * > >::child_end().

unsigned llvm::MSchedGraphSBNode::pred_size (  )  [inline]

Definition at line 97 of file MSchedGraphSB.h.

Referenced by llvm::MSchedGraphSB::deleteNode().

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

Definition at line 74 of file MSchedGraphSB.cpp.

References Inst, and isPredicate().

Referenced by llvm::operator<<(), and llvm::MSchedGraphSB::print().

void llvm::MSchedGraphSBNode::setParent ( MSchedGraphSB p  )  [inline]

Definition at line 164 of file MSchedGraphSB.h.

void llvm::MSchedGraphSBNode::setPredecessor ( unsigned  index,
MSchedGraphSBNode dest 
) [inline]

Definition at line 115 of file MSchedGraphSB.h.

MSchedGraphSBNode::succ_iterator llvm::MSchedGraphSBNode::succ_begin (  )  [inline]

Definition at line 209 of file MSchedGraphSB.h.

MSchedGraphSBNode::succ_const_iterator llvm::MSchedGraphSBNode::succ_begin (  )  const [inline]

Definition at line 203 of file MSchedGraphSB.h.

Referenced by llvm::GraphTraits< const MSchedGraphSB * >::child_begin(), llvm::GraphTraits< MSchedGraphSB * >::child_begin(), llvm::GraphTraits< MSchedGraphSBNode * >::child_begin(), getInEdge(), getInEdgeNum(), and isSuccessor().

MSchedGraphSBNode::succ_iterator llvm::MSchedGraphSBNode::succ_end (  )  [inline]

Definition at line 212 of file MSchedGraphSB.h.

MSchedGraphSBNode::succ_const_iterator llvm::MSchedGraphSBNode::succ_end (  )  const [inline]

Definition at line 206 of file MSchedGraphSB.h.

Referenced by llvm::GraphTraits< const MSchedGraphSB * >::child_end(), llvm::GraphTraits< MSchedGraphSB * >::child_end(), llvm::GraphTraits< MSchedGraphSBNode * >::child_end(), getInEdge(), getInEdgeNum(), and isSuccessor().

unsigned llvm::MSchedGraphSBNode::succ_size (  )  [inline]

Definition at line 112 of file MSchedGraphSB.h.


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