LLVM API Documentation

Functions
CFGPrinter.cpp File Reference
#include "llvm/Analysis/CFGPrinter.h"
#include "llvm/Pass.h"
#include "llvm/Support/FileSystem.h"
Include dependency graph for CFGPrinter.cpp:

Go to the source code of this file.

Functions

 INITIALIZE_PASS (CFGOnlyViewer,"view-cfg-only","View CFG of function (with no function bodies)", false, true) namespace
 INITIALIZE_PASS (CFGPrinter,"dot-cfg","Print CFG of function to 'dot' file", false, true) namespace
 INITIALIZE_PASS (CFGOnlyPrinter,"dot-cfg-only","Print CFG of function to 'dot' file (with no function bodies)", false, true) void Function

Function Documentation

INITIALIZE_PASS ( CFGOnlyViewer  ,
"view-cfg-only"  ,
"View CFG of function (with no function bodies)"  ,
false  ,
true   
)
INITIALIZE_PASS ( CFGPrinter  ,
"dot-cfg"  ,
"Print CFG of function to 'dot' file"  ,
false  ,
true   
)
INITIALIZE_PASS ( CFGOnlyPrinter  ,
"dot-cfg-only"  ,
"Print CFG of function to 'dot' file (with no function bodies)"  ,
false  ,
true   
)

viewCFG - This function is meant for use from the debugger. You can just say 'call F->viewCFG()' and a ghostview window should pop up from the program, displaying the CFG of the current function. This depends on there being a 'dot' and 'gv' program in your path.

Definition at line 136 of file CFGPrinter.cpp.

References llvm::Intrinsic::getName(), and llvm::ViewGraph().