[LLVMdev] Listing all loops in a function
kotha.aparna at gmail.com
Wed Sep 2 11:42:39 PDT 2009
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.
University of Maryland, College Park
On Wed, Sep 2, 2009 at 9:16 AM, Prasenjit Chakraborty
<cprasenj at in.ibm.com>wrote:
> I am new to LLVM. I want to go through all loops in a function. I see
> that there is a LoopPass manager that I can use. But that is not much of
> help, as I want to get the order of loops in CallGraphSCC order, hence I
> visit each function and then just want to go over the loops.
> Prasenjit Chakraborty
> Performance Modeling and Analysis
> IBM Systems & Technology Lab
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev