|
MLIR 23.0.0git
|
Base class for MLIR remark emitting policies that is used to emit optimization remarks to the underlying remark streamer. More...
#include "mlir/IR/Remarks.h"
Public Member Functions | |
| RemarkEmittingPolicyBase ()=default | |
| virtual | ~RemarkEmittingPolicyBase ()=default |
| void | initialize (ReportFn fn) |
| virtual void | reportRemark (const Remark &remark)=0 |
| virtual void | finalize ()=0 |
| virtual SmallVector< RemarkId > | findRemarks (const RemarkOpts &opts, std::optional< RemarkKind > kind=std::nullopt) const |
| Find previously reported remarks matching the given criteria. | |
Protected Attributes | |
| ReportFn | reportImpl |
Base class for MLIR remark emitting policies that is used to emit optimization remarks to the underlying remark streamer.
The derived classes should implement the reportRemark method to provide the actual emitting implementation.
|
default |
|
virtualdefault |
|
pure virtual |
Implemented in mlir::remark::RemarkEmittingPolicyAll, and mlir::remark::RemarkEmittingPolicyFinal.
|
inlinevirtual |
Definition at line 479 of file Remarks.h.
References reportImpl.
|
pure virtual |
Implemented in mlir::remark::RemarkEmittingPolicyAll, and mlir::remark::RemarkEmittingPolicyFinal.
|
protected |
Definition at line 473 of file Remarks.h.
Referenced by mlir::remark::RemarkEmittingPolicyFinal::finalize(), initialize(), and mlir::remark::RemarkEmittingPolicyAll::reportRemark().