MLIR 23.0.0git
mlir::remark::detail::OptRemarkBase< K, S > Class Template Referencefinal

#include "mlir/IR/Remarks.h"

Inheritance diagram for mlir::remark::detail::OptRemarkBase< K, S >:

Public Member Functions

 OptRemarkBase (Location loc, RemarkOpts opts)
Public Member Functions inherited from mlir::remark::detail::Remark
 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< ArggetArgs () const
llvm::remarks::Type getRemarkType () const
RemarkId getId () const
 Get this remark's unique ID (0 if not assigned).
void setId (RemarkId newId)
 Set this remark's unique ID. Also adds it as an Arg for serialization.
ArrayRef< RemarkIdgetRelatedRemarkIds () const
 Get the list of related remark IDs.
void addRelatedRemark (RemarkId relatedId)
 Add a reference to a related remark.
bool hasRelatedRemarks () const
 Check if this remark has any related remarks.
RemarkKind getRemarkKind () const
 Get the remark kind.
StringRef getRemarkTypeString () const

Additional Inherited Members

Protected Attributes inherited from mlir::remark::detail::Remark
RemarkKind remarkKind
 Keeps the MLIR diagnostic kind, which is used to determine the diagnostic kind in the LLVM remark streamer.
std::string functionName
 Name of the covering function like interface.
Location loc
std::string categoryName
 Category name e.g., "Unroll" or "UnrollAndJam".
std::string subCategoryName
 Sub category name e.g., "Loop Optimizer".
SmallString< 64 > fullCategoryName
 Combined name for category and sub-category.
std::string remarkName
 Remark identifier.
SmallVector< Arg, 4 > args
 Args collected via the streaming interface.
RemarkId id
 Unique ID for this remark (assigned by RemarkEngine).
SmallVector< RemarkIdrelatedRemarks
 IDs of related remarks (e.g., parent analysis that enabled this opt).

Detailed Description

template<RemarkKind K, DiagnosticSeverity S>
class mlir::remark::detail::OptRemarkBase< K, S >

Definition at line 364 of file Remarks.h.

Constructor & Destructor Documentation

◆ OptRemarkBase()

mlir::remark::detail::OptRemarkBase< K, S >::OptRemarkBase ( Location loc,
RemarkOpts opts )
inlineexplicit

Definition at line 366 of file Remarks.h.


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