The optimization diagnostic interface.

Synopsis

Declared in <llvm/Analysis/OptimizationRemarkEmitter.h>

class OptimizationRemarkEmitter;

Description

It allows reporting when optimizations are performed and when they are not along with the reasons for it. Hotness information of the corresponding code region can be included in the remark if DiagnosticsHotnessRequested is enabled in the LLVM context.

Member Functions

Name

Description

OptimizationRemarkEmitter [constructor]

Constructors

operator=

Move‐assign from RHS.

allowExtraAnalysis

Whether we allow for extra compile‐time budget to perform more analysis to produce fewer false positives.

emit

emit overloads

enabled

Return true iff at least some remarks are enabled.

invalidate

Handle invalidation events in the new pass manager.

Static Member Functions

Name

Description

allowExtraAnalysis

allowExtraAnalysis overloads

Non-Member Functions

Name

Description

emitInlinedInto

Emit an ORE message that Callee was inlined into Caller.

emitInlinedIntoBasedOnCost

Emit an ORE inlined‐into message based on default‐heuristic cost IC.

Created with MrDocs