class DiagnosticInfoOptimizationFailure

Declaration

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

Description

Diagnostic information for optimization failures.

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

Inherits from: DiagnosticInfoIROptimization

Member Variables

Inherited from DiagnosticInfoOptimizationBase:

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

Method Overview

Inherited from DiagnosticInfoIROptimization:

Inherited from DiagnosticInfoOptimizationBase:

Inherited from DiagnosticInfoWithLocationBase:

Inherited from DiagnosticInfo:

Methods

DiagnosticInfoOptimizationFailure(
    const llvm::Function& Fn,
    const llvm::DiagnosticLocation& Loc,
    const llvm::Twine& Msg)

Description

\p Fn is the function where the diagnostic is being emitted. \p Loc is the location information to use in the diagnostic. If line table information is available, the diagnostic will include the source code location. \p Msg is the message to show. Note that this class does not copy this message, so this reference must be valid for the whole life time of the diagnostic.

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

Parameters

const llvm::Function& Fn
const llvm::DiagnosticLocation& Loc
const llvm::Twine& Msg

DiagnosticInfoOptimizationFailure(
    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. \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 basic block is supported).

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

Parameters

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

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

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

Parameters

const llvm::DiagnosticInfo* DI

bool isEnabled() const

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