class ArgumentPromotionPass
Declaration
class ArgumentPromotionPass : public PassInfoMixin { /* full declaration omitted */ };
Description
Argument promotion pass. This pass walks the functions in each SCC and for each one tries to transform it and all of its callers to replace indirect arguments with direct (by-value) arguments.
Declared at: llvm/include/llvm/Transforms/IPO/ArgumentPromotion.h:23
Inherits from: PassInfoMixin
Method Overview
- public ArgumentPromotionPass(unsigned int MaxElements = 3U)
- public llvm::PreservedAnalyses run(LazyCallGraph::SCC & C, llvm::CGSCCAnalysisManager & AM, llvm::LazyCallGraph & CG, llvm::CGSCCUpdateResult & UR)
Methods
¶ArgumentPromotionPass(
unsigned int MaxElements = 3U)
ArgumentPromotionPass(
unsigned int MaxElements = 3U)
Declared at: llvm/include/llvm/Transforms/IPO/ArgumentPromotion.h:27
Parameters
- unsigned int MaxElements = 3U
¶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/ArgumentPromotion.h:29