|
clang 24.0.0git
|
Routes MLIR-side diagnostics emitted during CIR passes, the verifier, and CIR-to-LLVM lowering through the surrounding clang::DiagnosticsEngine. More...
Public Member Functions | |
| CIRDiagnosticHandler (mlir::MLIRContext *ctx, clang::DiagnosticsEngine &diags, clang::SourceManager &srcMgr, clang::FileManager &fileMgr) | |
Routes MLIR-side diagnostics emitted during CIR passes, the verifier, and CIR-to-LLVM lowering through the surrounding clang::DiagnosticsEngine.
MLIR locations carrying file/line/column info are translated to a clang::SourceLocation via the active SourceManager + FileManager so errors surface in the user's preferred format. Locations that cannot be translated fall back to an invalid clang::SourceLocation.
Definition at line 35 of file CIRDiagnosticHandler.h.
| cir::CIRDiagnosticHandler::CIRDiagnosticHandler | ( | mlir::MLIRContext * | ctx, |
| clang::DiagnosticsEngine & | diags, | ||
| clang::SourceManager & | srcMgr, | ||
| clang::FileManager & | fileMgr ) |
Definition at line 28 of file CIRDiagnosticHandler.cpp.