[LLVMdev] About loop information in LLVM during compiling

Jim Grosbach grosbach at apple.com
Thu Aug 19 11:18:29 PDT 2010


I'd suggest starting by having a look at the LoopInfo analysis pass in lib/Analysis/LoopInfo.cpp. Other passes which operate on loops use this pass via getAnalysis<LoopInfo>. There are various examples of usage in lib/Transforms/Scalar/Loop*.cpp.


On Aug 19, 2010, at 1:39 AM, Li Shengmei wrote:

> Hi, all
> 	Can we get the loop information in LLVM during compiling? In which
> phase or function we can obtain the loop related information?
> Thanks
> May
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list