LLVM API Documentation

Public Member Functions
llvm::GraphWriter< GraphType > Class Template Reference

#include <GraphWriter.h>

List of all members.

Public Member Functions

 GraphWriter (raw_ostream &o, const GraphType &g, bool SN)
void writeGraph (const std::string &Title="")
void writeHeader (const std::string &Title)
void writeFooter ()
void writeNodes ()
bool isNodeHidden (NodeType &Node)
bool isNodeHidden (NodeType *const *Node)
bool isNodeHidden (NodeType *Node)
void writeNode (NodeType &Node)
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=nullptr)
 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...
raw_ostreamgetOStream ()

Detailed Description

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

Definition at line 57 of file GraphWriter.h.


Constructor & Destructor Documentation

template<typename GraphType>
llvm::GraphWriter< GraphType >::GraphWriter ( raw_ostream o,
const GraphType &  g,
bool  SN 
) [inline]

Definition at line 96 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]
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 = nullptr 
) [inline]

emitSimpleNode - Outputs a simple (non-record) node

Definition at line 261 of file GraphWriter.h.

References llvm::DOT::EscapeString().

Referenced by llvm::DOTGraphTraits< SelectionDAG * >::addCustomGraphFeatures(), and llvm::ScheduleDAGSDNodes::getCustomGraphFeatures().

template<typename GraphType>
raw_ostream& llvm::GraphWriter< GraphType >::getOStream ( ) [inline]

getOStream - Get the raw output stream into the graph file. Useful to write fancy things using addCustomGraphFeatures().

Definition at line 304 of file GraphWriter.h.

Referenced by llvm::DOTGraphTraits< RegionInfoPass * >::addCustomGraphFeatures(), and llvm::DOTGraphTraits< RegionInfoPass * >::printRegionCluster().

template<typename GraphType>
bool llvm::GraphWriter< GraphType >::isNodeHidden ( NodeType &  Node) [inline]
template<typename GraphType>
bool llvm::GraphWriter< GraphType >::isNodeHidden ( NodeType *const Node) [inline]

Definition at line 152 of file GraphWriter.h.

References llvm::GraphWriter< GraphType >::isNodeHidden().

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

Definition at line 156 of file GraphWriter.h.

References llvm::DefaultDOTGraphTraits::isNodeHidden().

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

Definition at line 135 of file GraphWriter.h.

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

template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeGraph ( const std::string &  Title = "") [inline]
template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeHeader ( const std::string &  Title) [inline]
template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeNode ( NodeType &  Node) [inline]
template<typename GraphType>
void llvm::GraphWriter< GraphType >::writeNode ( NodeType *const Node) [inline]

Definition at line 164 of file GraphWriter.h.

References llvm::GraphWriter< GraphType >::writeNode().

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

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