15#ifndef LLVM_ANALYSIS_DDGPRINTER_H
16#define LLVM_ANALYSIS_DDGPRINTER_H
44 std::string getGraphName(
const DataDependenceGraph *
G) {
45 assert(
G &&
"expected a valid pointer to the graph.");
46 return "DDG for '" + std::string(
G->getName()) +
"'";
58 getEdgeAttributes(
const DDGNode *Node,
67 static std::string getNodeAttributes(
const DDGNode *Node,
72 static std::string getSimpleNodeLabel(
const DDGNode *Node,
77 static std::string getVerboseNodeLabel(
const DDGNode *Node,
81 static std::string getSimpleEdgeAttributes(
const DDGNode *Src,
87 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...
DefaultDOTGraphTraits - This class provides the default implementations of all of the DOTGraphTraits ...
The adaptor from a function pass to a loop pass computes these analyses and makes them available to t...
A CRTP mix-in for passes that should not be skipped.