LLVM  8.0.1
Functions | Variables
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 (CFGOnlyViewerLegacyPass, "view-cfg-only", "View CFG of function (with no function bodies)", false, true) PreservedAnalyses CFGOnlyViewerPass
 
static void writeCFGToDotFile (Function &F, bool CFGOnly=false)
 
 INITIALIZE_PASS (CFGPrinterLegacyPass, "dot-cfg", "Print CFG of function to 'dot' file", false, true) PreservedAnalyses CFGPrinterPass
 
 INITIALIZE_PASS (CFGOnlyPrinterLegacyPass, "dot-cfg-only", "Print CFG of function to 'dot' file (with no function bodies)", false, true) PreservedAnalyses CFGOnlyPrinterPass
 

Variables

static cl::opt< std::string > CFGFuncName ("cfg-func-name", cl::Hidden, cl::desc("The name of a function (or its substring)" " whose CFG is viewed/printed."))
 
static cl::opt< std::string > CFGDotFilenamePrefix ("cfg-dot-filename-prefix", cl::Hidden, cl::desc("The prefix used for the CFG dot file names."))
 

Function Documentation

◆ INITIALIZE_PASS() [1/3]

INITIALIZE_PASS ( CFGOnlyViewerLegacyPass  ,
"view-cfg-only ,
"View CFG of function (with no function bodies)"  ,
false  ,
true   
)

Definition at line 86 of file CFGPrinter.cpp.

References llvm::PreservedAnalyses::all().

◆ INITIALIZE_PASS() [2/3]

INITIALIZE_PASS ( CFGPrinterLegacyPass  ,
"dot-cfg"  ,
"Print CFG of function to 'dot' file ,
false  ,
true   
)

◆ INITIALIZE_PASS() [3/3]

INITIALIZE_PASS ( CFGOnlyPrinterLegacyPass  ,
"dot-cfg-only ,
"Print CFG of function to 'dot' file (with no function bodies)"  ,
false  ,
true   
)

Definition at line 162 of file CFGPrinter.cpp.

References llvm::PreservedAnalyses::all(), and writeCFGToDotFile().

◆ writeCFGToDotFile()

static void writeCFGToDotFile ( Function F,
bool  CFGOnly = false 
)
static

Variable Documentation

◆ CFGDotFilenamePrefix

cl::opt<std::string> CFGDotFilenamePrefix("cfg-dot-filename-prefix", cl::Hidden, cl::desc("The prefix used for the CFG dot file names."))
static

Referenced by writeCFGToDotFile().

◆ CFGFuncName

cl::opt<std::string> CFGFuncName("cfg-func-name", cl::Hidden, cl::desc("The name of a function (or its substring)" " whose CFG is viewed/printed."))
static