Profiling information for a single function.

Synopsis

Declared in <llvm/ProfileData/InstrProf.h>

struct InstrProfRecord;

Enums

Name

Description

CountPseudoKind

Pseudo hot/warm classification encoded in the first counter.

PseudoCountVal

Sentinel counter values used to encode pseudo hot/warm.

Member Functions

Name

Description

InstrProfRecord [constructor]

Constructors

operator=

Assignment operators

Clear

Clear value data entries, edge counters, and uniformity data.

accumulateCounts

Accumulate all counts into Sum.

addValueData

Add value data for ValueKind at site Site.

clearValueData

Clear value data entries

computeBlockUniformity

Recompute uniformity metadata from raw uniform counters, when present.

getCountPseudoKind

Return whether the first counter encodes a pseudo hot/warm kind.

getNumValueData

Return the total number of ValueData entries for ValueKind.

getNumValueKinds

Return the number of value profile kinds with non‐zero number of profile sites.

getNumValueSites

Return the number of instrumented sites for ValueKind.

getValueArrayForSite

Return the array of profiled values at site Site.

isBlockUniform

Return true if basic block BlockIdx is entered wave‐uniformly.

merge

Merge the counts in Other into this record.

overlap

Compute overlap between this record and Other.

overlapValueProfData

Compute overlap of value‐profile counts for ValueKind.

reserveSites

Reserve space for NumValueSites sites of kind ValueKind.

scale

Scale profile counts (including value data) by N / D.

setPseudoCount

Encode pseudo hot/warm kind Kind into the first counter.

sortValueData

Sort value profile data (per site) by count.

Data Members

Name

Description

BitmapBytes

Bitmap bytes used by coverage / MC/DC instrumentation.

Counts

Per‐block or per‐edge execution counts.

OffloadDeviceWaveSize

Wave size of the offload device that produced uniformity data, if any.

UniformCounts

For AMDGPU offload profiling: raw or merged uniform counters. One uint64_t per instrumented block, tracking entries where all lanes were active.

UniformityBits

Per‐block wave‐uniformity bits for AMDGPU offload profiling.

Derived Classes

Name

Description

NamedInstrProfRecord

InstrProfRecord annotated with the function's PGO name and hash.

Created with MrDocs