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::MSchedGraphNode Class Reference

#include <MSchedGraph.h>

Collaboration diagram for llvm::MSchedGraphNode:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::vector< MSchedGraphNode
* >::iterator 
pred_iterator
typedef std::vector< MSchedGraphNode
* >::const_iterator 
pred_const_iterator
typedef MSchedGraphNodeIterator<
std::vector< MSchedGraphEdge
>::const_iterator, const MSchedGraphNode
succ_const_iterator
typedef MSchedGraphNodeIterator<
std::vector< MSchedGraphEdge
>::iterator, MSchedGraphNode
succ_iterator

Public Member Functions

 MSchedGraphNode (const MachineInstr *inst, MSchedGraph *graph, unsigned index, unsigned late=0, bool isBranch=false)
pred_iterator pred_begin ()
pred_iterator pred_end ()
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 ()
void addOutEdge (MSchedGraphNode *destination, MSchedGraphEdge::MSchedGraphEdgeType type, unsigned deptype, unsigned diff=0)
const MachineInstrgetInst ()
MSchedGraphgetParent ()
bool hasPredecessors ()
bool hasSuccessors ()
unsigned getLatency ()
unsigned getLatency () const
unsigned getIndex ()
MSchedGraphEdge getInEdge (MSchedGraphNode *pred)
unsigned getInEdgeNum (MSchedGraphNode *pred)
bool isSuccessor (MSchedGraphNode *)
bool isPredecessor (MSchedGraphNode *)
bool isBranch ()
void print (std::ostream &os) const

Detailed Description

Definition at line 57 of file MSchedGraph.h.


Member Typedef Documentation

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

Definition at line 78 of file MSchedGraph.h.

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

Definition at line 74 of file MSchedGraph.h.

typedef MSchedGraphNodeIterator<std::vector<MSchedGraphEdge>::const_iterator, const MSchedGraphNode> llvm::MSchedGraphNode::succ_const_iterator
 

Definition at line 84 of file MSchedGraph.h.

typedef MSchedGraphNodeIterator<std::vector<MSchedGraphEdge>::iterator, MSchedGraphNode> llvm::MSchedGraphNode::succ_iterator
 

Definition at line 89 of file MSchedGraph.h.


Constructor & Destructor Documentation

MSchedGraphNode::MSchedGraphNode const MachineInstr inst,
MSchedGraph graph,
unsigned  index,
unsigned  late = 0,
bool  isBranch = false
 

Definition at line 24 of file MSchedGraph.cpp.

References llvm::MSchedGraph::addNode().


Member Function Documentation

void llvm::MSchedGraphNode::addOutEdge MSchedGraphNode destination,
MSchedGraphEdge::MSchedGraphEdgeType  type,
unsigned  deptype,
unsigned  diff = 0
[inline]
 

Definition at line 95 of file MSchedGraph.h.

References Predecessors.

unsigned llvm::MSchedGraphNode::getIndex  )  [inline]
 

Definition at line 107 of file MSchedGraph.h.

MSchedGraphEdge MSchedGraphNode::getInEdge MSchedGraphNode pred  ) 
 

Definition at line 37 of file MSchedGraph.cpp.

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

unsigned MSchedGraphNode::getInEdgeNum MSchedGraphNode pred  ) 
 

Definition at line 49 of file MSchedGraph.cpp.

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

const MachineInstr* llvm::MSchedGraphNode::getInst  )  [inline]
 

Definition at line 101 of file MSchedGraph.h.

Referenced by llvm::DOTGraphTraits< MSchedGraph * >::getNodeLabel().

unsigned llvm::MSchedGraphNode::getLatency  )  const [inline]
 

Definition at line 106 of file MSchedGraph.h.

unsigned llvm::MSchedGraphNode::getLatency  )  [inline]
 

Definition at line 105 of file MSchedGraph.h.

MSchedGraph* llvm::MSchedGraphNode::getParent  )  [inline]
 

Definition at line 102 of file MSchedGraph.h.

bool llvm::MSchedGraphNode::hasPredecessors  )  [inline]
 

Definition at line 103 of file MSchedGraph.h.

bool llvm::MSchedGraphNode::hasSuccessors  )  [inline]
 

Definition at line 104 of file MSchedGraph.h.

bool llvm::MSchedGraphNode::isBranch  )  [inline]
 

Definition at line 113 of file MSchedGraph.h.

bool MSchedGraphNode::isPredecessor MSchedGraphNode  ) 
 

Definition at line 70 of file MSchedGraph.cpp.

bool MSchedGraphNode::isSuccessor MSchedGraphNode  ) 
 

Definition at line 62 of file MSchedGraph.cpp.

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

pred_const_iterator llvm::MSchedGraphNode::pred_begin  )  const [inline]
 

Definition at line 79 of file MSchedGraph.h.

pred_iterator llvm::MSchedGraphNode::pred_begin  )  [inline]
 

Definition at line 75 of file MSchedGraph.h.

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

pred_const_iterator llvm::MSchedGraphNode::pred_end  )  const [inline]
 

Definition at line 80 of file MSchedGraph.h.

pred_iterator llvm::MSchedGraphNode::pred_end  )  [inline]
 

Definition at line 76 of file MSchedGraph.h.

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

void MSchedGraphNode::print std::ostream &  os  )  const
 

Definition at line 33 of file MSchedGraph.cpp.

Referenced by llvm::operator<<().

MSchedGraphNode::succ_iterator llvm::MSchedGraphNode::succ_begin  )  [inline]
 

Definition at line 160 of file MSchedGraph.h.

MSchedGraphNode::succ_const_iterator llvm::MSchedGraphNode::succ_begin  )  const [inline]
 

Definition at line 154 of file MSchedGraph.h.

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

MSchedGraphNode::succ_iterator llvm::MSchedGraphNode::succ_end  )  [inline]
 

Definition at line 163 of file MSchedGraph.h.

MSchedGraphNode::succ_const_iterator llvm::MSchedGraphNode::succ_end  )  const [inline]
 

Definition at line 157 of file MSchedGraph.h.

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


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