ambika at cse.iitb.ac.in
2010-Feb-09 17:42 UTC
[LLVMdev] Help regarding Flow of function calls in llvm
Hi, Is there a way to know flow of function calls when i run a .bc file with opt. regards, Ambika
Duncan Sands
2010-Feb-09 18:11 UTC
[LLVMdev] Help regarding Flow of function calls in llvm
Hi Ambika, try this: opt -print-callgraph file.bc Ciao, Duncan.
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.