[LLVMdev] problem with analysis required

Kshitiz Garg ksh.cseiitk at gmail.com
Fri May 8 20:44:56 PDT 2009


>>
> I believe the problem here is that you need to specify the function for
> which you want loop information in the above call, i.e.:
>
> Loopinfo * LI = &getAnalysis<LoopInfo>(F)
>
Thanks John . Your solution worked. We need to pass the function as a
reference. However only the do initialization can do some module level
stuff but it will not serve my purpose as one is not allowed to
maintain states across 2 invocations of a function pass.

kshitiz



More information about the llvm-dev mailing list