[LLVMdev] The "scope" of passes

Devang Patel devang.patel at gmail.com
Mon Apr 26 10:03:36 PDT 2010


On Fri, Apr 23, 2010 at 11:09 PM, Arjun Singri <arjunsingri at gmail.com> wrote:
> But is there a better way of getting the loops in a function than using
> LoopInfo?

LoopInfo finds loop in a function and provides interface to iterator
loops. LoopInfo does not process loops, it is not a pass. A function
pass can request LoopInfo pass and use loop info iterators to access
loops. See LoopInfo header file.
-
Devang



More information about the llvm-dev mailing list