LLVM 20.0.0git
|
#include "llvm/Analysis/IndirectCallPromotionAnalysis.h"
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 . | |
Definition at line 24 of file IndirectCallPromotionAnalysis.h.
|
default |
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 84 of file IndirectCallPromotionAnalysis.cpp.
References llvm::SmallVectorBase< Size_T >::empty(), llvm::getValueProfDataFromInst(), I, and MaxNumPromotions.
Referenced by computeFunctionSummary().