|
MLIR 22.0.0git
|
#include "mlir/IR/Remarks.h"
Public Member Functions | |
| RemarkEngine ()=delete | |
| Default constructor is deleted, use the other constructor. | |
| RemarkEngine (bool printAsEmitRemarks, const RemarkCategories &cats) | |
| Constructs Remark engine with optional category names. | |
| ~RemarkEngine () | |
| Destructor that will close the output file and reset the main remark streamer. | |
| LogicalResult | initialize (std::unique_ptr< MLIRRemarkStreamerBase > streamer, std::unique_ptr< RemarkEmittingPolicyBase > remarkEmittingPolicy, std::string *errMsg) |
| Setup the remark engine with the given output path and format. | |
| RemarkEmittingPolicyBase * | getRemarkEmittingPolicy () const |
| Get the remark emitting policy. | |
| void | report (const Remark &&remark) |
| Report a remark. | |
| InFlightRemark | emitOptimizationRemark (Location loc, RemarkOpts opts) |
| Report a successful remark, this will create an InFlightRemark that can be used to build the remark using the << operator. | |
| InFlightRemark | emitOptimizationRemarkMiss (Location loc, RemarkOpts opts) |
| Report a missed optimization remark that can be used to build the remark using the << operator. | |
| InFlightRemark | emitOptimizationRemarkFailure (Location loc, RemarkOpts opts) |
| Report a failed optimization remark, this will create an InFlightRemark that can be used to build the remark using the << operator. | |
| InFlightRemark | emitOptimizationRemarkAnalysis (Location loc, RemarkOpts opts) |
| Report an analysis remark, this will create an InFlightRemark that can be used to build the remark using the << operator. | |
|
delete |
Default constructor is deleted, use the other constructor.
| RemarkEngine::RemarkEngine | ( | bool | printAsEmitRemarks, |
| const RemarkCategories & | cats ) |
Constructs Remark engine with optional category names.
If a category name is not provided, it is not enabled. The category names are used to filter the remarks that are emitted.
Definition at line 307 of file Remarks.cpp.
References mlir::remark::RemarkCategories::analysis, buildFilter(), mlir::remark::RemarkCategories::failed, if(), mlir::remark::RemarkCategories::missed, and mlir::remark::RemarkCategories::passed.
| RemarkEngine::~RemarkEngine | ( | ) |
Destructor that will close the output file and reset the main remark streamer.
Definition at line 245 of file Remarks.cpp.
| InFlightRemark RemarkEngine::emitOptimizationRemark | ( | Location | loc, |
| RemarkOpts | opts ) |
Report a successful remark, this will create an InFlightRemark that can be used to build the remark using the << operator.
Definition at line 201 of file Remarks.cpp.
References mlir::remark::detail::Remark::loc.
Referenced by mlir::remark::passed().
| InFlightRemark RemarkEngine::emitOptimizationRemarkAnalysis | ( | Location | loc, |
| RemarkOpts | opts ) |
Report an analysis remark, this will create an InFlightRemark that can be used to build the remark using the << operator.
Definition at line 219 of file Remarks.cpp.
References mlir::remark::detail::Remark::loc.
Referenced by mlir::remark::analysis().
| InFlightRemark RemarkEngine::emitOptimizationRemarkFailure | ( | Location | loc, |
| RemarkOpts | opts ) |
Report a failed optimization remark, this will create an InFlightRemark that can be used to build the remark using the << operator.
Definition at line 213 of file Remarks.cpp.
References mlir::remark::detail::Remark::loc.
Referenced by mlir::remark::failed().
| InFlightRemark RemarkEngine::emitOptimizationRemarkMiss | ( | Location | loc, |
| RemarkOpts | opts ) |
Report a missed optimization remark that can be used to build the remark using the << operator.
Definition at line 207 of file Remarks.cpp.
References mlir::remark::detail::Remark::loc.
Referenced by mlir::remark::missed().
|
inline |
| llvm::LogicalResult RemarkEngine::initialize | ( | std::unique_ptr< MLIRRemarkStreamerBase > | streamer, |
| std::unique_ptr< RemarkEmittingPolicyBase > | remarkEmittingPolicy, | ||
| std::string * | errMsg ) |
Setup the remark engine with the given output path and format.
Definition at line 253 of file Remarks.cpp.
References success().
Report a remark.
Definition at line 240 of file Remarks.cpp.