[all-commits] [llvm/llvm-project] b31be7: [AArch64] Replace OperandMatchResultTy with ParseS...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Thu Jul 13 16:22:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b31be75ff4d1aed94914d5ef53a903d034d5b6ad
https://github.com/llvm/llvm-project/commit/b31be75ff4d1aed94914d5ef53a903d034d5b6ad
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2023-07-14 (Fri, 14 Jul 2023)
Changed paths:
M llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Log Message:
-----------
[AArch64] 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: david-arm
Differential Revision: https://reviews.llvm.org/D154292
More information about the All-commits
mailing list