[Mlir-commits] [mlir] [mlir][tensor][bufferize] `tensor.empty` bufferizes to an allocation (PR #68080)

Martin Erhart llvmlistbot at llvm.org
Tue Oct 3 06:51:25 PDT 2023


================
@@ -253,10 +253,7 @@ struct DimOpInterface
   }
 };
 
-/// Bufferization of tensor.empty. This op does not bufferize, but we need an
-/// interface implementation, so that the result of this op is considered
-/// "writable" (default impl. of `isWritable`). Results of ops that do not
-/// implement `BufferizableOpInterface` are not writable.
+/// Bufferization of tensor.empty. Replace with "bufferization.alloc_tensor".
----------------
maerhart wrote:

For consistency:
```suggestion
/// Bufferization of "tensor.empty". Replace with "bufferization.alloc_tensor".
```

https://github.com/llvm/llvm-project/pull/68080


More information about the Mlir-commits mailing list