class MachineOptimizationRemark

Declaration

class MachineOptimizationRemark : public DiagnosticInfoMIROptimization { /* full declaration omitted */ };

Description

Diagnostic information for applied optimization remarks.

Declared at: llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h:57

Inherits from: DiagnosticInfoMIROptimization

Member Variables

Inherited from DiagnosticInfoOptimizationBase:

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

Method Overview

  • public MachineOptimizationRemark(const char * PassName, llvm::StringRef RemarkName, const llvm::DiagnosticLocation & Loc, const llvm::MachineBasicBlock * MBB)
  • public static bool classof(const llvm::DiagnosticInfo * DI)
  • public bool isEnabled() const

Inherited from DiagnosticInfoMIROptimization:

Inherited from DiagnosticInfoOptimizationBase:

Inherited from DiagnosticInfoWithLocationBase:

Inherited from DiagnosticInfo:

Methods

MachineOptimizationRemark(
    const char* PassName,
    llvm::StringRef RemarkName,
    const llvm::DiagnosticLocation& Loc,
    const llvm::MachineBasicBlock* MBB)

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. \p Loc is the debug location and \p MBB is the block that the optimization operates in.

Declared at: llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h:64

Parameters

const char* PassName
llvm::StringRef RemarkName
const llvm::DiagnosticLocation& Loc
const llvm::MachineBasicBlock* MBB

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

Declared at: llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h:70

Parameters

const llvm::DiagnosticInfo* DI

bool isEnabled() const

Declared at: llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h:75