LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 *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 63 of file GraphWriter.h.


Constructor & Destructor Documentation

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

Definition at line 73 of file GraphWriter.h.


Member Function Documentation

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 175 of file GraphWriter.h.

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

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 152 of file GraphWriter.h.

References llvm::DOT::EscapeString().

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

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

Definition at line 133 of file GraphWriter.h.

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

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

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

Definition at line 88 of file GraphWriter.h.

Referenced by llvm::WriteGraph().

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

Definition at line 75 of file GraphWriter.h.

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

Referenced by llvm::WriteGraph().

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

Definition at line 100 of file GraphWriter.h.

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

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

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

Definition at line 93 of file GraphWriter.h.

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

Referenced by llvm::WriteGraph().


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