clang 24.0.0git
cir::CIRDiagnosticHandler Class Reference

Routes MLIR-side diagnostics emitted during CIR passes, the verifier, and CIR-to-LLVM lowering through the surrounding clang::DiagnosticsEngine. More...

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/FrontendAction/CIRDiagnosticHandler.h"

Inheritance diagram for cir::CIRDiagnosticHandler:
[legend]

Public Member Functions

 CIRDiagnosticHandler (mlir::MLIRContext *ctx, clang::DiagnosticsEngine &diags, clang::SourceManager &srcMgr, clang::FileManager &fileMgr)

Detailed Description

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.

Constructor & Destructor Documentation

◆ CIRDiagnosticHandler()

cir::CIRDiagnosticHandler::CIRDiagnosticHandler ( mlir::MLIRContext * ctx,
clang::DiagnosticsEngine & diags,
clang::SourceManager & srcMgr,
clang::FileManager & fileMgr )

Definition at line 28 of file CIRDiagnosticHandler.cpp.


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