Constructors

Synopses

Declared in <llvm/IR/DiagnosticInfo.h>

Construct a remark deriving location from function Func.

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

Construct a remark deriving location from instruction Inst.

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

Construct an optimization remark for the given pass and code region.

OptimizationRemark(
    char const* PassName,
    StringRef RemarkName,
    DiagnosticLocation const& Loc,
    BasicBlock const* CodeRegion);

Parameters

Name

Description

PassName

Name of the pass emitting this diagnostic

RemarkName

Textual identifier for the remark

Func

Function used to derive debug location and code region

Inst

Instruction used to derive debug location and code region

Loc

Debug location for the remark

CodeRegion

Region that the optimization operates on

Created with MrDocs