[all-commits] [llvm/llvm-project] 58678d: [mlir][tensor][bufferize] `tensor.empty` bufferize...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Thu Oct 5 05:06:15 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 58678d3bcf32bada15d6286dff4abfdbf40bfc21
https://github.com/llvm/llvm-project/commit/58678d3bcf32bada15d6286dff4abfdbf40bfc21
Author: Matthias Springer <me at m-sp.org>
Date: 2023-10-05 (Thu, 05 Oct 2023)
Changed paths:
M mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
Log Message:
-----------
[mlir][tensor][bufferize] `tensor.empty` bufferizes to allocation (#68201)
`BufferizableOpInterface::bufferizesToAllocation` is queried when
forming equivalence sets during bufferization. It is not really needed
for ops like `tensor.empty` which do not have tensor operands, but it
should be added for consistency.
This change should have been part of #68080. No test is added because
the return value of this function is irrelevant for ops without tensor
operands. (However, this function acts as a form documentation,
describing the bufferization semantics of the op.)
More information about the All-commits
mailing list