This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add a ViewLikeOpInterface
ClosedPublic

Authored by antiagainst on Apr 22 2020, 8:24 AM.

Details

Summary

This can help provide a common interface for view-like
ops so that for example Linalg's dependency analysis
can avoid relying on concrete ops.

Diff Detail

Event Timeline

antiagainst created this revision.Apr 22 2020, 8:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2020, 8:24 AM
mravishankar accepted this revision.Apr 22 2020, 10:17 AM
mravishankar added a subscriber: mravishankar.

Nice! This looks fine to me, but maybe wait for another set of eyes on it (I am not as intimately familiar with the interface method specification)

This revision is now accepted and ready to land.Apr 22 2020, 10:17 AM
rriddle accepted this revision.Apr 23 2020, 11:00 AM

I think this is fine for now.

mlir/include/mlir/Interfaces/ViewLikeInterface.td
22

You could avoid the word "memref" here altogether and just use buffer.

antiagainst marked an inline comment as done.Apr 24 2020, 7:25 AM
This revision was automatically updated to reflect the committed changes.