MLIR  22.0.0git
Public Member Functions | Friends | List of all members
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. More...

#include "mlir/IR/Operation.h"

Public Member Functions

 OpWithState (Operation *op, AsmState &state)
 

Friends

raw_ostream & operator<< (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 1134 of file Operation.h.

Constructor & Destructor Documentation

◆ OpWithState()

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

Definition at line 1136 of file Operation.h.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 1144 of file Operation.h.


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