No, this is not what I am looking for. I am looking for something like may be a debugger so that I can trace the function calls in source of llvm. llvm-db dosent work it says "debugger not implemented" when i try to use it. Can I use gdb or something like that with llvm. What I basically want is to know that when I run some Alias Analysis then from where the functions of file BasicAliasAnalysis.cpp are called, in which order and which functions does it call while executing, ie the flow of calls in source of llvm. Is it possible to do this. Duncan Sands wrote:> Hi Ambika, try this: > > opt -print-callgraph file.bc > > Ciao, > > Duncan.
Jeffrey Yasskin
2010-Feb-10 17:06 UTC
[LLVMdev] Help regarding Flow of function calls in llvm
llvm itself is a plain C++ program, so you can use gdb on it. gdb doesn't know how to step through compiled IR, yet. On Tue, Feb 9, 2010 at 12:13 PM, ambika <ambika at cse.iitb.ac.in> wrote:> No, this is not what I am looking for. I am looking for something like > may be a debugger so that I can trace the function calls in source of llvm. > llvm-db dosent work it says "debugger not implemented" when i try to use > it. Can I use gdb or something like that with llvm. > > What I basically want is to know that when I run some Alias Analysis > then from where the functions of file BasicAliasAnalysis.cpp are called, > in which order and which functions does it call while executing, ie the > flow of calls in source of llvm. > > Is it possible to do this. > > > Duncan Sands wrote: >> Hi Ambika, try this: >> >> opt -print-callgraph file.bc >> >> Ciao, >> >> Duncan. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Jeffrey Yasskin
2010-Feb-10 17:08 UTC
[LLVMdev] Help regarding Flow of function calls in llvm
You will have to configure llvm with either --disable-optimized or --enable-debug-symbols. On Wed, Feb 10, 2010 at 9:06 AM, Jeffrey Yasskin <jyasskin at google.com> wrote:> llvm itself is a plain C++ program, so you can use gdb on it. gdb > doesn't know how to step through compiled IR, yet. > > On Tue, Feb 9, 2010 at 12:13 PM, ambika <ambika at cse.iitb.ac.in> wrote: >> No, this is not what I am looking for. I am looking for something like >> may be a debugger so that I can trace the function calls in source of llvm. >> llvm-db dosent work it says "debugger not implemented" when i try to use >> it. Can I use gdb or something like that with llvm. >> >> What I basically want is to know that when I run some Alias Analysis >> then from where the functions of file BasicAliasAnalysis.cpp are called, >> in which order and which functions does it call while executing, ie the >> flow of calls in source of llvm. >> >> Is it possible to do this. >> >> >> Duncan Sands wrote: >>> Hi Ambika, try this: >>> >>> opt -print-callgraph file.bc >>> >>> Ciao, >>> >>> Duncan. >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >