|
MLIR 24.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 void | forEachPendingRemark (llvm::function_ref< void(const Remark &)> callback) const |
| Visit remarks retained for future emission. | |
| virtual void | forEachPendingRemarkAt (Location loc, llvm::function_ref< void(const Remark &)> callback) const |
| Visit pending remarks at the complete location. | |
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 |
Visit remarks retained for future emission.
findRemarks calls this; do not call findRemarks while holding the lock taken here. The callback must not reenter the policy or retain references. The default visits nothing.
Reimplemented in mlir::remark::RemarkEmittingPolicyFinal.
Definition at line 577 of file Remarks.h.
Referenced by forEachPendingRemarkAt().
|
inlinevirtual |
Visit pending remarks at the complete location.
The default filters the existing visitor; policies may override this to use a location index.
Reimplemented in mlir::remark::RemarkEmittingPolicyFinal.
Definition at line 582 of file Remarks.h.
References forEachPendingRemark().
Definition at line 569 of file Remarks.h.
References reportImpl.
|
pure virtual |
Implemented in mlir::remark::RemarkEmittingPolicyAll, and mlir::remark::RemarkEmittingPolicyFinal.
|
protected |
Definition at line 563 of file Remarks.h.
Referenced by mlir::remark::RemarkEmittingPolicyFinal::finalize(), initialize(), and mlir::remark::RemarkEmittingPolicyAll::reportRemark().