This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferize][NFC] Make func BufferizableOpInterface impl compatible with One-Shot Bufferize
ClosedPublic

Authored by springerm on Jun 8 2022, 6:48 AM.

Details

Summary

Bufferization of the func dialect must go through OneShotModuleBufferize. With this change, the analysis interface methods of the BufferizableOpInterface of func dialect ops can be used together with the normal OneShotBufferize. (In the absence of analysis information, they will return conservative results.)

Depends On D126965

Diff Detail

Event Timeline

springerm created this revision.Jun 8 2022, 6:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 6:48 AM
springerm requested review of this revision.Jun 8 2022, 6:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 6:48 AM
aartbik accepted this revision.Jun 14 2022, 8:51 AM
mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp
119

pull out maybeState.getValue()->analyzedFuncOps?

This revision is now accepted and ready to land.Jun 14 2022, 8:51 AM
This revision was landed with ongoing or failed builds.Jun 15 2022, 1:05 AM
This revision was automatically updated to reflect the committed changes.
springerm marked an inline comment as done.Jun 15 2022, 1:19 AM