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
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
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