[LLVMdev] The "scope" of passes
devang.patel at gmail.com
Fri Apr 23 09:41:50 PDT 2010
On Thu, Apr 22, 2010 at 11:50 PM, Arjun <arjunsingri at gmail.com> wrote:
>> Personally, I would make everything a FunctionPass.
> What if a FunctionPass requires the results of a LoopPass? Is there a way to get
> all loops of a function without using LoopPass and LoopInfo?
A LoopPass operates on loops. It updates/deletes loops. Its end result
is modified loops.
A FunctionPass operates on entire function.
LoopInfo is a FunctionPass that collect loops from a function. A
FunctionPass can certainly request another FunctionPass such as
More information about the llvm-dev