LLVM API Documentation

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 | |
| INITIALIZE_PASS | ( | CFGOnlyViewer | , |
| "view-cfg-only" | , | ||
| "View CFG of function (with no function bodies)" | , | ||
| false | , | ||
| true | |||
| ) |
Definition at line 69 of file CFGPrinter.cpp.
References llvm::errs(), F(), llvm::sys::fs::F_Text, llvm::ARMBuildAttrs::File, llvm::Value::getName(), llvm::PassRegistry::getPassRegistry(), llvm::initializeCFGPrinterPass(), llvm::AnalysisUsage::setPreservesAll(), llvm::StringRef::str(), and llvm::WriteGraph().
| INITIALIZE_PASS | ( | CFGPrinter | , |
| "dot-cfg" | , | ||
| "Print CFG of function to 'dot' file" | , | ||
| false | , | ||
| true | |||
| ) |
Definition at line 103 of file CFGPrinter.cpp.
References llvm::errs(), F(), llvm::sys::fs::F_Text, llvm::ARMBuildAttrs::File, llvm::Value::getName(), llvm::PassRegistry::getPassRegistry(), llvm::initializeCFGOnlyPrinterPass(), llvm::AnalysisUsage::setPreservesAll(), llvm::StringRef::str(), and llvm::WriteGraph().
| 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().