MLIR  19.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::detail::DiagnosticEngineImpl Struct Reference

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...
 

Detailed Description

Definition at line 225 of file Diagnostics.cpp.

Member Function Documentation

◆ emit()

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(), mlir::Error, and mlir::succeeded().

Member Data Documentation

◆ handlers

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.

◆ mutex

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.

◆ uniqueHandlerId

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.


The documentation for this struct was generated from the following file: