LLVM  8.0.1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::IndexedInstrProf::Summary Struct Reference

#include "llvm/ProfileData/InstrProf.h"

Collaboration diagram for llvm::IndexedInstrProf::Summary:
Collaboration graph
[legend]

Classes

struct  Entry
 

Public Types

enum  SummaryFieldKind {
  TotalNumFunctions = 0, TotalNumBlocks = 1, MaxFunctionCount = 2, MaxBlockCount = 3,
  MaxInternalBlockCount = 4, TotalBlockCount = 5, NumKinds = TotalBlockCount + 1
}
 

Public Member Functions

 Summary ()=delete
 
 Summary (uint32_t Size)
 
void operator delete (void *ptr)
 
const uint64_t * getSummaryDataBase () const
 
uint64_t * getSummaryDataBase ()
 
const EntrygetCutoffEntryBase () const
 
EntrygetCutoffEntryBase ()
 
uint64_t get (SummaryFieldKind K) const
 
void set (SummaryFieldKind K, uint64_t V)
 
const EntrygetEntry (uint32_t I) const
 
void setEntry (uint32_t I, const ProfileSummaryEntry &E)
 

Static Public Member Functions

static uint32_t getSize (uint32_t NumSumFields, uint32_t NumCutoffEntries)
 

Public Attributes

uint64_t NumSummaryFields
 
uint64_t NumCutoffEntries
 

Detailed Description

Definition at line 914 of file InstrProf.h.

Member Enumeration Documentation

◆ SummaryFieldKind

Enumerator
TotalNumFunctions 

The total number of functions instrumented.

TotalNumBlocks 

Total number of instrumented blocks/edges.

MaxFunctionCount 

The maximal execution count among all functions.

This field does not exist for profile data from IR based instrumentation.

MaxBlockCount 

Max block count of the program.

MaxInternalBlockCount 

Max internal block count of the program (excluding entry blocks).

TotalBlockCount 

The sum of all instrumented block counts.

NumKinds 

Definition at line 924 of file InstrProf.h.

Constructor & Destructor Documentation

◆ Summary() [1/2]

llvm::IndexedInstrProf::Summary::Summary ( )
delete

◆ Summary() [2/2]

llvm::IndexedInstrProf::Summary::Summary ( uint32_t  Size)
inline

Definition at line 948 of file InstrProf.h.

References llvm::Intrinsic::memset.

Member Function Documentation

◆ get()

uint64_t llvm::IndexedInstrProf::Summary::get ( SummaryFieldKind  K) const
inline

Definition at line 974 of file InstrProf.h.

◆ getCutoffEntryBase() [1/2]

const Entry* llvm::IndexedInstrProf::Summary::getCutoffEntryBase ( ) const
inline

Definition at line 965 of file InstrProf.h.

◆ getCutoffEntryBase() [2/2]

Entry* llvm::IndexedInstrProf::Summary::getCutoffEntryBase ( )
inline

Definition at line 970 of file InstrProf.h.

◆ getEntry()

const Entry& llvm::IndexedInstrProf::Summary::getEntry ( uint32_t  I) const
inline

Definition at line 982 of file InstrProf.h.

References I.

◆ getSize()

static uint32_t llvm::IndexedInstrProf::Summary::getSize ( uint32_t  NumSumFields,
uint32_t  NumCutoffEntries 
)
inlinestatic

Definition at line 952 of file InstrProf.h.

Referenced by llvm::IndexedInstrProfReader::hasFormat().

◆ getSummaryDataBase() [1/2]

const uint64_t* llvm::IndexedInstrProf::Summary::getSummaryDataBase ( ) const
inline

Definition at line 957 of file InstrProf.h.

◆ getSummaryDataBase() [2/2]

uint64_t* llvm::IndexedInstrProf::Summary::getSummaryDataBase ( )
inline

Definition at line 961 of file InstrProf.h.

◆ operator delete()

void llvm::IndexedInstrProf::Summary::operator delete ( void *  ptr)
inline

Definition at line 950 of file InstrProf.h.

◆ set()

void llvm::IndexedInstrProf::Summary::set ( SummaryFieldKind  K,
uint64_t  V 
)
inline

Definition at line 978 of file InstrProf.h.

Referenced by setSummary().

◆ setEntry()

void llvm::IndexedInstrProf::Summary::setEntry ( uint32_t  I,
const ProfileSummaryEntry E 
)
inline

Member Data Documentation

◆ NumCutoffEntries

uint64_t llvm::IndexedInstrProf::Summary::NumCutoffEntries

Definition at line 945 of file InstrProf.h.

Referenced by llvm::IndexedInstrProfReader::hasFormat(), and setSummary().

◆ NumSummaryFields

uint64_t llvm::IndexedInstrProf::Summary::NumSummaryFields

Definition at line 943 of file InstrProf.h.

Referenced by llvm::IndexedInstrProfReader::hasFormat(), and setSummary().


The documentation for this struct was generated from the following file: