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

#include "llvm/CodeGen/ScheduleDAG.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 More...
 
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... More...
 
raw_ostreamgetOStream ()
 getOStream - Get the raw output stream into the graph file. More...
 

Detailed Description

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

Definition at line 35 of file ScheduleDAG.h.

Constructor & Destructor Documentation

◆ GraphWriter()

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

Definition at line 111 of file GraphWriter.h.

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

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

Definition at line 284 of file GraphWriter.h.

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

◆ 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 261 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 304 of file GraphWriter.h.

References llvm::RISCVFenceField::O.

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

◆ isNodeHidden()

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

Definition at line 162 of file GraphWriter.h.

◆ writeEdge()

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

Definition at line 239 of file GraphWriter.h.

◆ writeFooter()

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

Definition at line 150 of file GraphWriter.h.

◆ writeGraph()

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

Definition at line 115 of file GraphWriter.h.

References llvm::DefaultDOTGraphTraits::addCustomGraphFeatures().

Referenced by llvm::WriteGraph().

◆ writeHeader()

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

Definition at line 129 of file GraphWriter.h.

References llvm::DOT::EscapeString().

◆ writeNode()

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

Definition at line 166 of file GraphWriter.h.

◆ writeNodes()

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

Definition at line 155 of file GraphWriter.h.


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