This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] NFC - Refactor hoist padding transform and separate packing creation functionality in a separate transform
ClosedPublic

Authored by nicolasvasilache on Apr 3 2023, 10:56 AM.

Details

Summary

This revision is in prevision for upcoming improvements.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Apr 3 2023, 10:56 AM
nicolasvasilache planned changes to this revision.Apr 3 2023, 10:56 AM
nicolasvasilache edited the summary of this revision. (Show Details)

Update

ThomasRaoux accepted this revision.Apr 3 2023, 3:27 PM
ThomasRaoux added inline comments.
mlir/include/mlir/Dialect/SCF/Utils/Utils.h
60

does it needs to be marled as static?

mlir/lib/Dialect/Tensor/Utils/Utils.cpp
90

revert?

This revision is now accepted and ready to land.Apr 3 2023, 3:27 PM
nicolasvasilache marked 2 inline comments as done.Apr 3 2023, 11:47 PM
nicolasvasilache added inline comments.
mlir/include/mlir/Dialect/SCF/Utils/Utils.h
60

inline in .h for small things is legit in my book, I also see precedent in e.g.

inline raw_ostream &operator<<(...) { def }
mlir/lib/Dialect/Tensor/Utils/Utils.cpp
90

this was intended, increasing readability AFAIC