|
LLVM
8.0.1
|
#include "llvm/IR/ProfileSummary.h"

Public Types | |
| enum | Kind { PSK_Instr, PSK_Sample } |
Public Member Functions | |
| ProfileSummary (Kind K, SummaryEntryVector DetailedSummary, uint64_t TotalCount, uint64_t MaxCount, uint64_t MaxInternalCount, uint64_t MaxFunctionCount, uint32_t NumCounts, uint32_t NumFunctions) | |
| Kind | getKind () const |
| Metadata * | getMD (LLVMContext &Context) |
| Return summary information as metadata. More... | |
| SummaryEntryVector & | getDetailedSummary () |
| uint32_t | getNumFunctions () |
| uint64_t | getMaxFunctionCount () |
| uint32_t | getNumCounts () |
| uint64_t | getTotalCount () |
| uint64_t | getMaxCount () |
| uint64_t | getMaxInternalCount () |
Static Public Member Functions | |
| static ProfileSummary * | getFromMD (Metadata *MD) |
| Construct profile summary from metdata. More... | |
Static Public Attributes | |
| static const int | Scale = 1000000 |
Definition at line 44 of file ProfileSummary.h.
| Enumerator | |
|---|---|
| PSK_Instr | |
| PSK_Sample | |
Definition at line 46 of file ProfileSummary.h.
|
inline |
Definition at line 60 of file ProfileSummary.h.
Referenced by getFromMD().
|
inline |
Definition at line 74 of file ProfileSummary.h.
Referenced by setSummary().
|
static |
Construct profile summary from metdata.
Definition at line 144 of file ProfileSummary.cpp.
References llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), getSummaryFromMD(), getVal(), isKeyValuePair(), ProfileSummary(), PSK_Instr, and PSK_Sample.
Referenced by getEntryForPercentile().
|
inline |
Definition at line 69 of file ProfileSummary.h.
|
inline |
Definition at line 79 of file ProfileSummary.h.
Referenced by getMD(), and setSummary().
|
inline |
Definition at line 76 of file ProfileSummary.h.
Referenced by getMD(), and setSummary().
|
inline |
Definition at line 80 of file ProfileSummary.h.
Referenced by getMD(), and setSummary().
| Metadata * ProfileSummary::getMD | ( | LLVMContext & | Context | ) |
Return summary information as metadata.
Definition at line 71 of file ProfileSummary.cpp.
References llvm::MDTuple::get(), getKeyValMD(), getMaxCount(), getMaxFunctionCount(), getMaxInternalCount(), getNumCounts(), getNumFunctions(), and getTotalCount().
|
inline |
Definition at line 77 of file ProfileSummary.h.
References llvm::ProfileSummaryEntry::NumCounts.
Referenced by getMD(), and setSummary().
|
inline |
Definition at line 75 of file ProfileSummary.h.
Referenced by getMD(), and setSummary().
|
inline |
Definition at line 78 of file ProfileSummary.h.
Referenced by getMD(), and setSummary().
|
static |
Definition at line 58 of file ProfileSummary.h.
1.8.13