Skip to content

Commit bd0a806

Browse files
committed
tmp
1 parent 1afadbf commit bd0a806

File tree

7 files changed

+1573
-1409
lines changed

7 files changed

+1573
-1409
lines changed

llvm/include/llvm/MC/MCDecoderOps.h

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,15 @@
1313
namespace llvm::MCD {
1414

1515
// Disassembler state machine opcodes.
16-
// nts_t is either uint16_t or uint24_t based on whether large decoder table is
17-
// enabled.
1816
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)
2925
};
3026

3127
} // namespace llvm::MCD

llvm/utils/TableGen/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ add_tablegen(llvm-tblgen LLVM
4343
DAGISelMatcherGen.cpp
4444
DAGISelMatcherOpt.cpp
4545
DecoderEmitter.cpp
46+
DecoderTableEmitter.cpp
47+
DecoderTree.cpp
48+
DecoderTreeBuilder.cpp
4649
DFAEmitter.cpp
4750
DFAPacketizerEmitter.cpp
4851
DisassemblerEmitter.cpp

0 commit comments

Comments
 (0)