[llvm-dev] How to make a function pass run before inlining

Arthur Eubanks via llvm-dev llvm-dev at lists.llvm.org
Fri Apr 9 10:06:44 PDT 2021


Does
https://llvm.org/docs/NewPassManager.html#inserting-passes-into-default-pipelines
help?

On Fri, Apr 9, 2021 at 9:53 AM Stephan Z via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi all,
>
> I wanted to have an LLVM pass to inject code inside functions matching
> some conditions about function signatures. If inlining happens before the
> LLVM pass, it may not find all functions.
>
> Is it possible to always run a pass before inlining?
>
> It seems that LLVM schedules passes in terms of the orders they are added
> into Pass Manager.
> Do we have any examples to use Pass Manager to control order?
>
> Thank you,
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210409/6ba26e03/attachment.html>


More information about the llvm-dev mailing list