LLVM 24.0.0git
IndirectCallPromotion.cpp File Reference

Go to the source code of this file.

Namespaces

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

Macros

#define DEBUG_TYPE   "pgo-icall-prom"

Functions

 STATISTIC (NumOfPGOICallPromotion, "Number of indirect call promotions.")
 STATISTIC (NumOfPGOICallsites, "Number of indirect call candidate sites.")
static MDNode * createBranchWeights (LLVMContext &Context, uint64_t TrueWeight, uint64_t FalseWeight)
static void computeVirtualCallSiteTypeInfoMap (Module &M, ModuleAnalysisManager &MAM, VirtualCallSiteTypeInfoMap &VirtualCSInfo)
static bool promoteIndirectCalls (const InstrumentationOptions &Opts, Module &M, ProfileSummaryInfo *PSI, bool InLTO, bool SamplePGO, ModuleAnalysisManager &MAM)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "pgo-icall-prom"

Definition at line 54 of file IndirectCallPromotion.cpp.

Function Documentation

◆ computeVirtualCallSiteTypeInfoMap()

◆ createBranchWeights()

MDNode * createBranchWeights ( LLVMContext & Context,
uint64_t TrueWeight,
uint64_t FalseWeight )
static

◆ promoteIndirectCalls()

◆ STATISTIC() [1/2]

STATISTIC ( NumOfPGOICallPromotion ,
"Number of indirect call promotions."  )

◆ STATISTIC() [2/2]

STATISTIC ( NumOfPGOICallsites ,
"Number of indirect call candidate sites."  )