LLVM  4.0.0
Public Member Functions | List of all members
llvm::ICallPromotionAnalysis Class Reference

#include <IndirectCallPromotionAnalysis.h>

Public Member Functions

 ICallPromotionAnalysis ()
 
ArrayRef< InstrProfValueData > getPromotionCandidatesForInstruction (const Instruction *I, uint32_t &NumVals, uint64_t &TotalCount, uint32_t &NumCandidates)
 Returns reference to array of InstrProfValueData for the given instruction I. More...
 

Detailed Description

Definition at line 25 of file IndirectCallPromotionAnalysis.h.

Constructor & Destructor Documentation

ICallPromotionAnalysis::ICallPromotionAnalysis ( )

Definition at line 57 of file IndirectCallPromotionAnalysis.cpp.

References MaxNumPromotions.

Member Function Documentation

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

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

The NumVals, TotalCount and NumCandidates are set to the number of values in the array, 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 97 of file IndirectCallPromotionAnalysis.cpp.

References llvm::getValueProfDataFromInst(), and MaxNumPromotions.

Referenced by computeFunctionSummary().


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