LLVM: llvm::ICallPromotionAnalysis Class Reference (original) (raw)

#include "[llvm/Analysis/IndirectCallPromotionAnalysis.h](IndirectCallPromotionAnalysis%5F8h%5Fsource.html)"

Public Member Functions
ICallPromotionAnalysis ()=default
MutableArrayRef< InstrProfValueData > getPromotionCandidatesForInstruction (const Instruction *I, uint64_t &TotalCount, uint32_t &NumCandidates)
Returns reference to array of InstrProfValueData for the given instruction I.

Detailed Description

Definition at line 24 of file IndirectCallPromotionAnalysis.h.

Constructor & Destructor Documentation

llvm::ICallPromotionAnalysis::ICallPromotionAnalysis ( ) default

References I.

Member Function Documentation

getPromotionCandidatesForInstruction()

MutableArrayRef< InstrProfValueData > ICallPromotionAnalysis::getPromotionCandidatesForInstruction ( const Instruction * I,
uint64_t & TotalCount,
uint32_t & NumCandidates )

Returns reference to array of InstrProfValueData for the given instruction I.

The TotalCount and NumCandidates are set to the the total profile count of the indirect call I and the number of profitable candidates in the given array (which is sorted in reverse order of profitability).

The returned array space is owned by this class, and overwritten on subsequent calls.

Definition at line 95 of file IndirectCallPromotionAnalysis.cpp.

References llvm::getValueProfDataFromInst(), I, llvm::MaxNumPromotions, and llvm::MutableArrayRef().

Referenced by computeFunctionSummary().


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