LLVM API Documentation

llvm::DOTGraphTraits< SelectionDAG * > Struct Template Reference

Inheritance diagram for llvm::DOTGraphTraits< SelectionDAG * >:
[legend]
Collaboration diagram for llvm::DOTGraphTraits< SelectionDAG * >:
[legend]

List of all members.

Static Public Member Functions

static bool hasEdgeDestLabels ()
static unsigned numEdgeDestLabels (const void *Node)
static std::string getEdgeDestLabel (const void *Node, unsigned i)
template<typename EdgeIter>
static bool edgeTargetsEdgeSource (const void *Node, EdgeIter I)
template<typename EdgeIter>
static EdgeIter getEdgeTarget (const void *Node, EdgeIter I)
static std::string getGraphName (const SelectionDAG *G)
static bool renderGraphFromBottomUp ()
static bool hasNodeAddressLabel (const SDNode *Node, const SelectionDAG *Graph)
template<typename EdgeIter>
static std::string getEdgeAttributes (const void *Node, EdgeIter EI)
static std::string getNodeLabel (const SDNode *Node, const SelectionDAG *Graph)
static std::string getNodeAttributes (const SDNode *N, const SelectionDAG *Graph)
static void addCustomGraphFeatures (SelectionDAG *G, GraphWriter< SelectionDAG * > &GW)


Detailed Description

template<>
struct llvm::DOTGraphTraits< SelectionDAG * >

Definition at line 37 of file SelectionDAGPrinter.cpp.


Member Function Documentation

static bool llvm::DOTGraphTraits< SelectionDAG * >::hasEdgeDestLabels (  )  [inline, static]

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

Reimplemented from llvm::DefaultDOTGraphTraits.

Definition at line 38 of file SelectionDAGPrinter.cpp.

static unsigned llvm::DOTGraphTraits< SelectionDAG * >::numEdgeDestLabels ( const void *  Node  )  [inline, static]

numEdgeDestLabels - If hasEdgeDestLabels, this function returns the number of incoming edge labels the given node has.

Reimplemented from llvm::DefaultDOTGraphTraits.

Definition at line 42 of file SelectionDAGPrinter.cpp.

static std::string llvm::DOTGraphTraits< SelectionDAG * >::getEdgeDestLabel ( const void *  Node,
unsigned  i 
) [inline, static]

getEdgeDestLabel - If hasEdgeDestLabels, this function returns the incoming edge label with the given index in the given node.

Reimplemented from llvm::DefaultDOTGraphTraits.

Definition at line 46 of file SelectionDAGPrinter.cpp.

template<typename EdgeIter>
static bool llvm::DOTGraphTraits< SelectionDAG * >::edgeTargetsEdgeSource ( const void *  Node,
EdgeIter  I 
) [inline, static]

edgeTargetsEdgeSource - This method returns true if this outgoing edge should actually target another edge source, not a node. If this method is implemented, getEdgeTarget should be implemented.

Reimplemented from llvm::DefaultDOTGraphTraits.

Definition at line 54 of file SelectionDAGPrinter.cpp.

template<typename EdgeIter>
static EdgeIter llvm::DOTGraphTraits< SelectionDAG * >::getEdgeTarget ( const void *  Node,
EdgeIter  I 
) [inline, static]

getEdgeTarget - If edgeTargetsEdgeSource returns true, this method is called to determine which outgoing edge of Node is the target of this edge.

Reimplemented from llvm::DefaultDOTGraphTraits.

Definition at line 62 of file SelectionDAGPrinter.cpp.

References llvm::SDNodeIterator::begin(), llvm::SDNodeIterator::getNode(), and llvm::SDNode::getOperand().

static std::string llvm::DOTGraphTraits< SelectionDAG * >::getGraphName ( const SelectionDAG *  G  )  [inline, static]

static bool llvm::DOTGraphTraits< SelectionDAG * >::renderGraphFromBottomUp (  )  [inline, static]

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

Reimplemented from llvm::DefaultDOTGraphTraits.

Definition at line 73 of file SelectionDAGPrinter.cpp.

static bool llvm::DOTGraphTraits< SelectionDAG * >::hasNodeAddressLabel ( const SDNode *  Node,
const SelectionDAG *  Graph 
) [inline, static]

Definition at line 77 of file SelectionDAGPrinter.cpp.

template<typename EdgeIter>
static std::string llvm::DOTGraphTraits< SelectionDAG * >::getEdgeAttributes ( const void *  Node,
EdgeIter  EI 
) [inline, static]

If you want to override the dot attributes printed for a particular edge, override this method.

Reimplemented from llvm::DefaultDOTGraphTraits.

Definition at line 85 of file SelectionDAGPrinter.cpp.

References llvm::MVT::Flag, llvm::SDValue::getValueType(), Op, llvm::MVT::Other, and VT.

static std::string llvm::DOTGraphTraits< SelectionDAG * >::getNodeLabel ( const SDNode *  Node,
const SelectionDAG *  Graph 
) [static]

static std::string llvm::DOTGraphTraits< SelectionDAG * >::getNodeAttributes ( const SDNode *  N,
const SelectionDAG *  Graph 
) [inline, static]

Definition at line 98 of file SelectionDAGPrinter.cpp.

References llvm::SelectionDAG::getGraphAttrs().

static void llvm::DOTGraphTraits< SelectionDAG * >::addCustomGraphFeatures ( SelectionDAG *  G,
GraphWriter< SelectionDAG * > &  GW 
) [inline, static]


The documentation for this struct was generated from the following file: