The instrumented contextual profile, produced by the CtxProfAnalysis.

Synopsis

Declared in <llvm/Analysis/CtxProfAnalysis.h>

class PGOContextualProfile;

Type Aliases

Name

Description

ConstVisitor

Callback type for read‐only walks over contextual profile nodes.

Visitor

Callback type for mutable walks over contextual profile nodes.

Member Functions

Name

Description

PGOContextualProfile [constructor]

Constructors

allocateNextCallsiteIndex

Allocate and return the next callsite index for function F.

allocateNextCounterIndex

Allocate and return the next counter index for function F.

contexts

Return the contextual profiles keyed by root GUID.

flatten

Flatten contextual profiles into a GUID‐to‐counter‐vector map.

flattenVirtCalls

Flatten virtual/indirect call targets from the contextual profile.

getFunctionName

Return the name recorded for function GUID GUID, or empty if unknown.

getNumCallsites

Return the number of callsite indices allocated for function F.

getNumCounters

Return the number of counter indices allocated for function F.

invalidate

Handle invalidation of this analysis result.

isFunctionKnown

Return whether F is defined in this module and known to the profile.

isInSpecializedModule

Return whether this module only contains functions in contextual profiles.

profiles

Return the full contextual profile, including flat and contextual data.

update

Apply V to the contextual profile node for function F.

visit

Visit contextual profile nodes, optionally limited to function F.

Friends

Name

Description

llvm::CtxProfAnalysisPrinterPass

Printer pass for the CtxProfAnalysis results.

llvm::CtxProfAnalysis

Analysis that loads and maintains contextual PGO profiles for a module.

Created with MrDocs