This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization] Move one-shot bufferization to Bufferization dialect
ClosedPublic

Authored by springerm on Jan 18 2022, 11:50 PM.

Details

Summary

This commit is the first step towards unifying core bufferization and One-Shot Bufferize.

This commit does not move over the implementations of BufferizableOpInterface yet. This will be done in separate commits. This change does also not move the unit tests yet. The tests will be moved together with op interface implementations and split into separate files.

Depends On D117478

Diff Detail

Event Timeline

springerm created this revision.Jan 18 2022, 11:50 PM
springerm requested review of this revision.Jan 18 2022, 11:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 18 2022, 11:50 PM

The CMake files are not in order yet... See BUILD.bazel in the meantime

pifon2a accepted this revision.Jan 18 2022, 11:57 PM

nice!

This revision is now accepted and ready to land.Jan 18 2022, 11:57 PM

Note: The moved over bufferization code is living in three files:

  • OneShotAnalysis.h (+source file): Contains the analysis of the One-Shot bufferization
  • Bufferize.h (+source file): Contains code related to the existing partial bufferization and the driver for BufferizableOpInterface-based bufferizations. In the future, can be run with one-shot analysis, a different analysis or no analysis at all.
  • BufferizableOpInterface.h (+source +td files): Contains the op interface + helper methods needed when implementing interface methods.

update CMakeFiles

springerm updated this revision to Diff 401540.Jan 20 2022, 1:09 AM

fix CMakeFiles

This revision was landed with ongoing or failed builds.Jan 20 2022, 1:21 AM
This revision was automatically updated to reflect the committed changes.