LLVM
8.0.1
|
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.")) |
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 | ( | CFGPrinterLegacyPass | , |
"dot-cfg" | , | ||
"Print CFG of function to 'dot' file" | , | ||
false | , | ||
true | |||
) |
Definition at line 133 of file CFGPrinter.cpp.
References llvm::PreservedAnalyses::all(), F(), llvm::PassRegistry::getPassRegistry(), llvm::initializeCFGOnlyPrinterLegacyPassPass(), print(), runOnFunction(), llvm::AnalysisUsage::setPreservesAll(), and writeCFGToDotFile().
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().
Definition at line 95 of file CFGPrinter.cpp.
References CFGDotFilenamePrefix, CFGFuncName, llvm::StringRef::contains(), llvm::errs(), F(), llvm::sys::fs::F_Text, llvm::ARMBuildAttrs::File, llvm::Value::getName(), llvm::PassRegistry::getPassRegistry(), llvm::initializeCFGPrinterLegacyPassPass(), print(), runOnFunction(), llvm::AnalysisUsage::setPreservesAll(), and llvm::WriteGraph().
Referenced by INITIALIZE_PASS().
|
static |
Referenced by writeCFGToDotFile().
|
static |
Referenced by llvm::Function::viewCFG(), llvm::Function::viewCFGOnly(), and writeCFGToDotFile().