LLVM 24.0.0git
DDGPrinter.cpp File Reference

Go to the source code of this file.

Functions

static void writeDDGToDotFile (const AnalysisOptions &Opts, DataDependenceGraph &G)
static void writeEdgeKindColorAttr (raw_ostream &OS, DDGEdge::EdgeKind Kind)
 EdgeKind to DOT color mapping:

Function Documentation

◆ writeDDGToDotFile()

void writeDDGToDotFile ( const AnalysisOptions & Opts,
DataDependenceGraph & G )
static

◆ writeEdgeKindColorAttr()

void writeEdgeKindColorAttr ( raw_ostream & OS,
DDGEdge::EdgeKind Kind )
static

EdgeKind to DOT color mapping:

  • MemoryDependence: red
  • RegisterDefUse: blue
  • Rooted/Unknown=default (no attribute).

Definition at line 140 of file DDGPrinter.cpp.

References llvm::DDGEdge::MemoryDependence, and llvm::DDGEdge::RegisterDefUse.