LLVM 20.0.0git
Namespaces | Enumerations | Functions | Variables
SizeOpts.h File Reference
#include "llvm/Analysis/ProfileSummaryInfo.h"
#include "llvm/Support/CommandLine.h"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Enumerations

enum class  llvm::PGSOQueryType { llvm::IRPass , llvm::Test , llvm::Other }
 

Functions

static bool llvm::isPGSOColdCodeOnly (ProfileSummaryInfo *PSI)
 
template<typename FuncT , typename BFIT >
bool llvm::shouldFuncOptimizeForSizeImpl (const FuncT *F, ProfileSummaryInfo *PSI, BFIT *BFI, PGSOQueryType QueryType)
 
template<typename BlockTOrBlockFreq , typename BFIT >
bool llvm::shouldOptimizeForSizeImpl (BlockTOrBlockFreq BBOrBlockFreq, ProfileSummaryInfo *PSI, BFIT *BFI, PGSOQueryType QueryType)
 
bool llvm::shouldOptimizeForSize (const Function *F, ProfileSummaryInfo *PSI, BlockFrequencyInfo *BFI, PGSOQueryType QueryType=PGSOQueryType::Other)
 Returns true if function F is suggested to be size-optimized based on the profile.
 
bool llvm::shouldOptimizeForSize (const BasicBlock *BB, ProfileSummaryInfo *PSI, BlockFrequencyInfo *BFI, PGSOQueryType QueryType=PGSOQueryType::Other)
 Returns true if basic block BB is suggested to be size-optimized based on the profile.
 

Variables

cl::opt< boolllvm::EnablePGSO
 
cl::opt< boolllvm::PGSOLargeWorkingSetSizeOnly
 
cl::opt< boolllvm::PGSOColdCodeOnly
 
cl::opt< boolllvm::PGSOColdCodeOnlyForInstrPGO
 
cl::opt< boolllvm::PGSOColdCodeOnlyForSamplePGO
 
cl::opt< boolllvm::PGSOColdCodeOnlyForPartialSamplePGO
 
cl::opt< boolllvm::ForcePGSO
 
cl::opt< int > llvm::PgsoCutoffInstrProf
 
cl::opt< int > llvm::PgsoCutoffSampleProf