LLVM 23.0.0git
llvm::DiagnosticInfoUnsupportedTargetIntrinsic Class Reference

Diagnostic information for unsupported target intrinsics in backend. More...

#include "llvm/IR/DiagnosticInfo.h"

Inheritance diagram for llvm::DiagnosticInfoUnsupportedTargetIntrinsic:
[legend]

Public Member Functions

 DiagnosticInfoUnsupportedTargetIntrinsic (const Function &Fn, unsigned IntrinsicID, const DiagnosticLocation &Loc=DiagnosticLocation())
unsigned getIntrinsicID () const
StringRef getRequiredFeatures () const
std::string getMessage () const
void print (DiagnosticPrinter &DP) const override
 Print using the given DP a user-friendly message.
Public Member Functions inherited from llvm::DiagnosticInfoWithLocationBase
 DiagnosticInfoWithLocationBase (enum DiagnosticKind Kind, enum DiagnosticSeverity Severity, const Function &Fn, const DiagnosticLocation &Loc)
 Fn is the function where the diagnostic is being emitted.
bool isLocationAvailable () const
 Return true if location information is available for this diagnostic.
std::string getLocationStr () const
 Return a string with the location information for this diagnostic in the format "file:line:col".
void getLocation (StringRef &RelativePath, unsigned &Line, unsigned &Column) const
 Return location information for this diagnostic in three parts: the relative source file path, line number and column.
std::string getAbsolutePath () const
 Return the absolute path tot the file.
const FunctiongetFunction () const
DiagnosticLocation getLocation () const
Public Member Functions inherited from llvm::DiagnosticInfo
 DiagnosticInfo (int Kind, DiagnosticSeverity Severity)
virtual ~DiagnosticInfo ()=default
int getKind () const
DiagnosticSeverity getSeverity () const

Static Public Member Functions

static bool classof (const DiagnosticInfo *DI)

Detailed Description

Diagnostic information for unsupported target intrinsics in backend.

Definition at line 1132 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ DiagnosticInfoUnsupportedTargetIntrinsic()

DiagnosticInfoUnsupportedTargetIntrinsic::DiagnosticInfoUnsupportedTargetIntrinsic ( const Function & Fn,
unsigned IntrinsicID,
const DiagnosticLocation & Loc = DiagnosticLocation() )

Member Function Documentation

◆ classof()

bool llvm::DiagnosticInfoUnsupportedTargetIntrinsic::classof ( const DiagnosticInfo * DI)
inlinestatic

◆ getIntrinsicID()

unsigned llvm::DiagnosticInfoUnsupportedTargetIntrinsic::getIntrinsicID ( ) const
inline

Definition at line 1147 of file DiagnosticInfo.h.

◆ getMessage()

std::string DiagnosticInfoUnsupportedTargetIntrinsic::getMessage ( ) const

Definition at line 435 of file DiagnosticInfo.cpp.

References llvm::Intrinsic::getBaseName().

Referenced by print().

◆ getRequiredFeatures()

StringRef llvm::DiagnosticInfoUnsupportedTargetIntrinsic::getRequiredFeatures ( ) const
inline

Definition at line 1148 of file DiagnosticInfo.h.

◆ print()

void DiagnosticInfoUnsupportedTargetIntrinsic::print ( DiagnosticPrinter & DP) const
overridevirtual

Print using the given 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.

Implements llvm::DiagnosticInfo.

Definition at line 442 of file DiagnosticInfo.cpp.

References llvm::DiagnosticInfoWithLocationBase::getFunction(), llvm::Function::getFunctionType(), llvm::DiagnosticInfoWithLocationBase::getLocationStr(), getMessage(), and llvm::Value::printAsOperand().


The documentation for this class was generated from the following files: