[llvm-dev] how to get LoopInfo in FunctionPass in LLVM3.7.0
Marcello Maggioni via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 27 23:41:34 PDT 2015
You are not giving enough information to understand what your problem is , but chances are that you didn’t add the LoopInfo pass into the required passes of your pass
Cheers,
Marcello
> On Oct 27, 2015, at 11:16 PM, Q Z via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> I want get some loop information(the methods are included in LoopInfo class) ,but when I use "const LoopInfo *LI=&getAnalysis<LoopInfo>()", I got a compiler error.
> the version of LLVM is 3.7.0.
>
> can anyone help me?please give me some example.thank you!
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list