Call this function even on ops that do not have tensor OpOperands/OpResults.
Depends On D114055
Differential D114056
[mlir][linalg][bufferize][NFC] Call `bufferize` on all bufferizable ops springerm on Nov 16 2021, 9:54 PM. Authored by
Details
Call this function even on ops that do not have tensor OpOperands/OpResults. Depends On D114055
Diff Detail
Event TimelineComment Actions For the current interface implementations, this change is NFC. Before this change, it was guaranteed that the bufferize method was never called on ops that do not need bufferization (because they have no tensor results/operands). After this change, bufferize is called for every bufferizable op. If there is no work to do, the interface method simply returns success. This is in preparation of changing the way that operations are traversed in one of the subsequent commits. I'll update the commit message when landing this change. Comment Actions Note, I may change this back to the original behavior again later. This change is mostly to keep the commits small during an overall larger refactoring. |