[LLVMdev] Passes calling

John Criswell criswell at illinois.edu
Thu Jun 12 09:23:24 PDT 2014


On 6/12/14, 11:03 AM, Chandler Carruth wrote:
>
> On Thu, Jun 12, 2014 at 4:45 PM, Hanbing Li <hanbing.li at inria.fr 
> <mailto:hanbing.li at inria.fr>> wrote:
>
>     Hi,
>
>     I know when a pass needs other passes, it will use something like
>     this: "AU.addRequired<LoopInfo>();". But this is usually used for
>     the analysis passes.
>     When a pass needs another transform pass, can it call it
>     automatically?
>     For example:
>     Some loop optimizations may need loop-simplify, I need add
>     -loop-simplify before calling these passes manually, or they can
>     call the pass -loop-simplify automatically?
>
>
> Currently, the pass manager allows you (somewhat) to use the 
> addRequired mechanism even with analyses. However, I strongly 
> encourage you to not leverage it as it will eventually go away.

Just out of curiosity, why is this feature going away?

Regards,

John Criswell

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140612/3c0914cb/attachment.html>


More information about the llvm-dev mailing list