hi, <br><br><div class="gmail_quote">On Sat, Apr 24, 2010 at 2:09 PM, Arjun Singri <span dir="ltr"><<a href="mailto:arjunsingri@gmail.com">arjunsingri@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
But is there a better way of getting the loops in a function than using LoopInfo? </blockquote><div><br>
maybe you could try the scc_iterator.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">For some tasks it is necessary that we don't process the same loop twice. </blockquote>
<div>a looppass will not process a loop twice if you do not reinsert it into the queue of loopmanager.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Doing that with LoopInfo requires the use of a flag. </blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
<br><br><div class="gmail_quote">
On Fri, Apr 23, 2010 at 12:41 PM, Devang Patel <span dir="ltr"><<a href="mailto:devang.patel@gmail.com" target="_blank">devang.patel@gmail.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;">
On Thu, Apr 22, 2010 at 11:50 PM, Arjun <<a href="mailto:arjunsingri@gmail.com" target="_blank">arjunsingri@gmail.com</a>> wrote:<br>
>> Personally, I would make everything a FunctionPass.<br>
><br>
> What if a FunctionPass requires the results of a LoopPass? Is there a way to get<br>
> all loops of a function without using LoopPass and LoopInfo?<br>
<br>
A LoopPass operates on loops. It updates/deletes loops. Its end result<br>
is modified loops.<br>
A FunctionPass operates on entire function.<br>
<br>
LoopInfo is a FunctionPass that collect loops from a function. A<br>
FunctionPass can certainly request another FunctionPass such as<br>
LoopInfo.<br>
-<br>
<font color="#888888">Devang<br>
</font></blockquote></div><br>
</div></div><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>
<br></blockquote></div><br>