LLVM 20.0.0git
Public Member Functions | List of all members
llvm::DiagnosticInfo Class Referenceabstract

This is the base abstract class for diagnostic reporting in the backend. More...

#include "llvm/IR/DiagnosticInfo.h"

Inheritance diagram for llvm::DiagnosticInfo:
Inheritance graph
[legend]

Public Member Functions

 DiagnosticInfo (int Kind, DiagnosticSeverity Severity)
 
virtual ~DiagnosticInfo ()=default
 
int getKind () const
 
DiagnosticSeverity getSeverity () const
 
virtual void print (DiagnosticPrinter &DP) const =0
 Print using the given DP a user-friendly message.
 

Detailed Description

This is the base abstract class for diagnostic reporting in the backend.

The print method must be overloaded by the subclasses to print a user-friendly message in the client of the backend (let us call it a frontend).

Definition at line 112 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ DiagnosticInfo()

llvm::DiagnosticInfo::DiagnosticInfo ( int  Kind,
DiagnosticSeverity  Severity 
)
inline

Definition at line 121 of file DiagnosticInfo.h.

◆ ~DiagnosticInfo()

virtual llvm::DiagnosticInfo::~DiagnosticInfo ( )
virtualdefault

Member Function Documentation

◆ getKind()

int llvm::DiagnosticInfo::getKind ( ) const
inline

Definition at line 126 of file DiagnosticInfo.h.

Referenced by llvm::DiagnosticInfoMIROptimization::classof(), llvm::MachineOptimizationRemark::classof(), llvm::MachineOptimizationRemarkMissed::classof(), llvm::MachineOptimizationRemarkAnalysis::classof(), llvm::DiagnosticInfoGeneric::classof(), llvm::DiagnosticInfoInlineAsm::classof(), llvm::DiagnosticInfoDebugMetadataVersion::classof(), llvm::DiagnosticInfoIgnoringInvalidDebugMetadata::classof(), llvm::DiagnosticInfoSampleProfile::classof(), llvm::DiagnosticInfoPGOProfile::classof(), llvm::DiagnosticInfoGenericWithLoc::classof(), llvm::DiagnosticInfoRegAllocFailure::classof(), llvm::DiagnosticInfoResourceLimit::classof(), llvm::DiagnosticInfoStackSize::classof(), llvm::DiagnosticInfoOptimizationBase::classof(), llvm::DiagnosticInfoIROptimization::classof(), llvm::OptimizationRemark::classof(), llvm::OptimizationRemarkMissed::classof(), llvm::OptimizationRemarkAnalysis::classof(), llvm::OptimizationRemarkAnalysisFPCommute::classof(), llvm::OptimizationRemarkAnalysisAliasing::classof(), llvm::DiagnosticInfoMIRParser::classof(), llvm::DiagnosticInfoInstrumentation::classof(), llvm::DiagnosticInfoISelFallback::classof(), llvm::DiagnosticInfoOptimizationFailure::classof(), llvm::DiagnosticInfoUnsupported::classof(), llvm::DiagnosticInfoMisExpect::classof(), llvm::DiagnosticInfoSrcMgr::classof(), llvm::DiagnosticInfoDontCall::classof(), llvm::DiagnosticInfoOptimizationBase::isAnalysis(), llvm::DiagnosticInfoOptimizationBase::isMissed(), and llvm::DiagnosticInfoOptimizationBase::isPassed().

◆ getSeverity()

DiagnosticSeverity llvm::DiagnosticInfo::getSeverity ( ) const
inline

◆ print()

virtual void llvm::DiagnosticInfo::print ( DiagnosticPrinter DP) const
pure virtual

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