This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Add MapOp to Linalg structured ops.
ClosedPublic

Authored by akuegel on Oct 12 2022, 1:02 AM.

Details

Summary

This will allow to model elementwise ops with this special op instead of using
GenericOp.
Also allow MapOp and ReduceOp to have no result if the output type is not a tensor.
This is needed for buffer semantics.

Diff Detail

Event Timeline

akuegel created this revision.Oct 12 2022, 1:02 AM
akuegel requested review of this revision.Oct 12 2022, 1:02 AM
pifon2a accepted this revision.Oct 12 2022, 1:08 AM

Awesomeness

This revision is now accepted and ready to land.Oct 12 2022, 1:08 AM
akuegel updated this revision to Diff 467052.Oct 12 2022, 1:19 AM

Fix linalg.map example, change result type for ReduceOp to Variadic<AnyTensor>

This revision was automatically updated to reflect the committed changes.