MLIR
20.0.0git
|
Public Member Functions | |
void | emit (Diagnostic &&diag) |
Emit a diagnostic using the registered issue handle if present, or with the default behavior if not. More... | |
Public Attributes | |
llvm::sys::SmartMutex< true > | mutex |
A mutex to ensure that diagnostics emission is thread-safe. More... | |
llvm::SmallMapVector< DiagnosticEngine::HandlerID, DiagnosticEngine::HandlerTy, 2 > | handlers |
These are the handlers used to report diagnostics. More... | |
DiagnosticEngine::HandlerID | uniqueHandlerId = 1 |
This is a unique identifier counter for diagnostic handlers in the context. More... | |
Definition at line 225 of file Diagnostics.cpp.
void DiagnosticEngineImpl::emit | ( | Diagnostic && | diag | ) |
Emit a diagnostic using the registered issue handle if present, or with the default behavior if not.
Definition at line 247 of file Diagnostics.cpp.
References diag(), and mlir::Error.
llvm::SmallMapVector<DiagnosticEngine::HandlerID, DiagnosticEngine::HandlerTy, 2> mlir::detail::DiagnosticEngineImpl::handlers |
These are the handlers used to report diagnostics.
Definition at line 236 of file Diagnostics.cpp.
llvm::sys::SmartMutex<true> mlir::detail::DiagnosticEngineImpl::mutex |
A mutex to ensure that diagnostics emission is thread-safe.
Definition at line 231 of file Diagnostics.cpp.
DiagnosticEngine::HandlerID mlir::detail::DiagnosticEngineImpl::uniqueHandlerId = 1 |
This is a unique identifier counter for diagnostic handlers in the context.
This id starts at 1 to allow for 0 to be used as a sentinel.
Definition at line 240 of file Diagnostics.cpp.