This is an archive of the discontinued LLVM Phabricator instance.

[mlir][func][bufferization][NFC] Simplify implementation
ClosedPublic

Authored by springerm on Aug 14 2023, 8:45 AM.

Details

Summary

The bufferization implementation of func.func and func.call can be simplified. It still contained code that was necessary when One-Shot Bufferize removed return values. This functionality has been extracted into a separate pass a while ago.

Depends On: D157863

Diff Detail

Event Timeline

springerm created this revision.Aug 14 2023, 8:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2023, 8:45 AM
springerm requested review of this revision.Aug 14 2023, 8:45 AM

more simplifications

maerhart accepted this revision.Aug 15 2023, 2:30 AM
This revision is now accepted and ready to land.Aug 15 2023, 2:30 AM
mehdi_amini added inline comments.Aug 16 2023, 11:50 PM
mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.td
546

There is no way for a static method to be overridden, the body is supposed to use information from the concrete op class here otherwise it does not make sense.
Shall we make it a non-static method?