Home
last modified time | relevance | path

Searched refs:DiagnosticEngine (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DDiagnostic.h22 class DiagnosticEngine; variable
64 friend DiagnosticEngine; variable
114 InFlightDiagnostic(DiagnosticEngine *owner, Diagnostic &&rhs) in InFlightDiagnostic()
125 friend DiagnosticEngine; variable
128 DiagnosticEngine *owner = nullptr;
139 class DiagnosticEngine {
H A DContext.h42 DiagnosticEngine &getDiagEngine() { return diagEngine; } in getDiagEngine()
46 DiagnosticEngine diagEngine;
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DLexer.h27 class DiagnosticEngine; variable
168 Lexer(llvm::SourceMgr &mgr, ast::DiagnosticEngine &diagEngine,
176 ast::DiagnosticEngine &getDiagEngine() { return diagEngine; } in getDiagEngine()
217 ast::DiagnosticEngine &diagEngine;
H A DLexer.cpp75 Lexer::Lexer(llvm::SourceMgr &mgr, ast::DiagnosticEngine &diagEngine, in Lexer()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DDiagnostics.h26 class DiagnosticEngine; variable
378 InFlightDiagnostic(DiagnosticEngine *owner, Diagnostic &&rhs) in InFlightDiagnostic()
389 friend DiagnosticEngine; variable
392 DiagnosticEngine *owner = nullptr;
406 class DiagnosticEngine {
408 ~DiagnosticEngine();
465 DiagnosticEngine();
536 DiagnosticEngine::HandlerID handlerID;
H A DMLIRContext.h24 class DiagnosticEngine; variable
191 DiagnosticEngine &getDiagEngine();
/llvm-project-15.0.7/mlir/lib/IR/
H A DDiagnostics.cpp228 llvm::SmallMapVector<DiagnosticEngine::HandlerID, DiagnosticEngine::HandlerTy,
234 DiagnosticEngine::HandlerID uniqueHandlerId = 1;
269 DiagnosticEngine::DiagnosticEngine() : impl(new DiagnosticEngineImpl()) {} in DiagnosticEngine() function in DiagnosticEngine
270 DiagnosticEngine::~DiagnosticEngine() = default;
275 auto DiagnosticEngine::registerHandler(HandlerTy handler) -> HandlerID { in registerHandler()
283 void DiagnosticEngine::eraseHandler(HandlerID handlerID) { in eraseHandler()
290 void DiagnosticEngine::emit(Diagnostic &&diag) { in emit()
1021 DiagnosticEngine::HandlerID handlerID = 0;
H A DMLIRContext.cpp131 DiagnosticEngine diagEngine;
351 DiagnosticEngine &MLIRContext::getDiagEngine() { return getImpl().diagEngine; } in getDiagEngine()
/llvm-project-15.0.7/mlir/lib/CAPI/IR/
H A DDiagnostics.cpp62 DiagnosticEngine::HandlerID id = in mlirContextAttachDiagnosticHandler()
75 static_cast<DiagnosticEngine::HandlerID>(id)); in mlirContextDetachDiagnosticHandler()
/llvm-project-15.0.7/mlir/docs/
H A DDiagnostics.md20 The `DiagnosticEngine` acts as the main interface for diagnostics in MLIR. It
29 DiagnosticEngine& engine = ctx->getDiagEngine();
34 DiagnosticEngine::HandlerID id = engine.registerHandler(
43 DiagnosticEngine::HandlerID id = engine.registerHandler([](Diagnostic &diag) {
53 As stated above, the `DiagnosticEngine` holds the core API for diagnostic
62 Using the `DiagnosticEngine`, though, is generally not the preferred way to emit
206 diagnostic handler with the [`DiagnosticEngine`](#diagnostic-engine).