class GraphWriter

Declaration

template <typename GraphType>
class GraphWriter { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Support/GraphWriter.h:66

Templates

GraphType

Method Overview

  • public GraphWriter<GraphType>(llvm::raw_ostream & o, const GraphType & g, bool SN)
  • public void emitEdge(const void * SrcNodeID, int SrcNodePort, const void * DestNodeID, int DestNodePort, const std::string & Attrs)
  • public void emitSimpleNode(const void * ID, const std::string & Attr, const std::string & Label, unsigned int NumEdgeSources = 0, const std::vector<std::string> * EdgeSourceLabels = nullptr)
  • public llvm::raw_ostream & getOStream()
  • public bool isNodeHidden(llvm::GraphWriter::NodeRef Node)
  • public void writeEdge(llvm::GraphWriter::NodeRef Node, unsigned int edgeidx, llvm::GraphWriter::child_iterator EI)
  • public void writeFooter()
  • public void writeGraph(const std::string & Title = "")
  • public void writeHeader(const std::string & Title)
  • public void writeNode(llvm::GraphWriter::NodeRef Node)
  • public void writeNodes()

Methods

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

Declared at: llvm/include/llvm/Support/GraphWriter.h:110

Parameters

llvm::raw_ostream& o
const GraphType& g
bool SN

void emitEdge(const void* SrcNodeID,
              int SrcNodePort,
              const void* DestNodeID,
              int DestNodePort,
              const std::string& Attrs)

Description

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

Declared at: llvm/include/llvm/Support/GraphWriter.h:283

Parameters

const void* SrcNodeID
int SrcNodePort
const void* DestNodeID
int DestNodePort
const std::string& Attrs

void emitSimpleNode(
    const void* ID,
    const std::string& Attr,
    const std::string& Label,
    unsigned int NumEdgeSources = 0,
    const std::vector<std::string>*
        EdgeSourceLabels = nullptr)

Description

emitSimpleNode - Outputs a simple (non-record) node

Declared at: llvm/include/llvm/Support/GraphWriter.h:260

Parameters

const void* ID
const std::string& Attr
const std::string& Label
unsigned int NumEdgeSources = 0
const std::vector<std::string>* EdgeSourceLabels = nullptr

llvm::raw_ostream& getOStream()

Description

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

Declared at: llvm/include/llvm/Support/GraphWriter.h:303

bool isNodeHidden(llvm::GraphWriter::NodeRef Node)

Declared at: llvm/include/llvm/Support/GraphWriter.h:161

Parameters

llvm::GraphWriter::NodeRef Node

void writeEdge(
    llvm::GraphWriter::NodeRef Node,
    unsigned int edgeidx,
    llvm::GraphWriter::child_iterator EI)

Declared at: llvm/include/llvm/Support/GraphWriter.h:238

Parameters

llvm::GraphWriter::NodeRef Node
unsigned int edgeidx
llvm::GraphWriter::child_iterator EI

void writeFooter()

Declared at: llvm/include/llvm/Support/GraphWriter.h:149

void writeGraph(const std::string& Title = "")

Declared at: llvm/include/llvm/Support/GraphWriter.h:114

Parameters

const std::string& Title = ""

void writeHeader(const std::string& Title)

Declared at: llvm/include/llvm/Support/GraphWriter.h:128

Parameters

const std::string& Title

void writeNode(llvm::GraphWriter::NodeRef Node)

Declared at: llvm/include/llvm/Support/GraphWriter.h:165

Parameters

llvm::GraphWriter::NodeRef Node

void writeNodes()

Declared at: llvm/include/llvm/Support/GraphWriter.h:154