|
10 | 10 | #ifndef LLVM_MC_MCDECODEROPS_H
|
11 | 11 | #define LLVM_MC_MCDECODEROPS_H
|
12 | 12 |
|
13 |
| -namespace llvm { |
| 13 | +namespace llvm::MCD { |
14 | 14 |
|
15 |
| -namespace MCD { |
16 | 15 | // Disassembler state machine opcodes.
|
| 16 | +// nts_t is either uint16_t or uint24_t based on whether large decoder table is |
| 17 | +// enabled. |
17 | 18 | enum DecoderOps {
|
18 |
| - OPC_ExtractField = 1, // OPC_ExtractField(uleb128 Start, uint8_t Len) |
19 |
| - OPC_FilterValue, // OPC_FilterValue(uleb128 Val, uint16_t NumToSkip) |
20 |
| - OPC_CheckField, // OPC_CheckField(uleb128 Start, uint8_t Len, |
21 |
| - // uleb128 Val, uint16_t NumToSkip) |
22 |
| - OPC_CheckPredicate, // OPC_CheckPredicate(uleb128 PIdx, uint16_t NumToSkip) |
23 |
| - OPC_Decode, // OPC_Decode(uleb128 Opcode, uleb128 DIdx) |
24 |
| - OPC_TryDecode, // OPC_TryDecode(uleb128 Opcode, uleb128 DIdx, |
25 |
| - // uint16_t NumToSkip) |
26 |
| - OPC_SoftFail, // OPC_SoftFail(uleb128 PMask, uleb128 NMask) |
27 |
| - OPC_Fail // OPC_Fail() |
| 19 | + OPC_ExtractField = 1, // OPC_ExtractField(uleb128 Start, uint8_t Len) |
| 20 | + OPC_FilterValue, // OPC_FilterValue(uleb128 Val, nts_t NumToSkip) |
| 21 | + OPC_FilterValueOrFail, // OPC_FilterValueOrFail(uleb128 Val) |
| 22 | + OPC_CheckField, // OPC_CheckField(uleb128 Start, uint8_t Len, |
| 23 | + // uleb128 Val, nts_t NumToSkip) |
| 24 | + OPC_CheckFieldOrFail, // OPC_ChecFieldOrFail(uleb128 Start, uint8_t Len, |
| 25 | + // uleb128 Val) |
| 26 | + OPC_CheckPredicate, // OPC_CheckPredicate(uleb128 PIdx, nts_t NumToSkip) |
| 27 | + OPC_CheckPredicateOrFail, // OPC_CheckPredicateOrFail(uleb128 PIdx) |
| 28 | + OPC_Decode, // OPC_Decode(uleb128 Opcode, uleb128 DIdx) |
| 29 | + OPC_TryDecode, // OPC_TryDecode(uleb128 Opcode, uleb128 DIdx, |
| 30 | + // nts_t NumToSkip) |
| 31 | + OPC_TryDecodeOrFail, // OPC_TryDecodeOrFail(uleb128 Opcode, uleb128 DIdx) |
| 32 | + OPC_SoftFail, // OPC_SoftFail(uleb128 PMask, uleb128 NMask) |
| 33 | + OPC_Fail // OPC_Fail() |
28 | 34 | };
|
29 | 35 |
|
30 |
| -} // namespace MCD |
31 |
| -} // namespace llvm |
| 36 | +} // namespace llvm::MCD |
32 | 37 |
|
33 | 38 | #endif
|
0 commit comments