15#ifndef LLVM_ANALYSIS_DDGPRINTER_H
16#define LLVM_ANALYSIS_DDGPRINTER_H
39struct DOTGraphTraits<
const DataDependenceGraph *>
40 :
public DefaultDOTGraphTraits {
42 DOTGraphTraits(
bool IsSimple =
false) : DefaultDOTGraphTraits(IsSimple) {}
46 assert(
G &&
"expected a valid pointer to the graph.");
47 return "DDG for '" + std::string(
G->getName()) +
"'";
59 getEdgeAttributes(
const DDGNode *Node,
69 static std::string getSimpleNodeLabel(
const DDGNode *Node,
74 static std::string getVerboseNodeLabel(
const DDGNode *Node,
78 static std::string getSimpleEdgeAttributes(
const DDGNode *Src,
84 static std::string getVerboseEdgeAttributes(
const DDGNode *Src,
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static std::string getNodeLabel(const ValueInfo &VI, GlobalValueSummary *GVS)
std::pair< BasicBlock *, BasicBlock * > Edge
PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM, LoopStandardAnalysisResults &AR, LPMUpdater &U)
Data Dependency Graph Edge.
Data Dependence Graph Node The graph can represent the following types of nodes:
This class provides an interface for updating the loop pass manager based on mutations to the loop ne...
Represents a single loop in the control flow graph.
A set of analyses that are preserved following a run of a transformation pass.
This is an optimization pass for GlobalISel generic memory operations.
DOTGraphTraits< const DataDependenceGraph * > DDGDotGraphTraits
AnalysisManager< Loop, LoopStandardAnalysisResults & > LoopAnalysisManager
The loop analysis manager.
DOTGraphTraits - Template class that can be specialized to customize how graphs are converted to 'dot...
The adaptor from a function pass to a loop pass computes these analyses and makes them available to t...
A CRTP mix-in to automatically provide informational APIs needed for passes.