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

Stephan Z via llvm-dev llvm-dev at lists.llvm.org
Fri Apr 9 09:53:02 PDT 2021


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>


More information about the llvm-dev mailing list