LLVM 22.0.0git
llvm::ConstantHoistingPass Class Reference

#include "llvm/Transforms/Scalar/ConstantHoisting.h"

Inheritance diagram for llvm::ConstantHoistingPass:
[legend]

Public Member Functions

PreservedAnalyses run (Function &F, FunctionAnalysisManager &AM)
bool runImpl (Function &F, TargetTransformInfo &TTI, DominatorTree &DT, BlockFrequencyInfo *BFI, BasicBlock &Entry, ProfileSummaryInfo *PSI)
 Optimize expensive integer constants in the given function.
void cleanup ()
Public Member Functions inherited from llvm::PassInfoMixin< ConstantHoistingPass >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

Additional Inherited Members

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

Detailed Description

Definition at line 126 of file ConstantHoisting.h.

Member Function Documentation

◆ cleanup()

void llvm::ConstantHoistingPass::cleanup ( )
inline

Definition at line 135 of file ConstantHoisting.h.

◆ run()

◆ runImpl()

bool ConstantHoistingPass::runImpl ( Function & F,
TargetTransformInfo & TTI,
DominatorTree & DT,
BlockFrequencyInfo * BFI,
BasicBlock & Entry,
ProfileSummaryInfo * PSI )

Optimize expensive integer constants in the given function.

Definition at line 919 of file ConstantHoisting.cpp.

References cleanup(), llvm::Function::getContext(), llvm::Function::getDataLayout(), llvm::IRPass, and llvm::shouldOptimizeForSize().


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