|
13 | 13 | namespace llvm::MCD {
|
14 | 14 |
|
15 | 15 | // Disassembler state machine opcodes.
|
16 |
| -// nts_t is either uint16_t or uint24_t based on whether large decoder table is |
17 |
| -// enabled. |
18 | 16 | enum DecoderOps {
|
19 |
| - OPC_Scope = 1, // OPC_Scope(nts_t NumToSkip) |
20 |
| - OPC_ExtractField, // OPC_ExtractField(uleb128 Start, uint8_t Len) |
21 |
| - OPC_FilterValueOrSkip, // OPC_FilterValueOrSkip(uleb128 Val, nts_t NumToSkip) |
22 |
| - OPC_FilterValue, // OPC_FilterValue(uleb128 Val) |
23 |
| - OPC_CheckField, // OPC_CheckField(uleb128 Start, uint8_t Len, |
24 |
| - // uleb128 Val) |
25 |
| - OPC_CheckPredicate, // OPC_CheckPredicate(uleb128 PIdx) |
26 |
| - OPC_Decode, // OPC_Decode(uleb128 Opcode, uleb128 DIdx) |
27 |
| - OPC_TryDecode, // OPC_TryDecode(uleb128 Opcode, uleb128 DIdx) |
28 |
| - OPC_SoftFail, // OPC_SoftFail(uleb128 PMask, uleb128 NMask) |
| 17 | + OPC_Scope = 1, // OPC_Scope(uleb128 Size) |
| 18 | + OPC_SwitchField, // OPC_SwitchField(uleb128 Start, uint8_t Len, |
| 19 | + // [uleb128 Val, uleb128 Size]...) |
| 20 | + OPC_CheckField, // OPC_CheckField(uleb128 Start, uint8_t Len, uleb128 Val) |
| 21 | + OPC_CheckPredicate, // OPC_CheckPredicate(uleb128 PIdx) |
| 22 | + OPC_Decode, // OPC_Decode(uleb128 Opcode, uleb128 DIdx) |
| 23 | + OPC_TryDecode, // OPC_TryDecode(uleb128 Opcode, uleb128 DIdx) |
| 24 | + OPC_SoftFail, // OPC_SoftFail(uleb128 PMask, uleb128 NMask) |
29 | 25 | };
|
30 | 26 |
|
31 | 27 | } // namespace llvm::MCD
|
|
0 commit comments