This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization][NFC] Bufferize with PostOrder traversal
ClosedPublic

Authored by springerm on Jun 23 2022, 3:33 AM.

Details

Summary

This is useful because the result type of an op can sometimes be inferred from its body (e.g., scf.if). This will be utilized in subsequent changes.

Also introduces a new getBufferType interface method on BufferizableOpInterface. This method is useful for computing a bufferized block argument type with respect to OpOperand types of the parent op.

Depends On D128275

Diff Detail

Event Timeline

springerm created this revision.Jun 23 2022, 3:33 AM
springerm requested review of this revision.Jun 23 2022, 3:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2022, 3:33 AM
nicolasvasilache accepted this revision.Jun 24 2022, 8:30 AM

ok, but please drop the NFC part, the tests are changing.

This revision is now accepted and ready to land.Jun 24 2022, 8:30 AM
This revision was landed with ongoing or failed builds.Jun 27 2022, 3:46 AM
This revision was automatically updated to reflect the committed changes.