LLVM  13.0.0git
Namespaces | Enumerations | Functions | Variables
SizeOpts.h File Reference
#include "llvm/Analysis/BlockFrequencyInfo.h"
#include "llvm/Analysis/ProfileSummaryInfo.h"
#include "llvm/Support/CommandLine.h"
Include dependency graph for SizeOpts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 llvm
 

Enumerations

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

Functions

static bool llvm::isPGSOColdCodeOnly (ProfileSummaryInfo *PSI)
 
template<typename AdapterT , typename FuncT , typename BFIT >
bool llvm::shouldFuncOptimizeForSizeImpl (const FuncT *F, ProfileSummaryInfo *PSI, BFIT *BFI, PGSOQueryType QueryType)
 
template<typename AdapterT , 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. More...
 
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. More...
 

Variables

llvm::cl::opt< bool > EnablePGSO
 
llvm::cl::opt< bool > PGSOLargeWorkingSetSizeOnly
 
llvm::cl::opt< bool > PGSOColdCodeOnly
 
llvm::cl::opt< bool > PGSOColdCodeOnlyForInstrPGO
 
llvm::cl::opt< bool > PGSOColdCodeOnlyForSamplePGO
 
llvm::cl::opt< bool > PGSOColdCodeOnlyForPartialSamplePGO
 
llvm::cl::opt< bool > ForcePGSO
 
llvm::cl::opt< intPgsoCutoffInstrProf
 
llvm::cl::opt< intPgsoCutoffSampleProf
 

Variable Documentation

◆ EnablePGSO

llvm::cl::opt<bool> EnablePGSO

◆ ForcePGSO

llvm::cl::opt<bool> ForcePGSO

◆ PGSOColdCodeOnly

llvm::cl::opt<bool> PGSOColdCodeOnly

◆ PGSOColdCodeOnlyForInstrPGO

llvm::cl::opt<bool> PGSOColdCodeOnlyForInstrPGO

◆ PGSOColdCodeOnlyForPartialSamplePGO

llvm::cl::opt<bool> PGSOColdCodeOnlyForPartialSamplePGO

◆ PGSOColdCodeOnlyForSamplePGO

llvm::cl::opt<bool> PGSOColdCodeOnlyForSamplePGO

◆ PgsoCutoffInstrProf

llvm::cl::opt<int> PgsoCutoffInstrProf

◆ PgsoCutoffSampleProf

llvm::cl::opt<int> PgsoCutoffSampleProf

◆ PGSOLargeWorkingSetSizeOnly

llvm::cl::opt<bool> PGSOLargeWorkingSetSizeOnly