[Mlir-commits] [mlir] [mlir][bufferization] `MaterializeInDestinationOp`: Support memref destinations (PR #68074)
Martin Erhart
llvmlistbot at llvm.org
Fri Oct 6 02:26:12 PDT 2023
================
@@ -542,25 +542,35 @@ bool MaterializeInDestinationOp::bufferizesToMemoryRead(
bool MaterializeInDestinationOp::bufferizesToMemoryWrite(
OpOperand &opOperand, const AnalysisState &state) {
- return &opOperand == &getDestMutable();
+ return isa<TensorType>(getDest().getType()) &&
----------------
maerhart wrote:
Couldn't we make the `isa` an assert because the interface method's description says that it will never be called on non-tensor operands?
https://github.com/llvm/llvm-project/pull/68074
More information about the Mlir-commits
mailing list