This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][bufferize] Store analysis results in BufferizationAliasInfo
ClosedPublic

Authored by springerm on Nov 7 2021, 5:54 PM.

Details

Summary
  • Store inplace bufferization decisions in inplaceBufferized.
  • Remove InPlaceSpec. Use a bool instead.
  • Use BufferizableOpInterface::bufferizesToWritableMemory and bufferizesToWritableMemory instead of getInPlace(BlockArgument). The analysis does not care about inplacability of block arguments. It only cares whether the buffer can be written to or not.
  • The kInPlaceResultsAttrName op attribute is for testing purposes only.

This commit further decouples BufferizationAliasInfo from other dialects such as SCF.

Depends On D113374

Diff Detail

Event Timeline

springerm created this revision.Nov 7 2021, 5:54 PM
springerm requested review of this revision.Nov 7 2021, 5:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2021, 5:54 PM
This revision is now accepted and ready to land.Nov 10 2021, 12:19 AM
This revision was landed with ongoing or failed builds.Nov 10 2021, 5:38 PM
This revision was automatically updated to reflect the committed changes.