llvm::CtxProfAnalysis

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

Synopsis

Declared in <llvm/Analysis/CtxProfAnalysis.h>

class CtxProfAnalysis
    : public AnalysisInfoMixin<CtxProfAnalysis>

Base Classes

NameDescription
AnalysisInfoMixin<CtxProfAnalysis>A CRTP mix-in that provides informational APIs needed for analysis passes.

Type Aliases

NameDescription
Result The analysis result type; an instrumented contextual profile.

Member Functions

NameDescription
CtxProfAnalysis [constructor]Construct the analysis, optionally loading a profile from Profile.
run Run the contextual profile analysis on module M.

Static Member Functions

NameDescription
ID Returns an opaque, unique ID for this analysis type.
collectIndirectCallPromotionList Collect candidate direct callees for promoting indirect call IC.
getBBInstrumentation Get the instruction instrumenting a BB, or nullptr if not present.
getCallsiteInstrumentation Get the instruction instrumenting a callsite, or nullptr if that cannot be found.
getSelectInstrumentation Get the step instrumentation associated with a select

Static Data Members

NameDescription
Key Analysis key for CtxProfAnalysis.