MLIR  20.0.0git
Functions
EliminateEmptyTensors.cpp File Reference
#include "mlir/Dialect/Linalg/Transforms/Transforms.h"
#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h"
#include "mlir/Dialect/Bufferization/IR/Bufferization.h"
#include "mlir/Dialect/Bufferization/Transforms/OneShotAnalysis.h"
#include "mlir/Dialect/Bufferization/Transforms/Transforms.h"
#include "mlir/Dialect/Linalg/IR/Linalg.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"

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. More...
 

Function Documentation

◆ getUnusedOutOperand()

static 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 24 of file EliminateEmptyTensors.cpp.

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