llvm::PassInstrumentationCallbacks

This class manages callbacks registration, as well as provides a way for PassInstrumentation to pass control to the registered callbacks.

Synopsis

Declared in <llvm/IR/PassInstrumentation.h>

class PassInstrumentationCallbacks;

Type Aliases

NameDescription
AfterAnalysisFunc Callback type invoked after an analysis has finished.
AfterPassFunc Callback type invoked after a pass has finished on valid IR.
AfterPassInvalidatedFunc Callback type invoked after a pass has finished on invalidated IR.
AnalysesClearedFunc Callback type invoked when all analyses on an IR unit are cleared.
AnalysisInvalidatedFunc Callback type invoked when an analysis result is invalidated.
BeforeAnalysisFunc Callback type invoked just before an analysis runs.
BeforeNonSkippedPassFunc Callback type invoked just before a non-skipped pass runs.
BeforePassFunc Callback type that decides whether an optional pass should run.
BeforeSkippedPassFunc Callback type invoked when a pass is skipped.

Member Functions

NameDescription
PassInstrumentationCallbacks [constructor]Constructors
operator= [deleted]Copy assignment of PassInstrumentationCallbacks is not intended.
addClassToPassName Add a class name to pass name mapping for use by pass instrumentation.
getPassNameForClassName Get the pass name for a given pass class name. Empty if no match found.
registerAfterAnalysisCallback Register a callback invoked after an analysis finishes.
registerAfterPassCallback Register a callback invoked after a pass finishes on valid IR.
registerAfterPassInvalidatedCallback Register a callback invoked after a pass finishes on invalidated IR.
registerAnalysesClearedCallback Register a callback invoked when all analyses on an IR unit are cleared.
registerAnalysisInvalidatedCallback Register a callback invoked when an analysis result is invalidated.
registerBeforeAnalysisCallback Register a callback invoked just before an analysis runs.
registerBeforeNonSkippedPassCallback Register a callback invoked just before a non-skipped pass runs.
registerBeforeSkippedPassCallback Register a callback invoked when a pass is skipped.
registerClassToPassNameCallback Register a callback that fills class-name to pass-name mappings.
registerShouldRunOptionalPassCallback Register a callback that decides whether an optional pass should run.

Friends

NameDescription
llvm::PassInstrumentationThis class provides instrumentation entry points for the Pass Manager, doing calls to callbacks registered in PassInstrumentationCallbacks.

Non-Member Functions

NameDescription
registerCodeGenCallbackRegister codegen-related pass instrumentation callbacks.