My Project
Public Member Functions | Protected Member Functions | List of all members
mlir::ScopedDiagnosticHandler Class Reference

#include <Diagnostics.h>

Inheritance diagram for mlir::ScopedDiagnosticHandler:
Inheritance graph
[legend]

Public Member Functions

 ScopedDiagnosticHandler (MLIRContext *ctx)
 
template<typename FuncTy >
 ScopedDiagnosticHandler (MLIRContext *ctx, FuncTy &&handler)
 
 ~ScopedDiagnosticHandler ()
 

Protected Member Functions

template<typename FuncTy >
void setHandler (FuncTy &&handler)
 Set the handler to manage via RAII. More...
 

Detailed Description

This diagnostic handler is a simple RAII class that registers and erases a diagnostic handler on a given context. This class can be either be used directly, or in conjunction with a derived diagnostic handler.

Constructor & Destructor Documentation

◆ ScopedDiagnosticHandler() [1/2]

mlir::ScopedDiagnosticHandler::ScopedDiagnosticHandler ( MLIRContext ctx)
inlineexplicit

◆ ScopedDiagnosticHandler() [2/2]

template<typename FuncTy >
mlir::ScopedDiagnosticHandler::ScopedDiagnosticHandler ( MLIRContext ctx,
FuncTy &&  handler 
)
inline

◆ ~ScopedDiagnosticHandler()

ScopedDiagnosticHandler::~ScopedDiagnosticHandler ( )

Member Function Documentation

◆ setHandler()

template<typename FuncTy >
void mlir::ScopedDiagnosticHandler::setHandler ( FuncTy &&  handler)
inlineprotected

Set the handler to manage via RAII.


The documentation for this class was generated from the following files: