This is an archive of the discontinued LLVM Phabricator instance.

[mlir][transform] SplitHandleOp: add additional distribution options
ClosedPublic

Authored by springerm on May 5 2023, 6:32 AM.

Details

Summary

Add options to handle cases where there are not enough or too many payload ops mapped to the given handle.

Depends On: D149937

Diff Detail

Event Timeline

springerm created this revision.May 5 2023, 6:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2023, 6:32 AM
springerm requested review of this revision.May 5 2023, 6:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2023, 6:32 AM
ftynse accepted this revision.May 8 2023, 5:41 AM
ftynse added inline comments.
mlir/lib/Dialect/Transform/IR/TransformOps.cpp
1520

Nit: since we know that all vectors except one will have at most one element, this is a legitimate case for SmallVector<SmallVector<Operation *, 1>>. Maybe we can also reserve space in the vector identified by getOverflowResult.

1522

Nit: use auto && for enumeate.

1530

Ditto.

This revision is now accepted and ready to land.May 8 2023, 5:41 AM
This revision was landed with ongoing or failed builds.May 9 2023, 2:44 AM
This revision was automatically updated to reflect the committed changes.
springerm marked 3 inline comments as done.