Skip to content
Unverified Commit 58678d3b authored by Matthias Springer's avatar Matthias Springer Committed by GitHub
Browse files

[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.)
parent 5958043e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment