Call this function even on ops that do not have tensor OpOperands/OpResults.
Depends On D114055
springerm on Nov 16 2021, 9:54 PM.Authored by
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.