This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][bufferize][NFC] Simplify bufferization of CallOps
ClosedPublic

Authored by springerm on Dec 31 2021, 7:37 AM.

Details

Summary

There is no need to inspect the ReturnOp of the called function.

This change also refactors the bufferization of CallOps in such a way that lookupBuffer is called only a single time. This is important for a later change that fixes CallOp bufferization. (There is currently a TODO among the test cases.)

Note: This change modifies a test case but is marked as NFC. There is no change of functionality, but FuncOps with empty bodies are now reported with a different error message.

Depends On D116445

Diff Detail

Event Timeline

springerm created this revision.Dec 31 2021, 7:37 AM
springerm requested review of this revision.Dec 31 2021, 7:37 AM
nicolasvasilache accepted this revision.Jan 5 2022, 12:17 AM
This revision is now accepted and ready to land.Jan 5 2022, 12:17 AM
This revision was landed with ongoing or failed builds.Jan 5 2022, 7:29 AM
This revision was automatically updated to reflect the committed changes.