Hi Prasenjit,<br><br>In a limited scope that we needed this kind of a method, we added dummy functions to the header of every loop and then generated the call graph for the module and we then traverse the call graph. I m not really sure if this will work for u , but it did do the limited job we were interested in. <br>
<br><br><br>--Aparna <br><br>Graduate Student <br>University of Maryland, College Park <br><br><br><div class="gmail_quote">On Wed, Sep 2, 2009 at 9:16 AM, Prasenjit Chakraborty <span dir="ltr"><<a href="mailto:cprasenj@in.ibm.com">cprasenj@in.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi,<br>
I am new to LLVM. I want to go through all loops in a function. I see<br>
that there is a LoopPass manager that I can use. But that is not much of<br>
help, as I want to get the order of loops in CallGraphSCC order, hence I<br>
visit each function and then just want to go over the loops.<br>
<br>
Regards,<br>
<br>
Prasenjit Chakraborty<br>
Performance Modeling and Analysis<br>
IBM Systems & Technology Lab<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>