LLVM 22.0.0git
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:
[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 115 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ DiagnosticInfo()

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

Definition at line 124 of file DiagnosticInfo.h.

Referenced by llvm::DiagnosticInfoDebugMetadataVersion::classof(), llvm::DiagnosticInfoDontCall::classof(), llvm::DiagnosticInfoGeneric::classof(), llvm::DiagnosticInfoIgnoringInvalidDebugMetadata::classof(), llvm::DiagnosticInfoInlineAsm::classof(), llvm::DiagnosticInfoInstrumentation::classof(), llvm::DiagnosticInfoISelFallback::classof(), llvm::DiagnosticInfoMIRParser::classof(), llvm::DiagnosticInfoPGOProfile::classof(), llvm::DiagnosticInfoSampleProfile::classof(), llvm::DiagnosticInfoSrcMgr::classof(), llvm::DiagnosticInfoDebugMetadataVersion::DiagnosticInfoDebugMetadataVersion(), llvm::DiagnosticInfoDontCall::DiagnosticInfoDontCall(), llvm::DiagnosticInfoGeneric::DiagnosticInfoGeneric(), llvm::DiagnosticInfoGeneric::DiagnosticInfoGeneric(), llvm::DiagnosticInfoIgnoringInvalidDebugMetadata::DiagnosticInfoIgnoringInvalidDebugMetadata(), llvm::DiagnosticInfoInstrumentation::DiagnosticInfoInstrumentation(), llvm::DiagnosticInfoISelFallback::DiagnosticInfoISelFallback(), llvm::DiagnosticInfoMIRParser::DiagnosticInfoMIRParser(), llvm::DiagnosticInfoPGOProfile::DiagnosticInfoPGOProfile(), llvm::DiagnosticInfoSampleProfile::DiagnosticInfoSampleProfile(), llvm::DiagnosticInfoSampleProfile::DiagnosticInfoSampleProfile(), llvm::DiagnosticInfoSampleProfile::DiagnosticInfoSampleProfile(), llvm::DiagnosticInfoSrcMgr::DiagnosticInfoSrcMgr(), llvm::DiagnosticInfoWithLocationBase::DiagnosticInfoWithLocationBase(), and llvm::LinkDiagnosticInfo::LinkDiagnosticInfo().

◆ ~DiagnosticInfo()

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

Member Function Documentation

◆ getKind()

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

Definition at line 129 of file DiagnosticInfo.h.

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

◆ getSeverity()

◆ print()


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