LLVM API Documentation

llvm::SUnit Struct Reference

#include <ScheduleDAG.h>

Collaboration diagram for llvm::SUnit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SUnit (SDNode *node, unsigned nodenum)
void dump (const SelectionDAG *G) const
void dumpAll (const SelectionDAG *G) const

Public Attributes

SDNodeNode
std::vector< SDNode * > FlaggedNodes
std::set< std::pair< SUnit *,
bool > > 
Preds
std::set< std::pair< SUnit *,
bool > > 
Succs
short NumPreds
short NumSuccs
short NumPredsLeft
short NumSuccsLeft
short NumChainPredsLeft
short NumChainSuccsLeft
bool isTwoAddress: 1
bool isCommutable: 1
bool isPending: 1
bool isAvailable: 1
bool isScheduled: 1
unsigned short Latency
unsigned CycleBound
unsigned Cycle
unsigned Depth
unsigned Height
unsigned NodeNum

Detailed Description

SUnit - Scheduling unit. It's an wrapper around either a single SDNode or a group of nodes flagged together.

Definition at line 78 of file ScheduleDAG.h.


Constructor & Destructor Documentation

llvm::SUnit::SUnit ( SDNode node,
unsigned  nodenum 
) [inline]

Definition at line 105 of file ScheduleDAG.h.


Member Function Documentation

void SUnit::dump ( const SelectionDAG G  )  const

SUnit - Scheduling unit. It's an wrapper around either a single SDNode or a group of nodes flagged together.

Definition at line 618 of file ScheduleDAG.cpp.

References llvm::SDNode::dump(), FlaggedNodes, G, Node, and NodeNum.

Referenced by dumpAll().

void SUnit::dumpAll ( const SelectionDAG G  )  const

Definition at line 631 of file ScheduleDAG.cpp.

References Depth, dump(), E, G, Height, Latency, NumChainPredsLeft, NumChainSuccsLeft, NumPredsLeft, NumSuccsLeft, Preds, and Succs.


Member Data Documentation

SDNode* llvm::SUnit::Node

Definition at line 79 of file ScheduleDAG.h.

Referenced by llvm::ScheduleDAG::BuildSchedUnits(), dump(), getDefUsePredecessor(), getNumResults(), getRegClass(), isCopyFromLiveIn(), and isFloater().

std::vector<SDNode*> llvm::SUnit::FlaggedNodes

Definition at line 80 of file ScheduleDAG.h.

Referenced by llvm::ScheduleDAG::BuildSchedUnits(), and dump().

std::set<std::pair<SUnit*,bool> > llvm::SUnit::Preds

Definition at line 84 of file ScheduleDAG.h.

Referenced by CalculateHeights(), dumpAll(), getDefUsePredecessor(), getSingleUnscheduledPred(), isFloater(), isReachable(), isSimpleFloaterUse(), and SumOfUnscheduledPredsOfSuccs().

std::set<std::pair<SUnit*,bool> > llvm::SUnit::Succs

Definition at line 85 of file ScheduleDAG.h.

Referenced by CalculateDepths(), dumpAll(), and SumOfUnscheduledPredsOfSuccs().

short llvm::SUnit::NumPreds

Definition at line 87 of file ScheduleDAG.h.

Referenced by isFloater().

short llvm::SUnit::NumSuccs

Definition at line 88 of file ScheduleDAG.h.

short llvm::SUnit::NumPredsLeft

Definition at line 89 of file ScheduleDAG.h.

Referenced by dumpAll().

short llvm::SUnit::NumSuccsLeft

Definition at line 90 of file ScheduleDAG.h.

Referenced by dumpAll().

short llvm::SUnit::NumChainPredsLeft

Definition at line 91 of file ScheduleDAG.h.

Referenced by dumpAll().

short llvm::SUnit::NumChainSuccsLeft

Definition at line 92 of file ScheduleDAG.h.

Referenced by dumpAll().

bool llvm::SUnit::isTwoAddress

Definition at line 93 of file ScheduleDAG.h.

Referenced by canClobber().

bool llvm::SUnit::isCommutable

Definition at line 94 of file ScheduleDAG.h.

bool llvm::SUnit::isPending

Definition at line 95 of file ScheduleDAG.h.

bool llvm::SUnit::isAvailable

Definition at line 96 of file ScheduleDAG.h.

bool llvm::SUnit::isScheduled

Definition at line 97 of file ScheduleDAG.h.

Referenced by SumOfUnscheduledPredsOfSuccs().

unsigned short llvm::SUnit::Latency

Definition at line 98 of file ScheduleDAG.h.

Referenced by llvm::ScheduleDAG::BuildSchedUnits(), and dumpAll().

unsigned llvm::SUnit::CycleBound

Definition at line 99 of file ScheduleDAG.h.

Referenced by isReady().

unsigned llvm::SUnit::Cycle

Definition at line 100 of file ScheduleDAG.h.

unsigned llvm::SUnit::Depth

Definition at line 101 of file ScheduleDAG.h.

Referenced by CalculateDepths(), and dumpAll().

unsigned llvm::SUnit::Height

Definition at line 102 of file ScheduleDAG.h.

Referenced by CalculateHeights(), and dumpAll().

unsigned llvm::SUnit::NodeNum

Definition at line 103 of file ScheduleDAG.h.

Referenced by dump().


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