39 return "Post dominance root node";
58 return "Dominator tree";
74 return "Post dominator tree";
109 struct PostDomOnlyViewer
112 PostDomOnlyViewer() :
121 "View dominance tree of function",
false,
false)
123 char DomOnlyViewer::
ID = 0;
128 char PostDomViewer::ID = 0;
130 "View postdominance tree of
function", false, false)
132 char PostDomOnlyViewer::ID = 0;
134 "View postdominance tree of function "
135 "(with no function bodies)",
147 struct DomOnlyPrinter
155 struct PostDomPrinter
164 struct PostDomOnlyPrinter
167 PostDomOnlyPrinter() :
178 "Print dominance tree of function to 'dot' file",
181 char DomOnlyPrinter::
ID = 0;
183 "Print dominance tree of
function to 'dot' file "
187 char PostDomPrinter::ID = 0;
189 "Print postdominance tree of
function to 'dot' file",
192 char PostDomOnlyPrinter::ID = 0;
194 "Print postdominance tree of
function to 'dot' file "
203 return new DomPrinter();
207 return new DomOnlyPrinter();
211 return new DomViewer();
215 return new DomOnlyViewer();
219 return new PostDomPrinter();
223 return new PostDomOnlyPrinter();
227 return new PostDomViewer();
231 return new PostDomOnlyViewer();
FunctionPass * createDomOnlyViewerPass()
void initializeDomViewerPass(PassRegistry &)
static PassRegistry * getPassRegistry()
FunctionPass * createPostDomPrinterPass()
void initializePostDomViewerPass(PassRegistry &)
void initializePostDomOnlyViewerPass(PassRegistry &)
const Function * getParent() const
Return the enclosing method, or null if none.
void initializeDomOnlyPrinterPass(PassRegistry &)
FunctionPass * createDomViewerPass()
void initializePostDomPrinterPass(PassRegistry &)
ID
LLVM Calling Convention Representation.
DOTGraphTraits(bool isSimple=false)
std::string getNodeLabel(const void *, const GraphType &)
FunctionPass * createDomPrinterPass()
LLVM Basic Block Representation.
void initializeDomOnlyViewerPass(PassRegistry &)
INITIALIZE_PASS(DomViewer,"view-dom","View dominance tree of function", false, false) char DomOnlyViewer INITIALIZE_PASS(DomOnlyViewer,"view-dom-only","View dominance tree of function (with no function bodies)", false, false) char PostDomViewer INITIALIZE_PASS(PostDomViewer,"view-postdom","View postdominance tree of function", false, false) char PostDomOnlyViewer INITIALIZE_PASS(PostDomOnlyViewer,"view-postdom-only","View postdominance tree of function ""(with no function bodies)", false, false) namespace
std::string getNodeLabel(DomTreeNode *Node, DominatorTree *G)
DOTGraphTraits(bool isSimple=false)
static std::string getGraphName(PostDominatorTree *DT)
std::string getNodeLabel(DomTreeNode *Node, DomTreeNode *Graph)
void initializePostDomOnlyPrinterPass(PassRegistry &)
DOTGraphTraits(bool isSimple=false)
FunctionPass * createDomOnlyPrinterPass()
std::string getNodeLabel(DomTreeNode *Node, PostDominatorTree *G)
DomTreeNode * getRootNode() const
FunctionPass * createPostDomViewerPass()
void initializeDomPrinterPass(PassRegistry &)
DomTreeNode * getRootNode() const
FunctionPass * createPostDomOnlyViewerPass()
FunctionPass * createPostDomOnlyPrinterPass()
static std::string getGraphName(DominatorTree *DT)
print Print MemDeps of function