class DiagnosticInfoInlineAsm

Declaration

class DiagnosticInfoInlineAsm : public DiagnosticInfo { /* full declaration omitted */ };

Description

Diagnostic information for inline asm reporting. This is basically a message and an optional location.

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

Inherits from: DiagnosticInfo

Member Variables

private uint64_t LocCookie = 0
Optional line information. 0 if not set.
private const llvm::Twine& MsgStr
Message to be reported.
private const llvm::Instruction* Instr = nullptr
Optional origin of the problem.

Method Overview

  • public DiagnosticInfoInlineAsm(const llvm::Twine & MsgStr, llvm::DiagnosticSeverity Severity = DS_Error)
  • public DiagnosticInfoInlineAsm(uint64_t LocCookie, const llvm::Twine & MsgStr, llvm::DiagnosticSeverity Severity = DS_Error)
  • public DiagnosticInfoInlineAsm(const llvm::Instruction & I, const llvm::Twine & MsgStr, llvm::DiagnosticSeverity Severity = DS_Error)
  • public static bool classof(const llvm::DiagnosticInfo * DI)
  • public const llvm::Instruction * getInstruction() const
  • public uint64_t getLocCookie() const
  • public const llvm::Twine & getMsgStr() const
  • public void print(llvm::DiagnosticPrinter & DP) const

Inherited from DiagnosticInfo:

Methods

DiagnosticInfoInlineAsm(
    const llvm::Twine& MsgStr,
    llvm::DiagnosticSeverity Severity = DS_Error)

Description

\p MsgStr is the message to be reported to the frontend. This class does not copy \p MsgStr, therefore the reference must be valid for the whole life time of the Diagnostic.

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

Parameters

const llvm::Twine& MsgStr
llvm::DiagnosticSeverity Severity = DS_Error

DiagnosticInfoInlineAsm(
    uint64_t LocCookie,
    const llvm::Twine& MsgStr,
    llvm::DiagnosticSeverity Severity = DS_Error)

Description

\p LocCookie if non-zero gives the line number for this report.\p MsgStr gives the message. This class does not copy \p MsgStr, therefore the reference must be valid for the whole life time of the Diagnostic.

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

Parameters

uint64_t LocCookie
const llvm::Twine& MsgStr
llvm::DiagnosticSeverity Severity = DS_Error

DiagnosticInfoInlineAsm(
    const llvm::Instruction& I,
    const llvm::Twine& MsgStr,
    llvm::DiagnosticSeverity Severity = DS_Error)

Description

\p Instr gives the original instruction that triggered the diagnostic.\p MsgStr gives the message. This class does not copy \p MsgStr, therefore the reference must be valid for the whole life time of the Diagnostic. Same for \p I.

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

Parameters

const llvm::Instruction& I
const llvm::Twine& MsgStr
llvm::DiagnosticSeverity Severity = DS_Error

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

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

Parameters

const llvm::DiagnosticInfo* DI

const llvm::Instruction* getInstruction() const

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

uint64_t getLocCookie() const

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

const llvm::Twine& getMsgStr() const

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

void print(llvm::DiagnosticPrinter& DP) const

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

Parameters

llvm::DiagnosticPrinter& DP