This is an archive of the discontinued LLVM Phabricator instance.

[Matrix] Add shape verification.
ClosedPublic

Authored by fhahn on Apr 3 2023, 4:54 AM.

Details

Summary

At the moment, lower-matrix-intrinsics accepts mis-matches between
shapes for operations. See shape-verification.ll for an example where
@llvm.matrix.column.major.load specifies 6x1 and then the use
(@llvm.matrix.multiply) specifies the operand to have 1x6.

This patch adds verification for shapes to check if shapes match.

Diff Detail

Event Timeline

fhahn created this revision.Apr 3 2023, 4:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 4:54 AM
fhahn requested review of this revision.Apr 3 2023, 4:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 4:54 AM
thegameg accepted this revision.Apr 3 2023, 1:33 PM

LGTM

This revision is now accepted and ready to land.Apr 3 2023, 1:33 PM
This revision was landed with ongoing or failed builds.May 13 2023, 1:42 AM
This revision was automatically updated to reflect the committed changes.