This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization] Move ModuleBufferization to bufferization dialect
ClosedPublic

Authored by springerm on Mar 22 2022, 6:55 AM.

Details

Summary
  • Move Module Bufferization to the bufferization dialect. The implementation is split into OneShotModuleBufferize.cpp and FuncBufferizableOpInterfaceImpl.cpp, so that the external model implementation can be easily moved to the func dialect in the future.
  • Split and clean up test cases. A few test cases are still remaining in Linalg and will be updated separately.
  • linalg.inplaceable is renamed to bufferization.writable to accurately reflect its current usage.
  • Attributes and their verifiers are moved from the Linalg dialect to the Bufferization dialect.
  • Expand documentation.
  • Add a new flag to One-Shot Bufferize to allow for function boundary bufferization.

Depends On D122228

Diff Detail

Event Timeline

springerm created this revision.Mar 22 2022, 6:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2022, 6:55 AM
springerm requested review of this revision.Mar 22 2022, 6:55 AM
springerm updated this revision to Diff 417310.Mar 22 2022, 8:44 AM

fix test case

This revision is now accepted and ready to land.Mar 30 2022, 12:47 AM
This revision was landed with ongoing or failed builds.Apr 22 2022, 3:37 AM
This revision was automatically updated to reflect the committed changes.
mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp