MLIR  22.0.0git
Public Member Functions | Friends | List of all members
mlir::OpWithFlags Class Reference

A wrapper class that allows for printing an operation with a set of flags, useful to act as a "stream modifier" to customize printing an operation with a stream using the operator<< overload, e.g. More...

#include "mlir/IR/Operation.h"

Public Member Functions

 OpWithFlags (Operation *op, OpPrintingFlags flags={})
 
OpPrintingFlagsflags ()
 
const OpPrintingFlagsflags () const
 

Friends

raw_ostream & operator<< (raw_ostream &os, OpWithFlags op)
 

Detailed Description

A wrapper class that allows for printing an operation with a set of flags, useful to act as a "stream modifier" to customize printing an operation with a stream using the operator<< overload, e.g.

: llvm::dbgs() << OpWithFlags(op, OpPrintingFlags().skipRegions()); This always prints the operation with the local scope, to avoid introducing spurious newlines in the stream.

Definition at line 1111 of file Operation.h.

Constructor & Destructor Documentation

◆ OpWithFlags()

mlir::OpWithFlags::OpWithFlags ( Operation op,
OpPrintingFlags  flags = {} 
)
inline

Definition at line 1113 of file Operation.h.

Member Function Documentation

◆ flags() [1/2]

OpPrintingFlags& mlir::OpWithFlags::flags ( )
inline

Definition at line 1115 of file Operation.h.

◆ flags() [2/2]

const OpPrintingFlags& mlir::OpWithFlags::flags ( ) const
inline

Definition at line 1116 of file Operation.h.

Friends And Related Function Documentation

◆ operator<<

raw_ostream& operator<< ( raw_ostream &  os,
OpWithFlags  op 
)
friend

Definition at line 1124 of file Operation.h.


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