MLIR 22.0.0git
mlir::OpWithState Class Reference

A wrapper class that allows for printing an operation with a custom AsmState, useful to act as a "stream modifier" to customize printing an operation with a stream using the operator<< overload, e.g.: llvm::dbgs() << OpWithState(op, OpPrintingFlags().skipRegions());. More...

#include "mlir/IR/Operation.h"

Public Member Functions

 OpWithState (Operation *op, AsmState &state)

Friends

raw_ostreamoperator<< (raw_ostream &os, const OpWithState &op)

Detailed Description

A wrapper class that allows for printing an operation with a custom AsmState, useful to act as a "stream modifier" to customize printing an operation with a stream using the operator<< overload, e.g.: llvm::dbgs() << OpWithState(op, OpPrintingFlags().skipRegions());.

Definition at line 1135 of file Operation.h.

Constructor & Destructor Documentation

◆ OpWithState()

mlir::OpWithState::OpWithState ( Operation * op,
AsmState & state )
inline

Definition at line 1137 of file Operation.h.

Referenced by operator<<.

◆ operator<<

raw_ostream & operator<< ( raw_ostream & os,
const OpWithState & op )
friend

Definition at line 1145 of file Operation.h.

References OpWithState(), and mlir::Operation::print().


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