47 OS << static_cast<const void *>(Node);
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";
97 viewGraph(getDAGName(),
"Scheduling-Units Graph for " + getDAGName());
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
unsigned NumPreds
of SDep::Data preds.
This class represents lattice values for constants.
DOTGraphTraits(bool isSimple=false)
virtual std::string getGraphNodeLabel(const SUnit *SU) const =0
Returns a label for an SUnit node in a visualization of the ScheduleDAG.
static void addCustomGraphFeatures(ScheduleDAG *G, GraphWriter< ScheduleDAG *> &GW)
virtual void viewGraph()
Out-of-line implementation with no arguments is handy for gdb.
*ViewGraph Emit a dot run run gv on the postscript *then cleanup For use from the debugger *void ViewGraph(const GraphType &G, const Twine &Name, bool ShortNames=false, const Twine &Title="", GraphProgram::Name Program=GraphProgram::DOT)
MachineFunction & MF
Machine function.
amdgpu Simplify well known AMD library false Value Value const Twine & Name
unsigned NumSuccs
of SDep::Data sucss.
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)
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...
static bool isSimple(Instruction *I)
StringRef getName() const
getName - Return the name of the corresponding LLVM function.
This file contains the declarations for the subclasses of Constant, which represent the different fla...
static bool renderGraphFromBottomUp()
DOTGraphTraits - Template class that can be specialized to customize how graphs are converted to 'dot...
virtual void addCustomGraphFeatures(GraphWriter< ScheduleDAG *> &) const
Adds custom features for a visualization of the ScheduleDAG.
static std::string getNodeIdentifierLabel(const SUnit *Node, const ScheduleDAG *Graph)
static std::string getNodeLabel(const ValueInfo &VI, GlobalValueSummary *GVS)
static bool isNodeHidden(const SUnit *Node)
bool isCtrlDep() const
Tests if this is not an SDep::Data dependence.
A raw_ostream that writes to an std::string.
DefaultDOTGraphTraits - This class provides the default implementations of all of the DOTGraphTraits ...
Scheduling unit. This is a node in the scheduling DAG.
bool isArtificialDep() const