[llvm-dev] how to get LoopInfo in FunctionPass in LLVM3.7.0

Q Z via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 27 23:16:32 PDT 2015


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151028/f7da5c47/attachment.html>


More information about the llvm-dev mailing list