[LLVMdev] iterate over loops inside the runOnFunction

khaled hamidouche khaledhamidouche at gmail.com
Tue Apr 20 04:22:42 PDT 2010


Hello
I'm wandring to write a Function parser that iterates over loops inside each
function and inside each loop iterates over instructions

So I found a way to do the Function parser that iterates over  BasicBlocks
(using the runOnfunction Pass)  but I no know how make it iterates over
loops ?

So my question is there any way to make a loop inside the runOnfunction to
iterate over "loops" (just like with the Basicblock loop   "for
(BasicBlock::iterator i = b->begin(), ie = b->end(); i != ie; ++i) " ) ?

Thank you so much for helping me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100420/5dd87388/attachment.html>


More information about the llvm-dev mailing list