[RISCV] Replace OperandMatchResultTy with ParseStatus (NFC)
authorSergei Barannikov <barannikov88@gmail.com>
Sat, 1 Jul 2023 22:51:17 +0000 (01:51 +0300)
committerSergei Barannikov <barannikov88@gmail.com>
Tue, 4 Jul 2023 19:32:22 +0000 (22:32 +0300)
commitb4b532a9562a1ebca347edc566363fba0531115b
treeb1e84e5e3cab6af5724ce243c4b687ccc04cd72c
parentd73c8c8fab0c79e3be3abf8f4d1fc3469b1bf223
[RISCV] Replace OperandMatchResultTy with ParseStatus (NFC)

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.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D154291
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp