|
MLIR 24.0.0git
|
Diagnostic handler forwarding LLVM diagnostics to MLIR. More...
#include "mlir/Remark/LLVMRemarkImport.h"
Public Member Functions | |
| LLVMToMLIRDiagnosticHandler (Operation *anchor) | |
| bool | handleDiagnostics (const llvm::DiagnosticInfo &diag) override |
| bool | isAnalysisRemarkEnabled (StringRef passName) const override |
| bool | isMissedOptRemarkEnabled (StringRef passName) const override |
| bool | isPassedOptRemarkEnabled (StringRef passName) const override |
| bool | isAnyRemarkEnabled () const override |
Diagnostic handler forwarding LLVM diagnostics to MLIR.
Optimization remarks enabled in the remark engine of the context of anchor are imported as described for importLLVMRemarks, so the remark filters of the engine select LLVM remarks by their prefixed pass name. Other remarks are left to LLVM, which prints those enabled with its own -pass-remarks flags. All other diagnostics are reported as MLIR diagnostics. Install the handler with RespectFilters set, so that LLVM only forwards enabled remarks.
Definition at line 50 of file LLVMRemarkImport.h.
|
explicit |
Definition at line 246 of file LLVMRemarkImport.cpp.
References getContext().
|
override |
Definition at line 274 of file LLVMRemarkImport.cpp.
References diag(), mlir::emitError(), mlir::emitRemark(), mlir::emitWarning(), getCategory(), getRemarkKind(), importLLVMRemark(), and resolveLocation().
|
override |
Definition at line 250 of file LLVMRemarkImport.cpp.
References getCategory().
|
override |
Definition at line 269 of file LLVMRemarkImport.cpp.
|
override |
Definition at line 257 of file LLVMRemarkImport.cpp.
References getCategory().
|
override |
Definition at line 263 of file LLVMRemarkImport.cpp.
References getCategory().