LLVM API Documentation

llvm::SchedGraphEdge Class Reference

#include <SchedGraphCommon.h>

Collaboration diagram for llvm::SchedGraphEdge:

Collaboration graph
[legend]
List of all members.

Public Types

enum  SchedGraphEdgeDepType {
  CtrlDep, MemoryDep, ValueDep, MachineRegister,
  MachineResource
}
enum  DataDepOrderType { TrueDep = 0x1, AntiDep = 0x2, OutputDep = 0x4, NonDataDep = 0x8 }

Public Member Functions

 SchedGraphEdge (SchedGraphNodeCommon *_src, SchedGraphNodeCommon *_sink, SchedGraphEdgeDepType _depType, unsigned int _depOrderType, int _minDelay=-1)
 SchedGraphEdge (SchedGraphNodeCommon *_src, SchedGraphNodeCommon *_sink, const Value *_val, unsigned int _depOrderType, int _minDelay=-1)
 SchedGraphEdge (SchedGraphNodeCommon *_src, SchedGraphNodeCommon *_sink, unsigned int _regNum, unsigned int _depOrderType, int _minDelay=-1)
 SchedGraphEdge (SchedGraphNodeCommon *_src, SchedGraphNodeCommon *_sink, ResourceId _resourceId, int _minDelay=-1)
 ~SchedGraphEdge ()
SchedGraphNodeCommon * getSrc () const
SchedGraphNodeCommon * getSink () const
int getMinDelay () const
SchedGraphEdgeDepType getDepType () const
unsigned int getDepOrderType () const
const Value * getValue () const
int getMachineReg () const
int getResourceId () const
void setIteDiff (int _iteDiff)
int getIteDiff ()
void print (std::ostream &os) const
void dump (int indent=0) const

Protected Attributes

SchedGraphNodeCommon * src
SchedGraphNodeCommon * sink
SchedGraphEdgeDepType depType
unsigned int depOrderType
int minDelay
int iteDiff
union {
   const Value *   val
   int   machineRegNum
   ResourceId   resourceId
}; 

Detailed Description

Definition at line 107 of file SchedGraphCommon.h.


Member Enumeration Documentation

enum llvm::SchedGraphEdge::SchedGraphEdgeDepType

Enumerator:
CtrlDep 
MemoryDep 
ValueDep 
MachineRegister 
MachineResource 

Definition at line 109 of file SchedGraphCommon.h.

enum llvm::SchedGraphEdge::DataDepOrderType

Enumerator:
TrueDep 
AntiDep 
OutputDep 
NonDataDep 

Definition at line 112 of file SchedGraphCommon.h.


Constructor & Destructor Documentation

llvm::SchedGraphEdge::SchedGraphEdge ( SchedGraphNodeCommon *  _src,
SchedGraphNodeCommon *  _sink,
SchedGraphEdgeDepType  _depType,
unsigned int  _depOrderType,
int  _minDelay = -1 
)

llvm::SchedGraphEdge::SchedGraphEdge ( SchedGraphNodeCommon *  _src,
SchedGraphNodeCommon *  _sink,
const Value *  _val,
unsigned int  _depOrderType,
int  _minDelay = -1 
)

llvm::SchedGraphEdge::SchedGraphEdge ( SchedGraphNodeCommon *  _src,
SchedGraphNodeCommon *  _sink,
unsigned int  _regNum,
unsigned int  _depOrderType,
int  _minDelay = -1 
)

llvm::SchedGraphEdge::SchedGraphEdge ( SchedGraphNodeCommon *  _src,
SchedGraphNodeCommon *  _sink,
ResourceId  _resourceId,
int  _minDelay = -1 
)

llvm::SchedGraphEdge::~SchedGraphEdge (  )  [inline]

Definition at line 155 of file SchedGraphCommon.h.


Member Function Documentation

SchedGraphNodeCommon* llvm::SchedGraphEdge::getSrc (  )  const [inline]

Definition at line 157 of file SchedGraphCommon.h.

References src.

SchedGraphNodeCommon* llvm::SchedGraphEdge::getSink (  )  const [inline]

Definition at line 158 of file SchedGraphCommon.h.

References sink.

int llvm::SchedGraphEdge::getMinDelay (  )  const [inline]

Definition at line 159 of file SchedGraphCommon.h.

References minDelay.

SchedGraphEdgeDepType llvm::SchedGraphEdge::getDepType (  )  const [inline]

Definition at line 160 of file SchedGraphCommon.h.

References depType.

unsigned int llvm::SchedGraphEdge::getDepOrderType (  )  const [inline]

Definition at line 161 of file SchedGraphCommon.h.

References depOrderType.

const Value* llvm::SchedGraphEdge::getValue (  )  const [inline]

Definition at line 163 of file SchedGraphCommon.h.

References depType, val, and ValueDep.

int llvm::SchedGraphEdge::getMachineReg (  )  const [inline]

Definition at line 167 of file SchedGraphCommon.h.

References depType, MachineRegister, and machineRegNum.

int llvm::SchedGraphEdge::getResourceId (  )  const [inline]

Definition at line 171 of file SchedGraphCommon.h.

References depType, MachineResource, and resourceId.

void llvm::SchedGraphEdge::setIteDiff ( int  _iteDiff  )  [inline]

Definition at line 175 of file SchedGraphCommon.h.

References iteDiff.

int llvm::SchedGraphEdge::getIteDiff (  )  [inline]

Definition at line 179 of file SchedGraphCommon.h.

References iteDiff.

void llvm::SchedGraphEdge::print ( std::ostream &  os  )  const

Referenced by llvm::operator<<().

void llvm::SchedGraphEdge::dump ( int  indent = 0  )  const


Member Data Documentation

SchedGraphNodeCommon* llvm::SchedGraphEdge::src [protected]

Definition at line 117 of file SchedGraphCommon.h.

Referenced by getSrc().

SchedGraphNodeCommon* llvm::SchedGraphEdge::sink [protected]

Definition at line 118 of file SchedGraphCommon.h.

Referenced by getSink().

SchedGraphEdgeDepType llvm::SchedGraphEdge::depType [protected]

Definition at line 119 of file SchedGraphCommon.h.

Referenced by getDepType(), getMachineReg(), getResourceId(), and getValue().

unsigned int llvm::SchedGraphEdge::depOrderType [protected]

Definition at line 120 of file SchedGraphCommon.h.

Referenced by getDepOrderType().

int llvm::SchedGraphEdge::minDelay [protected]

Definition at line 121 of file SchedGraphCommon.h.

Referenced by getMinDelay().

int llvm::SchedGraphEdge::iteDiff [protected]

Definition at line 122 of file SchedGraphCommon.h.

Referenced by getIteDiff(), and setIteDiff().

const Value* llvm::SchedGraphEdge::val [protected]

Definition at line 125 of file SchedGraphCommon.h.

Referenced by getValue().

int llvm::SchedGraphEdge::machineRegNum [protected]

Definition at line 126 of file SchedGraphCommon.h.

Referenced by getMachineReg().

ResourceId llvm::SchedGraphEdge::resourceId [protected]

Definition at line 127 of file SchedGraphCommon.h.

Referenced by getResourceId().

union { ... } [protected]


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