LLVM API Documentation
#include <GraphWriter.h>
Collaboration diagram for llvm::GraphWriter< GraphType >:
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... |
Definition at line 67 of file GraphWriter.h.
llvm::GraphWriter< GraphType >::GraphWriter | ( | std::ostream & | o, | |
const GraphType & | g | |||
) | [inline] |
Definition at line 77 of file GraphWriter.h.
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().
void llvm::GraphWriter< GraphType >::writeFooter | ( | ) | [inline] |
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().
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().
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().
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().
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().
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().