[llvm-dev] Inliner in legacy pass manager

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 10 17:51:20 PST 2020


Am Di., 10. Nov. 2020 um 01:28 Uhr schrieb sushant gokhale
<gokhalesushant91 at gmail.com>:
> So, does this mean that in legacy pass manager, when I run:
> PM.add( someFunctionPass() )     // PM is modulePassManager
> it creates FunctionPassManager, runs the function pass,destroys the functionPassManager and returns control to modulePassManager?

Yes.

> Also, you have said that this wasn't the primary reason for the introduction of the new pass manager. But then is this one of the reasons?

See http://llvm.org/devmtg/2014-04/PDFs/Talks/Passes.pdf


Michael


More information about the llvm-dev mailing list