26 return std::string(
G->MF.getName());
34 return (Node->NumPreds > 10 || Node->NumSuccs > 10);
41 OS << static_cast<const void *>(Node);
51 return "color=cyan,style=dashed";
53 return "color=blue,style=dashed";
61 return "shape=Mrecord";
66 return G->addCustomGraphFeatures(GW);
73 return G->getGraphNodeLabel(SU);
84 errs() <<
"ScheduleDAG::viewGraph is only available in debug builds on "
85 <<
"systems with Graphviz or gv!\n";
static bool isSimple(Instruction *I)
bool isArtificialDep() const
bool isCtrlDep() const
Tests if this is not an SDep::Data dependence.
Scheduling unit. This is a node in the scheduling DAG.
virtual std::string getDAGName() const =0
Returns a label for the region of code covered by the DAG.
virtual void viewGraph()
Out-of-line implementation with no arguments is handy for gdb.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
A raw_ostream that writes to an std::string.
This is an optimization pass for GlobalISel generic memory operations.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
void ViewGraph(const GraphType &G, const Twine &Name, bool ShortNames=false, const Twine &Title="", GraphProgram::Name Program=GraphProgram::DOT)
ViewGraph - Emit a dot graph, run 'dot', run gv on the postscript file, then cleanup.
static std::string getNodeAttributes(const SUnit *N, const ScheduleDAG *Graph)
static std::string getEdgeAttributes(const SUnit *Node, SUnitIterator EI, const ScheduleDAG *Graph)
If you want to override the dot attributes printed for a particular edge, override this method.
static bool isNodeHidden(const SUnit *Node, const ScheduleDAG *G)
DOTGraphTraits(bool isSimple=false)
static void addCustomGraphFeatures(ScheduleDAG *G, GraphWriter< ScheduleDAG * > &GW)
static bool renderGraphFromBottomUp()
static std::string getGraphName(const ScheduleDAG *G)
static std::string getNodeIdentifierLabel(const SUnit *Node, const ScheduleDAG *Graph)
std::string getNodeLabel(const SUnit *SU, const ScheduleDAG *Graph)
DOTGraphTraits - Template class that can be specialized to customize how graphs are converted to 'dot...
DefaultDOTGraphTraits - This class provides the default implementations of all of the DOTGraphTraits ...
std::string getNodeLabel(const void *, const GraphType &)
getNodeLabel - Given a node and a pointer to the top level graph, return the label to print in the no...