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

#include <InstrProf.h>

Collaboration diagram for llvm::IndexedInstrProf::Summary:
[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

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)
 
 Summary (uint32_t Size)
 
void operator delete (void *ptr)
 
 Summary ()=delete
 

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 818 of file InstrProf.h.

Member Enumeration Documentation

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 829 of file InstrProf.h.

Constructor & Destructor Documentation

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

Definition at line 887 of file InstrProf.h.

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

Referenced by getSize().

Member Function Documentation

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

Definition at line 871 of file InstrProf.h.

References getSummaryDataBase().

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

Definition at line 863 of file InstrProf.h.

References getSummaryDataBase(), and NumSummaryFields.

Referenced by getEntry(), and setEntry().

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

Definition at line 867 of file InstrProf.h.

References getSummaryDataBase(), and NumSummaryFields.

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

Definition at line 879 of file InstrProf.h.

References getCutoffEntryBase(), and I.

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

Definition at line 852 of file InstrProf.h.

References Summary().

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

Definition at line 857 of file InstrProf.h.

Referenced by get(), getCutoffEntryBase(), and set().

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

Definition at line 860 of file InstrProf.h.

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

Definition at line 888 of file InstrProf.h.

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

Definition at line 875 of file InstrProf.h.

References getSummaryDataBase().

Referenced by setSummary().

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

Member Data Documentation

uint64_t llvm::IndexedInstrProf::Summary::NumCutoffEntries

Definition at line 850 of file InstrProf.h.

Referenced by setSummary().

uint64_t llvm::IndexedInstrProf::Summary::NumSummaryFields

Definition at line 848 of file InstrProf.h.

Referenced by getCutoffEntryBase(), and setSummary().


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