LLVM 20.0.0git
Public Member Functions | List of all members
llvm::ArgumentPromotionPass Class Reference

Argument promotion pass. More...

#include "llvm/Transforms/IPO/ArgumentPromotion.h"

Inheritance diagram for llvm::ArgumentPromotionPass:
Inheritance graph
[legend]

Public Member Functions

 ArgumentPromotionPass (unsigned MaxElements=2u)
 
PreservedAnalyses run (LazyCallGraph::SCC &C, CGSCCAnalysisManager &AM, LazyCallGraph &CG, CGSCCUpdateResult &UR)
 
- Public Member Functions inherited from llvm::PassInfoMixin< ArgumentPromotionPass >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::PassInfoMixin< ArgumentPromotionPass >
static StringRef name ()
 Gets the name of the pass we are mixed into.
 

Detailed 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.

Definition at line 23 of file ArgumentPromotion.h.

Constructor & Destructor Documentation

◆ ArgumentPromotionPass()

llvm::ArgumentPromotionPass::ArgumentPromotionPass ( unsigned  MaxElements = 2u)
inline

Definition at line 27 of file ArgumentPromotion.h.

Member Function Documentation

◆ run()

PreservedAnalyses ArgumentPromotionPass::run ( LazyCallGraph::SCC C,
CGSCCAnalysisManager AM,
LazyCallGraph CG,
CGSCCUpdateResult UR 
)

The documentation for this class was generated from the following files: