class OptimizationRemarkMissed

Declaration

class OptimizationRemarkMissed : public DiagnosticInfoIROptimization { /* full declaration omitted */ };

Description

Diagnostic information for missed-optimization remarks.

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:717

Inherits from: DiagnosticInfoIROptimization

Member Variables

Inherited from DiagnosticInfoOptimizationBase:

protected PassName
protected RemarkName
protected Hotness
protected Args
protected IsVerbose = false
protected FirstExtraArgIndex = -1

Method Overview

  • public OptimizationRemarkMissed(const char * PassName, llvm::StringRef RemarkName, const llvm::DiagnosticLocation & Loc, const llvm::Value * CodeRegion)
  • public OptimizationRemarkMissed(const char * PassName, llvm::StringRef RemarkName, const llvm::Instruction * Inst)
  • public static bool classof(const llvm::DiagnosticInfo * DI)
  • public bool isEnabled() const

Inherited from DiagnosticInfoIROptimization:

Inherited from DiagnosticInfoOptimizationBase:

Inherited from DiagnosticInfoWithLocationBase:

Inherited from DiagnosticInfo:

Methods

OptimizationRemarkMissed(
    const char* PassName,
    llvm::StringRef RemarkName,
    const llvm::DiagnosticLocation& Loc,
    const llvm::Value* CodeRegion)

Description

\p PassName is the name of the pass emitting this diagnostic. If this name matches the regular expression given in -Rpass-missed=, then the diagnostic will be emitted. \p RemarkName is a textual identifier for the remark (single-word, camel-case). \p Loc is the debug location and \p CodeRegion is the region that the optimization operates on (currently only block is supported).

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:725

Parameters

const char* PassName
llvm::StringRef RemarkName
const llvm::DiagnosticLocation& Loc
const llvm::Value* CodeRegion

OptimizationRemarkMissed(
    const char* PassName,
    llvm::StringRef RemarkName,
    const llvm::Instruction* Inst)

Description

Same as above but \p Inst is used to derive code region and debug location.

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:731

Parameters

const char* PassName
llvm::StringRef RemarkName
const llvm::Instruction* Inst

static bool classof(
    const llvm::DiagnosticInfo* DI)

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:734

Parameters

const llvm::DiagnosticInfo* DI

bool isEnabled() const

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:739