MLIR 22.0.0git
EliminateEmptyTensors.cpp File Reference

Go to the source code of this file.

Functions

static OpOperandgetUnusedOutOperand (LinalgOp op, OpOperand *in)
 Get an output operand that matches the given input operand and can be used to eliminate a tensor.empty op.

Function Documentation

◆ getUnusedOutOperand()

OpOperand * getUnusedOutOperand ( LinalgOp op,
OpOperand * in )
static

Get an output operand that matches the given input operand and can be used to eliminate a tensor.empty op.

Definition at line 23 of file EliminateEmptyTensors.cpp.

References mlir::IROperand< DerivedT, IRValueT >::get(), and mlir::Value::getType().

Referenced by mlir::linalg::linalgOpAnchoredEmptyTensorEliminationStep().