19#if !defined(NDEBUG) && LLVM_ENABLE_ABI_BREAKING_CHECKS
26 return std::string(
G->MF.getName());
32 return (
Node->NumPreds > 10 ||
Node->NumSuccs > 10);
39 OS << static_cast<const void *>(
Node);
48 return "color=cyan,style=dashed";
50 return "color=blue,style=dashed";
57 return "shape=Mrecord";
62 return G->addCustomGraphFeatures(GW);
68 return G->getGraphNodeLabel(SU);
77#if !defined(NDEBUG) && LLVM_ENABLE_ABI_BREAKING_CHECKS
80 errs() <<
"ScheduleDAG::viewGraph is only available in debug builds on "
81 <<
"systems with Graphviz or gv!\n";
static std::string getNodeLabel(const ValueInfo &VI, GlobalValueSummary *GVS)
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.
LLVM_ABI 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.
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 ...
static std::string getNodeIdentifierLabel(const void *, const GraphType &)
static bool isNodeHidden(const void *, const GraphType &)
isNodeHidden - If the function returns true, the given node is not displayed in the graph.
static std::string getGraphName(const GraphType &)
getGraphName - Return the label for the graph as a whole.
static std::string getEdgeAttributes(const void *, EdgeIter, const GraphType &)
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...
static bool renderGraphFromBottomUp()
renderGraphFromBottomUp - If this function returns true, the graph is emitted bottom-up instead of to...
static void addCustomGraphFeatures(const GraphType &, GraphWriter &)
addCustomGraphFeatures - If a graph is made up of more than just straight-forward nodes and edges,...
static std::string getNodeAttributes(const void *, const GraphType &)
If you want to specify custom node attributes, this is the place to do so.