This is an archive of the discontinued LLVM Phabricator instance.

[mlir] generalize matchers to support batch matmul
ClosedPublic

Authored by ftynse on Jul 5 2023, 5:08 AM.

Details

Summary

Mostly the same logic applies, with a different rank.

Additionally expose the logic to do identify contraction dimensions and
contraction-like bodies as independent transform ops. This allows us to
recognize "generic" operations and not only the named ones.

Rework the contraction body matching logic to no longer rely on
contraction operations beign uniquely named.

Diff Detail

Event Timeline

ftynse created this revision.Jul 5 2023, 5:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2023, 5:08 AM
ftynse requested review of this revision.Jul 5 2023, 5:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2023, 5:08 AM
springerm accepted this revision.Jul 5 2023, 6:16 AM
This revision is now accepted and ready to land.Jul 5 2023, 6:16 AM
ftynse updated this revision to Diff 538128.Jul 7 2023, 6:40 AM

Fix test

ftynse added a comment.Jul 7 2023, 7:43 AM

TOSA bazel breakage is irrelevant here.

This revision was landed with ongoing or failed builds.Jul 7 2023, 7:44 AM
This revision was automatically updated to reflect the committed changes.