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

Name

Description

AnalysisInfoMixin<CtxProfAnalysis>

A CRTP mix‐in that provides informational APIs needed for analysis passes.

Type Aliases

Name

Description

Result

The analysis result type; an instrumented contextual profile.

Member Functions

Name

Description

CtxProfAnalysis [constructor]

Construct the analysis, optionally loading a profile from Profile.

run

Run the contextual profile analysis on module M.

Static Member Functions

Name

Description

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

Name

Description

Key

Analysis key for CtxProfAnalysis.

Created with MrDocs