MLIR  22.0.0git
Classes | Typedefs | Functions
mlir::remark::detail Namespace Reference

Classes

class  Remark
 
class  OptRemarkBase
 
struct  LazyTextBuild
 Lazy text building for zero cost string formatting. More...
 
class  InFlightRemark
 InFlightRemark is a RAII class that holds a reference to a Remark instance and allows to build the remark using the << operator. More...
 
class  MLIRRemarkStreamerBase
 Base class for MLIR remark streamers that is used to stream optimization remarks to the underlying remark streamer. More...
 
class  RemarkEmittingPolicyBase
 Base class for MLIR remark emitting policies that is used to emit optimization remarks to the underlying remark streamer. More...
 
class  RemarkEngine
 
class  LLVMRemarkStreamer
 Concrete streamer that writes LLVM optimization remarks to a file (YAML or Bitstream). More...
 

Typedefs

using OptRemarkAnalysis = OptRemarkBase< RemarkKind::RemarkAnalysis, DiagnosticSeverity::Remark >
 
using OptRemarkPass = OptRemarkBase< RemarkKind::RemarkPassed, DiagnosticSeverity::Remark >
 
using OptRemarkMissed = OptRemarkBase< RemarkKind::RemarkMissed, DiagnosticSeverity::Remark >
 
using OptRemarkFailure = OptRemarkBase< RemarkKind::RemarkFailure, DiagnosticSeverity::Remark >
 
using ReportFn = llvm::unique_function< void(const Remark &)>
 

Functions

Remarkoperator<< (Remark &r, StringRef s)
 
Remark && operator<< (Remark &&r, StringRef s)
 
Remarkoperator<< (Remark &r, const Remark::Arg &kv)
 
template<typename Fn , typename... Args>
InFlightRemark withEngine (Fn fn, Location loc, Args &&...args)
 

Typedef Documentation

◆ OptRemarkAnalysis

Definition at line 251 of file Remarks.h.

◆ OptRemarkFailure

Definition at line 260 of file Remarks.h.

◆ OptRemarkMissed

Definition at line 257 of file Remarks.h.

◆ OptRemarkPass

Definition at line 254 of file Remarks.h.

◆ ReportFn

using mlir::remark::detail::ReportFn = typedef llvm::unique_function<void(const Remark &)>

Definition at line 340 of file Remarks.h.

Function Documentation

◆ operator<<() [1/3]

Remark&& mlir::remark::detail::operator<< ( Remark &&  r,
StringRef  s 
)
inline

Definition at line 231 of file Remarks.h.

References mlir::remark::detail::Remark::insert().

◆ operator<<() [2/3]

Remark& mlir::remark::detail::operator<< ( Remark r,
const Remark::Arg kv 
)
inline

Definition at line 235 of file Remarks.h.

References mlir::remark::detail::Remark::insert().

◆ operator<<() [3/3]

Remark& mlir::remark::detail::operator<< ( Remark r,
StringRef  s 
)
inline

Definition at line 227 of file Remarks.h.

References mlir::remark::detail::Remark::insert().

◆ withEngine()

template<typename Fn , typename... Args>
InFlightRemark mlir::remark::detail::withEngine ( Fn  fn,
Location  loc,
Args &&...  args 
)
inline