search for: dumpcfg

Displaying 4 results from an estimated 4 matches for "dumpcfg".

Did you mean: dumpcap
2014 Mar 28
2
[LLVMdev] How to extract the starting address of each basic block with llvm?
Dear all, I use the clang frontend to produce the control flow graph of a C program through this command: clang -Xclang -analyze -Xclang -analyzer-checker=debug.DumpCFG test.c The produced information contains all the basic blocks identified by labels, e.g. B1, B2, etc. along with their predecessors and successors. Is there a way to get the starting address of each of these basic block? I would like to map the basic block labels produced by CFG with the actual...
2012 Sep 28
1
[LLVMdev] [LLVM-Clang CFG] - generating CFG of a C program and llvm iterators
...ant to generate Control Flow Graph (in memory CFG object) of any given C program and then iterate over this CFG (all function, basic blocks and instructions) using llvm iterators. I can see text output of CFG on screen, using following command: `clang -cc1 -Idummyh -analyze -analyzer-checker=debug.DumpCFG hello/hello.c' where dummyh has en empty stdio.h to remove this error: `fatal error: 'stdio.h' file not found' I see CFG.h and CFG.cpp that clang uses and have seen some docs on ModulePass, FunctionPass, BasicBlockPass, etc. But I have not figured out how to put together things to...
2012 Oct 07
2
[LLVMdev] getting pointer to CFG object for any given C program
...lang/lib/Analysis/CFG.cpp:3166 - CFG* CFG::buildCFG(const Decl *D, Stmt *Statement, ASTContext *C, const BuildOptions &BO) { CFGBuilder Builder(C, BO); return Builder.buildCFG(D, Statement); } I have tried to debug clang using gdb (by running r -cc1 -analyze -analyser-checker=Debug.DumpCFG hello.c from within gdb) and now I know something about flow but exactly not able to figure out how to get pointer to CFG object in my program? Since CFG is being built by recursive visit to AST, I cannot direct do anything with objects of classes such as CFG, CFGBuilder or CFGBlock. My query...
2012 Oct 02
0
[LLVMdev] LLVM IR and CFG
...Flow Graph (in memory CFG object) of any > given C program and then iterate over this CFG (all function, basic > blocks and instructions) using llvm iterators. > > I can see text output of CFG on screen, using following command: > `clang -cc1 -Idummyh -analyze -analyzer-checker=debug.DumpCFG > hello/hello.c' > where dummyh has en empty stdio.h to remove this error: > `fatal error: 'stdio.h' file not found' > > I see CFG.h and CFG.cpp that clang uses and have seen some docs on > ModulePass, FunctionPass, BasicBlockPass, etc. But I have not figured >...