This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization] Enable BufferizationToMemRef to run on functions
ClosedPublic

Authored by maerhart on Aug 28 2023, 1:24 AM.

Details

Summary

Modify the convert-bufferization-to-memref pass to be applicable to
builtin.module and FunctionOpInterface. In many cases the lowering using
the library function is not needed because enough static information is
available to simplify the dealloc operations enough to use the more
light-weight lowerings. In those situations, it is better to allow the pass to
run on functions for additional parallelization and for easier use with the
transform dialect (e.g., when the transform ops are in the same
builtin.module as the function to be transformed).

Diff Detail

Event Timeline

maerhart created this revision.Aug 28 2023, 1:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2023, 1:24 AM
maerhart requested review of this revision.Aug 28 2023, 1:24 AM
springerm accepted this revision.Aug 28 2023, 7:10 AM
This revision is now accepted and ready to land.Aug 28 2023, 7:10 AM