DOTGraphTraits specialization for rendering a data‐dependence graph.

Synopsis

Declared in <llvm/Analysis/DDGPrinter.h>

Base Classes

Name

Description

DefaultDOTGraphTraits

Default implementations of all DOTGraphTraits customization hooks.

Member Functions

Name

Description

DOTGraphTraits [constructor]

Construct DOT traits for a DDG, optionally in simple mode.

getEdgeAttributes

Return DOT attributes for an edge in the DDG.

getGraphName

Generate a title for the graph in DOT format.

getNodeLabel

getNodeLabel overloads

isNodeHidden

Do not print nodes that are part of a pi‐block separately. They will be printed when their containing pi‐block is being printed.

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

getNodeAttributes overloads

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.

Created with MrDocs