class InlinerPass
Declaration
class InlinerPass : public PassInfoMixin { /* full declaration omitted */ };
Description
The inliner pass for the new pass manager. This pass wires together the inlining utilities and the inline cost analysis into a CGSCC pass. It considers every call in every function in the SCC and tries to inline if profitable. It can be tuned with a number of parameters to control what cost model is used and what tradeoffs are made when making the decision. It should be noted that the legacy inliners do considerably more than this inliner pass does. They provide logic for manually merging allocas, and doing considerable DCE including the DCE of dead functions. This pass makes every attempt to be simpler. DCE of functions requires complex reasoning about comdat groups, etc. Instead, it is expected that other more focused passes be composed to achieve the same end result.
Declared at: llvm/include/llvm/Transforms/IPO/Inliner.h:94
Inherits from: PassInfoMixin
Method Overview
- public InlinerPass(llvm::InlineParams Params = getInlineParams())
- public InlinerPass(llvm::InlinerPass && Arg)
- public llvm::PreservedAnalyses run(LazyCallGraph::SCC & C, llvm::CGSCCAnalysisManager & AM, llvm::LazyCallGraph & CG, llvm::CGSCCUpdateResult & UR)
- public ~InlinerPass()
Methods
¶InlinerPass(
llvm::InlineParams Params = getInlineParams())
InlinerPass(
llvm::InlineParams Params = getInlineParams())
Declared at: llvm/include/llvm/Transforms/IPO/Inliner.h:96
Parameters
- llvm::InlineParams Params = getInlineParams()
¶InlinerPass(llvm::InlinerPass&& Arg)
InlinerPass(llvm::InlinerPass&& Arg)
Declared at: llvm/include/llvm/Transforms/IPO/Inliner.h:99
Parameters
- llvm::InlinerPass&& Arg
¶llvm::PreservedAnalyses run(
LazyCallGraph::SCC& C,
llvm::CGSCCAnalysisManager& AM,
llvm::LazyCallGraph& CG,
llvm::CGSCCUpdateResult& UR)
llvm::PreservedAnalyses run(
LazyCallGraph::SCC& C,
llvm::CGSCCAnalysisManager& AM,
llvm::LazyCallGraph& CG,
llvm::CGSCCUpdateResult& UR)
Declared at: llvm/include/llvm/Transforms/IPO/Inliner.h:103
Parameters
- LazyCallGraph::SCC& C
- llvm::CGSCCAnalysisManager& AM
- llvm::LazyCallGraph& CG
- llvm::CGSCCUpdateResult& UR
¶~InlinerPass()
~InlinerPass()
Declared at: llvm/include/llvm/Transforms/IPO/Inliner.h:98