This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Linalg] Rename `packElementWiseOp` to `packGenericOp` (NFC)
ClosedPublic

Authored by chelini on May 5 2023, 5:59 AM.

Details

Summary

Commit b4563ee17ce45728a323c2708e549627b0a8ee9c enabled propagation for
pack and unpack through non-elementwise operations, update comments and
methods names to reflect the changes made.

Rework some tests where the linalg.generic was reading from
tensor.empty, which is undefined behaviour.

Diff Detail

Event Timeline

chelini created this revision.May 5 2023, 5:59 AM
Herald added a project: Restricted Project. · View Herald Transcript
chelini requested review of this revision.May 5 2023, 5:59 AM
qedawkins accepted this revision.May 5 2023, 8:47 AM

Thanks for the cleanup!

mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
298–301

nit: linalg.generic, generic op, or just genericOp is fine to be consistent with other comments.

This revision is now accepted and ready to land.May 5 2023, 8:47 AM
hanchung accepted this revision.May 5 2023, 11:44 AM
chelini updated this revision to Diff 520290.May 8 2023, 12:56 AM
chelini marked an inline comment as done.

Rebase and address comments.

This revision was landed with ongoing or failed builds.May 8 2023, 12:58 AM
This revision was automatically updated to reflect the committed changes.