class DiagnosticInfoUnsupported

Declaration

class DiagnosticInfoUnsupported
    : public DiagnosticInfoWithLocationBase { /* full declaration omitted */ };

Description

Diagnostic information for unsupported feature in backend.

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

Inherits from: DiagnosticInfoWithLocationBase

Method Overview

  • public DiagnosticInfoUnsupported(const llvm::Function & Fn, const llvm::Twine & Msg, const llvm::DiagnosticLocation & Loc = llvm::DiagnosticLocation(), llvm::DiagnosticSeverity Severity = DS_Error)
  • public static bool classof(const llvm::DiagnosticInfo * DI)
  • public const llvm::Twine & getMessage() const
  • public void print(llvm::DiagnosticPrinter & DP) const

Inherited from DiagnosticInfoWithLocationBase:

Inherited from DiagnosticInfo:

Methods

DiagnosticInfoUnsupported(
    const llvm::Function& Fn,
    const llvm::Twine& Msg,
    const llvm::DiagnosticLocation& Loc =
        llvm::DiagnosticLocation(),
    llvm::DiagnosticSeverity Severity = DS_Error)

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:991

Parameters

const llvm::Function& Fn
const llvm::Twine& Msg
const llvm::DiagnosticLocation& Loc = llvm::DiagnosticLocation()
llvm::DiagnosticSeverity Severity = DS_Error

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

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

Parameters

const llvm::DiagnosticInfo* DI

const llvm::Twine& getMessage() const

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

void print(llvm::DiagnosticPrinter& DP) const

Description

Print using the given \p DP a user-friendly message. This is the default message that will be printed to the user. It is used when the frontend does not directly take advantage of the information contained in fields of the subclasses. The printed message must not end with '.' nor start with a severity keyword.

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

Parameters

llvm::DiagnosticPrinter& DP