My Project
Public Member Functions | Public Attributes | List of all members
mlir::detail::DiagnosticEngineImpl Struct Reference

Public Member Functions

void emit (Diagnostic diag)
 

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
 

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.

Member Data Documentation

◆ handlers

llvm::SmallMapVector<DiagnosticEngine::HandlerID, DiagnosticEngine::HandlerTy, 2> mlir::detail::DiagnosticEngineImpl::handlers

These are the handlers used to report diagnostics.

◆ mutex

llvm::sys::SmartMutex<true> mlir::detail::DiagnosticEngineImpl::mutex

A mutex to ensure that diagnostics emission is thread-safe.

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


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