Reader for the indexed binary instrprof format.

Synopsis

Declared in <llvm/ProfileData/InstrProfReader.h>

class IndexedInstrProfReader
    : public InstrProfReader

Base Classes

Name

Description

InstrProfReader

Base class and interface for reading profiling data of any known instrprof format. Provides an iterator over NamedInstrProfRecords.

Member Functions

Name

Description

IndexedInstrProfReader [constructor]

Constructors

operator= [deleted]

Deleted copy assignment.

accumulateCounts

Compute the sum of counts and return in Sum.

begin

Iterator over profile data.

end

Return an end iterator for the profile data.

functionEntryOnly [virtual]

Return true if the profile only instruments function entries.

getAllMemProfData

Return the entire MemProf profile.

getDataAccessProfileData

Returns non‐owned pointer to the data access profile data. Will be null if unavailable (version < 4).

getError

Get the current error.

getFunctionBitmap

Fill Bitmap with the profile data for the given function name.

getFunctionCounts

Fill Counts with the profile data for the given function name.

getInstrProfRecord

Return the NamedInstrProfRecord for FuncName and FuncHash.

getMaximumFunctionCount

Return the maximum of all known function counts.

getMemProfCallerCalleePairs

Return caller‐callee pairs derived from the MemProf call graph.

getMemProfRecord

Return the memprof record for the function identified by llvm::md5(Name).

getMemProfSummary

Return the MemProf summary. Will be null if unavailable (version < 4).

getProfileKind [virtual]

Returns a BitsetEnum describing the attributes of the indexed instr profile.

getSummary

Return the profile summary.

getSymtab [virtual]

Return the PGO symbol table.

getTemporalProfTraceStreamSize

Return the total number of temporal profile traces seen.

getTemporalProfTraces [virtual]

Return the temporal profile traces.

getVersion [virtual]

Return the profile version.

hasCSIRLevelProfile [virtual]

Return true if this is a context‐sensitive IR‐level profile.

hasError

Return true if the reader encountered an error reading profiling data.

hasMemoryProfile [virtual]

Return true if profile includes a memory profile.

hasSingleByteCoverage [virtual]

Return true if the profile has single byte counters representing coverage.

hasTemporalProfile [virtual]

Return true if this has a temporal profile.

instrEntryBBEnabled [virtual]

Return true if the profile instruments function entries.

instrLoopEntriesEnabled [virtual]

Return true if the profile instruments all loop entries.

isEOF

Return true if the reader has finished reading the profile data.

isIRLevelProfile [virtual]

Return true if this is an IR‐level instrumentation profile.

printBinaryIds [virtual]

Print binary ids.

readBinaryIds [virtual]

Read a list of binary ids.

readHeader [virtual]

Read the file header.

readNextRecord [virtual]

Read a single record.

setValueProfDataEndianness

Set the endianness used when reading value profile data (testing only).

Static Member Functions

Name

Description

create

create overloads

hasFormat

Return true if the given buffer is in an indexed instrprof format.

Protected Member Functions

Name

Description

error

error overloads

success

Clear the current error and return a successful one.

Protected Data Members

Name

Description

Symtab

Optional PGO symbol table owned by the reader.

TemporalProfTraceStreamSize

The total number of temporal profile traces seen.

TemporalProfTraces

A list of temporal profile traces.

Created with MrDocs