|
MLIR 22.0.0git
|
#include "mlir/IR/Remarks.h"
Classes | |
| struct | Arg |
Public Member Functions | |
| Remark (RemarkKind remarkKind, DiagnosticSeverity severity, Location loc, RemarkOpts opts) | |
| void | insert (llvm::StringRef s) |
| void | insert (Arg a) |
| void | print (llvm::raw_ostream &os, bool printLocation=false) const |
| Print the remark to the given output stream. | |
| Location | getLocation () const |
| llvm::remarks::Remark | generateRemark () const |
| Diagnostic -> Remark. | |
| StringRef | getFunction () const |
| llvm::StringRef | getCategoryName () const |
| llvm::StringRef | getCombinedCategoryName () const |
| StringRef | getRemarkName () const |
| std::string | getMsg () const |
| ArrayRef< Arg > | getArgs () const |
| llvm::remarks::Type | getRemarkType () const |
| StringRef | getRemarkTypeString () const |
Protected Attributes | |
| RemarkKind | remarkKind |
| Keeps the MLIR diagnostic kind, which is used to determine the diagnostic kind in the LLVM remark streamer. | |
| StringRef | functionName |
| Name of the convering function like interface. | |
| Location | loc |
| StringRef | categoryName |
| Sub category passname e.g., "Unroll" or "UnrollAndJam". | |
| StringRef | subCategoryName |
| Sub category name "Loop Optimizer". | |
| SmallString< 64 > | fullCategoryName |
| Combined name for category and sub-category. | |
| StringRef | remarkName |
| Remark identifier. | |
| SmallVector< Arg, 4 > | args |
| Args collected via the streaming interface. | |
|
inline |
Definition at line 90 of file Remarks.h.
References categoryName, functionName, loc, remarkKind, remarkName, and subCategoryName.
Referenced by mlir::remark::detail::OptRemarkBase< RemarkKind::RemarkAnalysis, DiagnosticSeverity::Remark >::OptRemarkBase().
| llvm::remarks::Remark Remark::generateRemark | ( | ) | const |
Diagnostic -> Remark.
Definition at line 138 of file Remarks.cpp.
References getArgs(), getCombinedCategoryName(), getFunction(), getLocation(), getRemarkName(), and getRemarkType().
Definition at line 176 of file Remarks.h.
References args.
Referenced by generateRemark(), and print().
|
inline |
Definition at line 156 of file Remarks.h.
References categoryName.
|
inline |
Definition at line 158 of file Remarks.h.
References categoryName, fullCategoryName, and subCategoryName.
Referenced by generateRemark(), llvm::DenseMapInfo< mlir::remark::detail::Remark >::getHashValue(), and print().
|
inline |
Definition at line 150 of file Remarks.h.
References functionName.
Referenced by generateRemark(), and print().
|
inline |
Definition at line 146 of file Remarks.h.
References loc.
Referenced by generateRemark(), llvm::DenseMapInfo< mlir::remark::detail::Remark >::getHashValue(), and print().
| std::string Remark::getMsg | ( | ) | const |
Definition at line 98 of file Remarks.cpp.
References print().
|
inline |
Definition at line 168 of file Remarks.h.
References remarkName.
Referenced by generateRemark(), and llvm::DenseMapInfo< mlir::remark::detail::Remark >::getHashValue().
| llvm::remarks::Type Remark::getRemarkType | ( | ) | const |
Definition at line 122 of file Remarks.cpp.
References mlir::remark::RemarkAnalysis, mlir::remark::RemarkFailure, remarkKind, mlir::remark::RemarkMissed, mlir::remark::RemarkPassed, and mlir::remark::RemarkUnknown.
Referenced by generateRemark().
| llvm::StringRef Remark::getRemarkTypeString | ( | ) | const |
Definition at line 106 of file Remarks.cpp.
References mlir::remark::RemarkAnalysis, mlir::remark::RemarkFailure, remarkKind, mlir::remark::RemarkMissed, mlir::remark::RemarkPassed, and mlir::remark::RemarkUnknown.
Referenced by print().
Definition at line 40 of file Remarks.cpp.
References args.
| void Remark::insert | ( | llvm::StringRef | s | ) |
Definition at line 39 of file Remarks.cpp.
References args.
Referenced by mlir::remark::detail::operator<<(), mlir::remark::detail::operator<<(), and mlir::remark::detail::operator<<().
Print the remark to the given output stream.
Example output: [Missed] Category: Loop | Pass:Unroller | Function=main | Reason="tripCount=4 < threshold=256" [Failure] LoopOptimizer | Reason="failed due to unsupported pattern"
Definition at line 75 of file Remarks.cpp.
References categoryName, functionName, getArgs(), getCombinedCategoryName(), getFunction(), getLocation(), getRemarkTypeString(), printArgs(), and remarkName.
Referenced by getMsg().
|
protected |
|
protected |
Sub category passname e.g., "Unroll" or "UnrollAndJam".
Definition at line 191 of file Remarks.h.
Referenced by getCategoryName(), getCombinedCategoryName(), print(), and Remark().
|
protected |
Combined name for category and sub-category.
Definition at line 197 of file Remarks.h.
Referenced by getCombinedCategoryName().
|
protected |
Name of the convering function like interface.
Definition at line 187 of file Remarks.h.
Referenced by getFunction(), print(), and Remark().
|
protected |
Definition at line 189 of file Remarks.h.
Referenced by mlir::remark::detail::RemarkEngine::emitOptimizationRemark(), mlir::remark::detail::RemarkEngine::emitOptimizationRemarkAnalysis(), mlir::remark::detail::RemarkEngine::emitOptimizationRemarkFailure(), mlir::remark::detail::RemarkEngine::emitOptimizationRemarkMiss(), getLocation(), mlir::remark::detail::OptRemarkBase< RemarkKind::RemarkAnalysis, DiagnosticSeverity::Remark >::OptRemarkBase(), and Remark().
|
protected |
Keeps the MLIR diagnostic kind, which is used to determine the diagnostic kind in the LLVM remark streamer.
Definition at line 185 of file Remarks.h.
Referenced by getRemarkType(), getRemarkTypeString(), and Remark().
|
protected |
|
protected |
Sub category name "Loop Optimizer".
Definition at line 194 of file Remarks.h.
Referenced by getCombinedCategoryName(), and Remark().