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

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

Public Member Functions

 FunctionSpecializer (SCCPSolver &Solver, Module &M, FunctionAnalysisManager *FAM, std::function< BlockFrequencyInfo &(Function &)> GetBFI, std::function< const TargetLibraryInfo &(Function &)> GetTLI, std::function< TargetTransformInfo &(Function &)> GetTTI, std::function< AssumptionCache &(Function &)> GetAC)
 
 ~FunctionSpecializer ()
 
bool run ()
 Attempt to specialize functions in the module to enable constant propagation across function boundaries.
 
InstCostVisitor getInstCostVisitorFor (Function *F)
 

Detailed Description

Definition at line 232 of file FunctionSpecialization.h.

Constructor & Destructor Documentation

◆ FunctionSpecializer()

llvm::FunctionSpecializer::FunctionSpecializer ( SCCPSolver Solver,
Module M,
FunctionAnalysisManager FAM,
std::function< BlockFrequencyInfo &(Function &)>  GetBFI,
std::function< const TargetLibraryInfo &(Function &)>  GetTLI,
std::function< TargetTransformInfo &(Function &)>  GetTTI,
std::function< AssumptionCache &(Function &)>  GetAC 
)
inline

Definition at line 255 of file FunctionSpecialization.h.

References FAM.

◆ ~FunctionSpecializer()

FunctionSpecializer::~FunctionSpecializer ( )

Definition at line 649 of file FunctionSpecialization.cpp.

References llvm::dbgs(), llvm::Module::getName(), and LLVM_DEBUG.

Member Function Documentation

◆ getInstCostVisitorFor()

InstCostVisitor llvm::FunctionSpecializer::getInstCostVisitorFor ( Function F)
inline

Definition at line 268 of file FunctionSpecialization.h.

References F.

◆ run()

bool FunctionSpecializer::run ( )

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