[all-commits] [llvm/llvm-project] 4a6edd: [VE] Replace OperandMatchResultTy with ParseStatus...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Wed Aug 16 01:48:21 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4a6edd5c103fa8972588449fd2f7201dbd5a097a
https://github.com/llvm/llvm-project/commit/4a6edd5c103fa8972588449fd2f7201dbd5a097a
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2023-08-16 (Wed, 16 Aug 2023)
Changed paths:
M llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp
Log Message:
-----------
[VE] 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: kaz7
Differential Revision: https://reviews.llvm.org/D154317
More information about the All-commits
mailing list