57 return "color=cyan,style=dashed";
59 return "color=blue,style=dashed";
67 return "shape=Mrecord";
90 errs() <<
"ScheduleDAG::viewGraph is only available in debug builds on "
91 <<
"systems with Graphviz or gv!\n";
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
bool isArtificialDep() const
DOTGraphTraits(bool isSimple=false)
virtual std::string getGraphNodeLabel(const SUnit *SU) const =0
getGraphNodeLabel - Return a label for an SUnit node in a visualization of the ScheduleDAG.
virtual void viewGraph()
Out-of-line implementation with no arguments is handy for gdb.
This file declares the MachineConstantPool class which is an abstract constant pool to keep track of ...
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
static std::string getGraphName(const ScheduleDAG *G)
static std::string getNodeAttributes(const SUnit *N, const ScheduleDAG *Graph)
virtual std::string getDAGName() const =0
getDAGLabel - Return a label for the region of code covered by the DAG.
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...
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...
virtual void addCustomGraphFeatures(GraphWriter< ScheduleDAG * > &) const
addCustomGraphFeatures - Add custom features for a visualization of the ScheduleDAG.
This file contains the declarations for the subclasses of Constant, which represent the different fla...
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 void addCustomGraphFeatures(ScheduleDAG *G, GraphWriter< ScheduleDAG * > &GW)
static bool renderGraphFromBottomUp()
DOTGraphTraits - Template class that can be specialized to customize how graphs are converted to 'dot...
bool isCtrlDep() const
isCtrlDep - Test if this is not an SDep::Data dependence.
static bool isNodeHidden(const SUnit *Node)
static bool hasNodeAddressLabel(const SUnit *Node, const ScheduleDAG *Graph)
DefaultDOTGraphTraits - This class provides the default implementations of all of the DOTGraphTraits ...
StringRef getName() const
getName - Return the name of the corresponding LLVM function.
SUnit - Scheduling unit. This is a node in the scheduling DAG.