Stephan Z via llvm-dev
2021-Apr-09 16:53 UTC
[llvm-dev] How to make a function pass run before inlining
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, -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210409/3e00c92e/attachment.html>
Arthur Eubanks via llvm-dev
2021-Apr-09 17:06 UTC
[llvm-dev] How to make a function pass run before inlining
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>