This is an archive of the discontinued LLVM Phabricator instance.

[mlir][bufferization][NFC] Move more unknown type conversion logic into BufferizationOptions
ClosedPublic

Authored by springerm on Jul 7 2022, 4:01 AM.

Details

Summary

The unknownTypeConversion bufferization option (enum) is now a type converter function option. Some logic of getMemRefType is now handled by that function.

This change makes type conversion more controllable. Previously, there were only two options when generating memref types for non-bufferizable ops: Static identity layout or fully dynamic layout. With this change, users of One-Shot Bufferize can provide a function with custom logic.

Diff Detail

Event Timeline

springerm created this revision.Jul 7 2022, 4:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2022, 4:01 AM
springerm requested review of this revision.Jul 7 2022, 4:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2022, 4:01 AM
nicolasvasilache accepted this revision.Jul 7 2022, 4:34 AM
This revision is now accepted and ready to land.Jul 7 2022, 4:34 AM