This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Refine diagnostic messages
ClosedPublic

Authored by awarzynski on Jul 11 2023, 11:54 AM.

Details

Summary

Clarify a few diagnostics so that they are more consistent with the
corresponding condition. For example:

if (positionAttr.size() >
    static_cast<unsigned>(getSourceVectorType().getRank()))

should lead to ("no greater than"):

return emitOpError(
    "expected position attribute of rank no greater than vector rank");

as opposed to ("smaller"):

return emitOpError(
    "expected position attribute of rank smaller than vector rank");

Diff Detail

Event Timeline

awarzynski created this revision.Jul 11 2023, 11:54 AM
Herald added a project: Restricted Project. · View Herald Transcript
awarzynski requested review of this revision.Jul 11 2023, 11:54 AM

It's a bit late for such subtle changes, but this one feels fairly safe 😂 .

aartbik accepted this revision.Jul 11 2023, 1:54 PM
This revision is now accepted and ready to land.Jul 11 2023, 1:54 PM
dcaballe accepted this revision.Jul 11 2023, 2:10 PM

Thanks and sorry! I fixed some cases but not all!

This revision was automatically updated to reflect the committed changes.