LLVM  14.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
 ---------------------— PointerInfo ------------------------------------—
 

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

cl::opt< bool > llvm::EnablePGSO
 
cl::opt< bool > llvm::PGSOLargeWorkingSetSizeOnly
 
cl::opt< bool > llvm::PGSOColdCodeOnly
 
cl::opt< bool > llvm::PGSOColdCodeOnlyForInstrPGO
 
cl::opt< bool > llvm::PGSOColdCodeOnlyForSamplePGO
 
cl::opt< bool > llvm::PGSOColdCodeOnlyForPartialSamplePGO
 
cl::opt< bool > llvm::ForcePGSO
 
cl::opt< intllvm::PgsoCutoffInstrProf
 
cl::opt< intllvm::PgsoCutoffSampleProf