This is an archive of the discontinued LLVM Phabricator instance.

[Mips] Replace OperandMatchResultTy with ParseStatus (NFC)
ClosedPublic

Authored by barannikov88 on Jul 2 2023, 9:08 PM.

Details

Summary

ParseStatus is slightly more convenient to use due to implicit
conversion from bool, which allows to do something like:

return Error(L, "msg");

when with MatchOperandResultTy it had to be:

Error(L, "msg");
return MatchOperand_ParseFail;

It also has more appropriate name since parse* methods are not only for
parsing operands.

Diff Detail

Event Timeline

barannikov88 created this revision.Jul 2 2023, 9:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2023, 9:08 PM
barannikov88 requested review of this revision.Jul 2 2023, 9:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2023, 9:08 PM
barannikov88 retitled this revision from [MIPS] Replace OperandMatchResultTy with ParseStatus (NFC) to [Mips] Replace OperandMatchResultTy with ParseStatus (NFC).Jul 2 2023, 9:12 PM
barannikov88 added reviewers: yundiqian, MaskRay.
MaskRay edited reviewers, added: wzssyqa; removed: yundiqian.Jul 5 2023, 1:46 PM
MaskRay accepted this revision.Jul 5 2023, 1:56 PM
This revision is now accepted and ready to land.Jul 5 2023, 1:56 PM
This revision was landed with ongoing or failed builds.Jul 6 2023, 7:36 AM
This revision was automatically updated to reflect the committed changes.