Abstract base class for backend diagnostic reporting.
Declared in <llvm/IR/DiagnosticInfo.h>
class DiagnosticInfo;
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).
| Name | Description |
|---|---|
DiagnosticInfo [constructor] | Construct a diagnostic with the given kind and severity. |
~DiagnosticInfo [destructor] [virtual] | Destroy the diagnostic. |
getKind | Return the kind of this diagnostic. |
getSeverity | Return the severity of this diagnostic. |
print [virtual] | Print a user-friendly message using DP. |
| Name | Description |
|---|---|
unwrap | Convert an opaque LLVMDiagnosticInfoRef to a DiagnosticInfo pointer. |
wrap | Convert a DiagnosticInfo pointer to an opaque LLVMDiagnosticInfoRef. |
| Name | Description |
|---|---|
DiagnosticInfoDebugMetadataVersion | Diagnostic information for debug metadata version reporting. This is basically a module and a version. |
DiagnosticInfoDontCall | Diagnostic for a call that violates a dontcall attribute. |
DiagnosticInfoGeneric | Generic diagnostic carrying a message and optional instruction. |
DiagnosticInfoISelFallback | Diagnostic information for ISel fallback path. |
DiagnosticInfoIgnoringInvalidDebugMetadata | Diagnostic information for stripping invalid debug metadata. |
DiagnosticInfoInlineAsm | Diagnostic information for inline asm reporting. This is basically a message and an optional location. |
DiagnosticInfoInstrumentation | Diagnostic information for IR instrumentation reporting. |
DiagnosticInfoMIRParser | Diagnostic information for machine IR parser. |
DiagnosticInfoPGOProfile | Diagnostic information for the PGO profiler. |
DiagnosticInfoSampleProfile | Diagnostic information for the sample profiler. |
DiagnosticInfoSrcMgr | Diagnostic information for SMDiagnostic reporting. |
DiagnosticInfoWithLocationBase | Common features for diagnostics with an associated location. |