class OptimizationRemark

Declaration

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

Description

Diagnostic information for applied optimization remarks.

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

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 OptimizationRemark(const char * PassName, llvm::StringRef RemarkName, const llvm::DiagnosticLocation & Loc, const llvm::Value * CodeRegion)
  • public OptimizationRemark(const char * PassName, llvm::StringRef RemarkName, const llvm::Instruction * Inst)
  • public OptimizationRemark(const char * PassName, llvm::StringRef RemarkName, const llvm::Function * Func)
  • 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

OptimizationRemark(
    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=, 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:680

Parameters

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

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

Description

Same as above, but the debug location and code region are derived from \p Instr.

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

Parameters

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

OptimizationRemark(const char* PassName,
                   llvm::StringRef RemarkName,
                   const llvm::Function* Func)

Description

Same as above, but the debug location and code region are derived from \p Func.

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

Parameters

const char* PassName
llvm::StringRef RemarkName
const llvm::Function* Func

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

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

Parameters

const llvm::DiagnosticInfo* DI

bool isEnabled() const

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