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?