[LLVMdev] How to Get structured info without using Pass
Jianfei Hu
hujianfei258 at gmail.com
Thu Aug 16 07:02:08 PDT 2012
Hi All,
Recently, I want to do some anlysis for the program. And I
found some structural info, such as Loop, CallGraph, Alias, is all
presented in the form of LLVM Pass. Define your own pass and then use
command 'opt' to load it.
But is there any way to get these information, LoopInfo,
CallGraph, without defining Pass? I mean, information coud be get in
normal way, encapsulate code into function, to serve for "main()"
function.
Thanks.
More information about the llvm-dev
mailing list