LLVM API Documentation

llvm::GraphWriter< GraphType > Class Template Reference

#include <GraphWriter.h>

Collaboration diagram for llvm::GraphWriter< GraphType >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GraphWriter (std::ostream &o, const GraphType &g)
void writeHeader (const std::string &Name)
void writeFooter ()
void writeNodes ()
void writeNode (NodeType *const *Node)
void writeNode (NodeType *Node)
void writeEdge (NodeType *Node, unsigned edgeidx, child_iterator EI)
void emitSimpleNode (const void *ID, const std::string &Attr, const std::string &Label, unsigned NumEdgeSources=0, const std::vector< std::string > *EdgeSourceLabels=0)
 emitSimpleNode - Outputs a simple (non-record) node
void emitEdge (const void *SrcNodeID, int SrcNodePort, const void *DestNodeID, int DestNodePort, const std::string &Attrs)
 emitEdge - Output an edge from a simple node into the graph...

Detailed Description

template<typename GraphType>
class llvm::GraphWriter< GraphType >

Definition at line 67 of file GraphWriter.h.


Constructor & Destructor Documentation

template<typename GraphType>
llvm::GraphWriter< GraphType >::GraphWriter ( std::ostream &  o,
const GraphType &  g 
) [inline]

Definition at line 77 of file GraphWriter.h.


Member Function Documentation

template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeHeader ( const std::string &  Name  )  [inline]

Definition at line 79 of file GraphWriter.h.

References llvm::DOT::EscapeString(), llvm::DefaultDOTGraphTraits::getGraphName(), llvm::DefaultDOTGraphTraits::getGraphProperties(), and llvm::DefaultDOTGraphTraits::renderGraphFromBottomUp().

Referenced by llvm::WriteGraph().

template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeFooter (  )  [inline]

Definition at line 95 of file GraphWriter.h.

Referenced by llvm::WriteGraph().

template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeNodes (  )  [inline]

Definition at line 100 of file GraphWriter.h.

References E, and llvm::GraphWriter< GraphType >::writeNode().

Referenced by llvm::WriteGraph().

template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeNode ( NodeType *const *  Node  )  [inline]

Definition at line 107 of file GraphWriter.h.

Referenced by llvm::DSNode::print(), and llvm::GraphWriter< GraphType >::writeNodes().

template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeNode ( NodeType *  Node  )  [inline]

Definition at line 111 of file GraphWriter.h.

References llvm::EscapeString(), llvm::DefaultDOTGraphTraits::getEdgeSourceLabel(), llvm::DefaultDOTGraphTraits::getNodeAttributes(), llvm::DefaultDOTGraphTraits::getNodeLabel(), llvm::DefaultDOTGraphTraits::hasNodeAddressLabel(), llvm::DefaultDOTGraphTraits::renderGraphFromBottomUp(), and llvm::GraphWriter< GraphType >::writeEdge().

template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeEdge ( NodeType *  Node,
unsigned  edgeidx,
child_iterator  EI 
) [inline]

Definition at line 162 of file GraphWriter.h.

References llvm::DefaultDOTGraphTraits::edgeTargetsEdgeSource(), llvm::GraphWriter< GraphType >::emitEdge(), llvm::DefaultDOTGraphTraits::getEdgeAttributes(), llvm::DefaultDOTGraphTraits::getEdgeTarget(), and Offset.

Referenced by llvm::GraphWriter< GraphType >::writeNode().

template<typename GraphType>
void llvm::GraphWriter< GraphType >::emitSimpleNode ( const void *  ID,
const std::string &  Attr,
const std::string &  Label,
unsigned  NumEdgeSources = 0,
const std::vector< std::string > *  EdgeSourceLabels = 0 
) [inline]

emitSimpleNode - Outputs a simple (non-record) node

Definition at line 181 of file GraphWriter.h.

References llvm::EscapeString().

Referenced by llvm::DOTGraphTraits< SelectionDAG * >::addCustomGraphFeatures(), and llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures().

template<typename GraphType>
void llvm::GraphWriter< GraphType >::emitEdge ( const void *  SrcNodeID,
int  SrcNodePort,
const void *  DestNodeID,
int  DestNodePort,
const std::string &  Attrs 
) [inline]

emitEdge - Output an edge from a simple node into the graph...

Definition at line 204 of file GraphWriter.h.

Referenced by llvm::DOTGraphTraits< SelectionDAG * >::addCustomGraphFeatures(), llvm::DOTGraphTraits< const DSGraph * >::addCustomGraphFeatures(), and llvm::GraphWriter< GraphType >::writeEdge().


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