Traits that customize how a graph type is converted to DOT.
Synopsis
Declared in <llvm/Support/DOTGraphTraits.h>
template<typename Ty>
struct DOTGraphTraits
: DefaultDOTGraphTraits
Description
Specialize for each graph type. When specializing, you may inherit from DefaultDOTGraphTraits if you don't need to override everything.
Base Classes
Name |
Description |
Default implementations of all DOTGraphTraits customization hooks. |
Member Functions
Name |
Description |
Return the label to print inside the given node. |
Static Member Functions
Name |
Description |
Emit graph features beyond ordinary nodes and edges. |
|
Return true if this outgoing edge should target another edge source. |
|
Return custom DOT attributes for a particular edge. |
|
Return the incoming edge destination label at the given index. |
|
Return a label for the edge source itself, if any. |
|
Return the outgoing edge that is the target of this edge. |
|
Return the label for the graph as a whole. |
|
Return custom properties for the top‐level DOT graph structure. |
|
Return custom DOT attributes for the given node. |
|
Return an optional longer description for the given node. |
|
Return a unique identifier string for the given node. |
|
hasEdgeDestLabels ‐ If this function returns true, the graph is able to provide labels for edge destinations. |
|
Return true if the given node should be omitted from the graph. |
|
Return how many incoming edge destination labels the node has. |
|
renderGraphFromBottomUp ‐ If this function returns true, the graph is emitted bottom‐up instead of top‐down. This requires graphviz 2.0 to work though. |
|
Return true if nodes should be rendered with HTML‐like labels. |
Using Declarations
Name |
Description |
Inherit constructors from DefaultDOTGraphTraits. |
Protected Member Functions
Name |
Description |
Return true if this traits instance was constructed for simple names. |
Specializations
Name |
Description |
DOT graph traits for Attributor call‐graph visualization. |
|
DOTGraphTraits specialization for rendering a function CFG via DOTFuncInfo. |
|
DOTGraphTraits specialization for rendering a machine CFG via DOTMachineFuncInfo. |
|
DOTGraphTraits specialization for rendering a dominator‐tree node. |
|
DOTGraphTraits specialization for rendering a dominator tree. |
|
DOTGraphTraits specialization for rendering a post‐dominator tree. |
|
DOTGraphTraits specialization for rendering a region node. |
|
DOTGraphTraits specialization for rendering a data‐dependence graph. |
Created with MrDocs