This is an archive of the discontinued LLVM Phabricator instance.

MIR: Start diagnosing too many operands on an instruction
ClosedPublic

Authored by arsenm on Feb 18 2022, 2:50 PM.

Details

Summary

Previously this would just assert which was annoying and didn't point
to the specific instruction/operand.

Diff Detail

Event Timeline

arsenm created this revision.Feb 18 2022, 2:50 PM
arsenm requested review of this revision.Feb 18 2022, 2:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2022, 2:50 PM
Herald added a subscriber: wdng. · View Herald Transcript
thegameg accepted this revision.Feb 18 2022, 3:47 PM

Maybe we can do this in the MachineVerifier too?

This revision is now accepted and ready to land.Feb 18 2022, 3:47 PM

Maybe we can do this in the MachineVerifier too?

The verifier already checks the number of operands