LLVM
8.0.1
|
This is the base abstract class for diagnostic reporting in the backend. More...
#include "llvm/IR/DiagnosticInfo.h"
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. More... | |
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 97 of file DiagnosticInfo.h.
|
inline |
Definition at line 106 of file DiagnosticInfo.h.
References ~DiagnosticInfo().
|
virtualdefault |
Referenced by DiagnosticInfo().
|
inline |
Definition at line 111 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoMIROptimization::classof(), llvm::MachineOptimizationRemark::classof(), llvm::MachineOptimizationRemarkMissed::classof(), llvm::MachineOptimizationRemarkAnalysis::classof(), llvm::DiagnosticInfoInlineAsm::classof(), llvm::DiagnosticInfoResourceLimit::classof(), llvm::DiagnosticInfoStackSize::classof(), llvm::DiagnosticInfoDebugMetadataVersion::classof(), llvm::DiagnosticInfoIgnoringInvalidDebugMetadata::classof(), llvm::DiagnosticInfoSampleProfile::classof(), llvm::DiagnosticInfoPGOProfile::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::DiagnosticInfoISelFallback::classof(), llvm::DiagnosticInfoOptimizationFailure::classof(), llvm::DiagnosticInfoUnsupported::classof(), llvm::DiagnosticInfoOptimizationBase::getMsg(), llvm::DiagnosticInfoOptimizationBase::isAnalysis(), llvm::DiagnosticInfoOptimizationBase::isMissed(), and llvm::DiagnosticInfoOptimizationBase::isPassed().
|
inline |
Definition at line 112 of file DiagnosticInfo.h.
References print().
Referenced by llvm::LLVMContext::diagnose(), llvm::LTOCodeGenerator::DiagnosticHandler(), and llvm::DiagnosticInfoOptimizationFailure::isEnabled().
|
pure virtual |
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.
Implemented in llvm::DiagnosticInfoUnsupported, llvm::DiagnosticInfoISelFallback, llvm::DiagnosticInfoMIRParser, llvm::DiagnosticInfoOptimizationBase, llvm::DiagnosticInfoPGOProfile, llvm::DiagnosticInfoSampleProfile, llvm::DiagnosticInfoIgnoringInvalidDebugMetadata, llvm::DiagnosticInfoDebugMetadataVersion, llvm::DiagnosticInfoResourceLimit, llvm::DiagnosticInfoInlineAsm, and llvm::LinkDiagnosticInfo.
Referenced by llvm::LLVMContext::diagnose(), llvm::LTOCodeGenerator::DiagnosticHandler(), llvm::DiagnosticInfoOptimizationBase::DiagnosticInfoOptimizationBase(), llvm::DiagnosticInfoPGOProfile::DiagnosticInfoPGOProfile(), llvm::DiagnosticInfoSampleProfile::DiagnosticInfoSampleProfile(), llvm::DiagnosticInfoMIRParser::getDiagnostic(), llvm::DiagnosticInfoISelFallback::getFunction(), llvm::DiagnosticInfoInlineAsm::getInstruction(), llvm::DiagnosticInfoUnsupported::getMessage(), llvm::DiagnosticInfoDebugMetadataVersion::getMetadataVersion(), llvm::DiagnosticInfoIgnoringInvalidDebugMetadata::getModule(), llvm::DiagnosticInfoResourceLimit::getResourceLimit(), and getSeverity().