LLVM: llvm::ProfileSummary Class Reference (original) (raw)
#include "[llvm/IR/ProfileSummary.h](ProfileSummary%5F8h%5Fsource.html)"
| Public Member Functions |
|
|
ProfileSummary (Kind K, const SummaryEntryVector &DetailedSummary, uint64_t TotalCount, uint64_t MaxCount, uint64_t MaxInternalCount, uint64_t MaxFunctionCount, uint32_t NumCounts, uint32_t NumFunctions, bool Partial=false, double PartialProfileRatio=0) |
| Kind |
getKind () const |
| LLVM_ABI Metadata * |
getMD (LLVMContext &Context, bool AddPartialField=true, bool AddPartialProfileRatioField=true) |
|
Return summary information as metadata. |
| const SummaryEntryVector & |
getDetailedSummary () |
| uint32_t |
getNumFunctions () const |
| uint64_t |
getMaxFunctionCount () const |
| uint32_t |
getNumCounts () const |
| uint64_t |
getTotalCount () const |
| uint64_t |
getMaxCount () const |
| uint64_t |
getMaxInternalCount () const |
| void |
setPartialProfile (bool PP) |
| bool |
isPartialProfile () const |
| double |
getPartialProfileRatio () const |
| void |
setPartialProfileRatio (double R) |
| LLVM_ABI void |
printSummary (raw_ostream &OS) const |
| LLVM_ABI void |
printDetailedSummary (raw_ostream &OS) const |
| Static Public Attributes |
|
| static const int |
Scale = 1000000 |
Definition at line 45 of file ProfileSummary.h.
◆ Kind
| Enumerator |
| PSK_Instr |
| PSK_CSInstr |
| PSK_Sample |
Definition at line 47 of file ProfileSummary.h.
◆ getDetailedSummary()
◆ getFromMD()
Construct profile summary from metdata.
Definition at line 194 of file ProfileSummary.cpp.
References llvm::dyn_cast(), llvm::dyn_cast_or_null(), getOptionalVal(), getSummaryFromMD(), getVal(), I, isKeyValuePair(), ProfileSummary(), PSK_CSInstr, PSK_Instr, and PSK_Sample.
Referenced by llvm::ProfileSummaryInfo::refresh().
◆ getKind()
| Kind llvm::ProfileSummary::getKind ( ) const |
inline |
◆ getMaxCount()
| uint64_t llvm::ProfileSummary::getMaxCount ( ) const |
inline |
◆ getMaxFunctionCount()
| uint64_t llvm::ProfileSummary::getMaxFunctionCount ( ) const |
inline |
◆ getMaxInternalCount()
| uint64_t llvm::ProfileSummary::getMaxInternalCount ( ) const |
inline |
◆ getMD()
Return summary information as metadata.
Definition at line 80 of file ProfileSummary.cpp.
References llvm::MDTuple::get(), getKeyFPValMD(), getKeyValMD(), getMaxCount(), getMaxFunctionCount(), getMaxInternalCount(), getNumCounts(), getNumFunctions(), getPartialProfileRatio(), getTotalCount(), isPartialProfile(), and llvm::SmallVectorTemplateBase< T, bool >::push_back().
◆ getNumCounts()
| uint32_t llvm::ProfileSummary::getNumCounts ( ) const |
inline |
◆ getNumFunctions()
| uint32_t llvm::ProfileSummary::getNumFunctions ( ) const |
inline |
◆ getPartialProfileRatio()
| double llvm::ProfileSummary::getPartialProfileRatio ( ) const |
inline |
◆ getTotalCount()
| uint64_t llvm::ProfileSummary::getTotalCount ( ) const |
inline |
◆ isPartialProfile()
| bool llvm::ProfileSummary::isPartialProfile ( ) const |
inline |
◆ printDetailedSummary()
| void ProfileSummary::printDetailedSummary |
( |
raw_ostream & |
OS |
) |
const |
◆ printSummary()
| void ProfileSummary::printSummary |
( |
raw_ostream & |
OS |
) |
const |
◆ setPartialProfile()
| void llvm::ProfileSummary::setPartialProfile ( bool PP) |
inline |
◆ setPartialProfileRatio()
| void llvm::ProfileSummary::setPartialProfileRatio ( double R) |
inline |
◆ Scale
| const int llvm::ProfileSummary::Scale = 1000000 |
static |
The documentation for this class was generated from the following files: