LLVM 19.0.0git
Public Member Functions | List of all members
llvm::GraphWriter< GraphType > Class Template Reference

#include "llvm/Support/GraphWriter.h"

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 (NodeRef Node)
 
void writeNode (NodeRef Node)
 
void writeEdge (NodeRef 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 ()
 getOStream - Get the raw output stream into the graph file.
 

Detailed Description

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

Definition at line 64 of file GraphWriter.h.

Constructor & Destructor Documentation

◆ GraphWriter()

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

Definition at line 120 of file GraphWriter.h.

References G, and llvm::DefaultDOTGraphTraits::renderNodesUsingHTML().

Member Function Documentation

◆ emitEdge()

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

◆ emitSimpleNode()

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

References llvm::DOT::EscapeString().

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

◆ getOStream()

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

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

◆ isNodeHidden()

template<typename GraphType >
bool llvm::GraphWriter< GraphType >::isNodeHidden ( NodeRef  Node)
inline

◆ writeEdge()

template<typename GraphType >
void llvm::GraphWriter< GraphType >::writeEdge ( NodeRef  Node,
unsigned  edgeidx,
child_iterator  EI 
)
inline

◆ writeFooter()

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

Definition at line 160 of file GraphWriter.h.

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

◆ writeGraph()

template<typename GraphType >
void llvm::GraphWriter< GraphType >::writeGraph ( const std::string &  Title = "")
inline

◆ writeHeader()

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

◆ writeNode()

template<typename GraphType >
void llvm::GraphWriter< GraphType >::writeNode ( NodeRef  Node)
inline

◆ writeNodes()

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

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