|
MLIR 22.0.0git
|
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. More...
#include "mlir/IR/Operation.h"
Public Member Functions | |
| OpWithFlags (Operation *op, OpPrintingFlags flags={}) | |
| OpPrintingFlags & | flags () |
| const OpPrintingFlags & | flags () const |
| Operation * | getOperation () const |
Friends | |
| raw_ostream & | operator<< (raw_ostream &os, OpWithFlags op) |
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.
|
inline |
|
inline |
Definition at line 1115 of file Operation.h.
Referenced by mlir::Diagnostic::operator<<(), operator<<, and OpWithFlags().
|
inline |
Definition at line 1116 of file Operation.h.
|
inline |
Definition at line 1117 of file Operation.h.
Referenced by mlir::Diagnostic::operator<<().
|
friend |
Definition at line 1125 of file Operation.h.
References flags(), OpWithFlags(), mlir::Operation::print(), and mlir::OpPrintingFlags::useLocalScope().