@@ -122,15 +122,13 @@ struct ParseInstructionInfo {
122
122
: AsmRewrites(rewrites) {}
123
123
};
124
124
125
- enum OperandMatchResultTy {
126
- MatchOperand_Success, // operand matched successfully
127
- MatchOperand_NoMatch, // operand did not match
128
- MatchOperand_ParseFail // operand matched but had errors
129
- };
130
-
131
125
// / Ternary parse status returned by various parse* methods.
132
126
class ParseStatus {
133
- enum class StatusTy { Success, Failure, NoMatch } Status;
127
+ enum class StatusTy {
128
+ Success, // Parsing Succeeded
129
+ Failure, // Parsing Failed after consuming some tokens
130
+ NoMatch, // Parsing Failed without consuming any tokens
131
+ } Status;
134
132
135
133
public:
136
134
#if __cplusplus >= 202002L
@@ -152,19 +150,6 @@ class ParseStatus {
152
150
constexpr bool isSuccess () const { return Status == StatusTy::Success; }
153
151
constexpr bool isFailure () const { return Status == StatusTy::Failure; }
154
152
constexpr bool isNoMatch () const { return Status == StatusTy::NoMatch; }
155
-
156
- // Allow implicit conversions to / from OperandMatchResultTy.
157
- LLVM_DEPRECATED (" Migrate to ParseStatus" , " " )
158
- constexpr ParseStatus (OperandMatchResultTy R)
159
- : Status(R == MatchOperand_Success ? Success
160
- : R == MatchOperand_ParseFail ? Failure
161
- : NoMatch) {}
162
- LLVM_DEPRECATED (" Migrate to ParseStatus" , " " )
163
- constexpr operator OperandMatchResultTy () const {
164
- return isSuccess () ? MatchOperand_Success
165
- : isFailure () ? MatchOperand_ParseFail
166
- : MatchOperand_NoMatch;
167
- }
168
153
};
169
154
170
155
enum class DiagnosticPredicateTy {
0 commit comments