Construct an optimization remark diagnostic.

Synopsis

Declared in <llvm/IR/DiagnosticInfo.h>

DiagnosticInfoOptimizationBase(
    DiagnosticKind Kind,
    DiagnosticSeverity Severity,
    char const* PassName,
    StringRef RemarkName,
    Function const& Fn,
    DiagnosticLocation const& Loc);

Parameters

Name

Description

Kind

Diagnostic kind

Severity

Severity of this diagnostic

PassName

Name of the pass emitting this diagnostic

RemarkName

Textual identifier for the remark (single‐word, CamelCase)

Fn

Function where the diagnostic is being emitted

Loc

Location information to use in the diagnostic. If line table information is available, the diagnostic will include the source code location.

Created with MrDocs