But is there a better way of getting the loops in a function than using LoopInfo? For some tasks it is necessary that we don't process the same loop twice. Doing that with LoopInfo requires the use of a flag.<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">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">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>