LLVM  6.0.0svn
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 110 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 283 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 260 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 303 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 161 of file GraphWriter.h.

◆ writeEdge()

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

Definition at line 238 of file GraphWriter.h.

◆ writeFooter()

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

Definition at line 149 of file GraphWriter.h.

◆ writeGraph()

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

Definition at line 114 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 128 of file GraphWriter.h.

References llvm::DOT::EscapeString().

◆ writeNode()

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

Definition at line 165 of file GraphWriter.h.

References llvm::DOT::EscapeString(), and llvm::raw_string_ostream::str().

◆ writeNodes()

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

Definition at line 154 of file GraphWriter.h.


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