Li Shengmei
2010-Aug-19 08:39 UTC
[LLVMdev] About loop information in LLVM during compiling
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
Jim Grosbach
2010-Aug-19 18:18 UTC
[LLVMdev] About loop information in LLVM during compiling
Hello, 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. Regards, Jim 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