<div class="gmail_extra">I am using LoopPass because I need the LoopDependence analysis which seems to work with only LoopPass<br><br><div class="gmail_quote">On Sat, Apr 28, 2012 at 3:05 AM, John Criswell <span dir="ltr"><<a href="mailto:criswell@illinois.edu" target="_blank">criswell@illinois.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
On 4/27/12 2:05 PM, shanmuk rao wrote:
<blockquote type="cite">
<span>Hi,</span>
<div>I am using Loop pass ( runOnLoop() function )</div>
<div>In this function I want to access all the Loops in all the
functions in the current Module</div>
<div><br>
</div>
<div>
the LoopInfo Pass only gives the Loops in the function where the
current Loop resides :-(</div>
<div>
<div><br>
</div>
<div>Is there any other Pass by which I can access the Loops in
others functions as well ?</div>
</div>
</blockquote>
<br></div></div>
I assume you're using a FunctionPass to do your analysis or
optimization. Try writing your pass as a ModulePass instead; a
FunctionPass should only operate on code within the function that it
is analyzing/modifying.<br>
<br>
-- John T.<br>
<br>
<blockquote type="cite">
<div><br>
<br>
......<br>
Regards,<br>
Shanmukha Rao</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
LLVM Developers mailing list
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><br><br>......<br>Regards,<br>Shanmukha Rao<br>Compilers lab,<br>Indian Institute of Science, Bangalore.<br><br>mobile : nine 7even three one eight eight one two 7even two<br>
mail : shanmukrao AT csa DOT iisc DOT ernet DOT in<br> shanmukDOTrao008 AT gmail DOT com<br><br>
</div>