This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferize] Disallow adding new bufferizable ops during bufferization
ClosedPublic

Authored by springerm on May 5 2022, 8:33 AM.

Details

Summary

Ops that are created during the bufferization were not analyzed (when run with One-Shot Bufferize), and users should instead create memref ops directly.

Futhermore, this fixes an issue where an op was erased (and put on the erasedOps list), but subsequently a new tensor op was created at the same memory location. This op was then not bufferized. Disallowing the creation of new tensor ops simplifies the bufferization and fixes such issues.

Diff Detail

Event Timeline

springerm created this revision.May 5 2022, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2022, 8:33 AM
springerm requested review of this revision.May 5 2022, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2022, 8:33 AM
pifon2a accepted this revision.May 6 2022, 2:27 AM

Thank you a lot!

This revision is now accepted and ready to land.May 6 2022, 2:27 AM
This revision was landed with ongoing or failed builds.May 6 2022, 2:42 AM
This revision was automatically updated to reflect the committed changes.