Default implementations of all DOTGraphTraits customization hooks.

Synopsis

Declared in <llvm/Support/DOTGraphTraits.h>

struct DefaultDOTGraphTraits;

Description

If a specialization does not need to override all methods here it should inherit so that it can get the default implementations.

Member Functions

Name

Description

DefaultDOTGraphTraits [constructor]

Constructors

getNodeLabel

Return the label to print inside the given node.

Static Member Functions

Name

Description

addCustomGraphFeatures

Emit graph features beyond ordinary nodes and edges.

edgeTargetsEdgeSource

Return true if this outgoing edge should target another edge source.

getEdgeAttributes

Return custom DOT attributes for a particular edge.

getEdgeDestLabel

Return the incoming edge destination label at the given index.

getEdgeSourceLabel

Return a label for the edge source itself, if any.

getEdgeTarget

Return the outgoing edge that is the target of this edge.

getGraphName

Return the label for the graph as a whole.

getGraphProperties

Return custom properties for the top‐level DOT graph structure.

getNodeAttributes

Return custom DOT attributes for the given node.

getNodeDescription

Return an optional longer description for the given node.

getNodeIdentifierLabel

Return a unique identifier string for the given node.

hasEdgeDestLabels

hasEdgeDestLabels ‐ If this function returns true, the graph is able to provide labels for edge destinations.

isNodeHidden

Return true if the given node should be omitted from the graph.

numEdgeDestLabels

Return how many incoming edge destination labels the node has.

renderGraphFromBottomUp

renderGraphFromBottomUp ‐ If this function returns true, the graph is emitted bottom‐up instead of top‐down. This requires graphviz 2.0 to work though.

renderNodesUsingHTML

Return true if nodes should be rendered with HTML‐like labels.

Protected Member Functions

Name

Description

isSimple

Return true if this traits instance was constructed for simple names.

Derived Classes

Name

Description

BFIDOTGraphTraitsBase

DOT GraphTraits helpers for block‐frequency visualization.

DOTGraphTraits<RegionNode*>

DOTGraphTraits specialization for rendering a region node.

DOTGraphTraits<AttributorCallGraph*>

DOT graph traits for Attributor call‐graph visualization.

DOTGraphTraits

Traits that customize how a graph type is converted to DOT.

DOTGraphTraits<DOTFuncInfo*>

DOTGraphTraits specialization for rendering a function CFG via DOTFuncInfo.

DOTGraphTraits<DataDependenceGraph const*>

DOTGraphTraits specialization for rendering a data‐dependence graph.

DOTGraphTraits<DomTreeNode*>

DOTGraphTraits specialization for rendering a dominator‐tree node.

DOTGraphTraits<DOTMachineFuncInfo*>

DOTGraphTraits specialization for rendering a machine CFG via DOTMachineFuncInfo.

Created with MrDocs