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

Synopsis

Declared in <llvm/ProfileData/InstrProf.h>

struct NamedInstrProfRecord
    : InstrProfRecord

Base Classes

Name

Description

InstrProfRecord

Profiling information for a single function.

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

NamedInstrProfRecord [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.

Static Member Functions

Name

Description

hasCSFlagInHash

Return true if FuncHash has the context‐sensitive flag set.

setCSFlagInHash

Set the context‐sensitive flag bit in FuncHash.

Data Members

Name

Description

BitmapBytes

Bitmap bytes used by coverage / MC/DC instrumentation.

Counts

Per‐block or per‐edge execution counts.

Hash

Structural / PGO hash of the function, including flag bits.

Name

PGO name of the profiled function.

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.

Static Data Members

Name

Description

CS_FLAG_IN_FUNC_HASH

Bit index in Hash that marks a context‐sensitive profile record.

FUNC_HASH_MASK

Mask of hash bits that encode the function identity (excludes flag bits).

Created with MrDocs