| 1 | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |
| 2 | |* *| |
| 3 | |*Target Register Enum Values *| |
| 4 | |* *| |
| 5 | |* Automatically generated file, do not edit! *| |
| 6 | |* *| |
| 7 | \*===----------------------------------------------------------------------===*/ |
| 8 | |
| 9 | /* Capstone Disassembly Engine */ |
| 10 | /* By Nguyen Anh Quynh <[email protected]>, 2013-2019 */ |
| 11 | |
| 12 | |
| 13 | #ifdef GET_REGINFO_ENUMcxx . . $ `arch/XCore/XCoreDisassembler.c:143:9`! |
| 14 | #undef GET_REGINFO_ENUMcxx . . $ `arch/XCore/XCoreDisassembler.c:143:9`! |
| 15 | |
| 16 | enumcxx . . $ $anonymous_type_dc11bca41ee70368_0# { |
| 17 | XCore_NoRegistercxx . . $ XCore_NoRegister., |
| 18 | XCore_CPcxx . . $ XCore_CP. = 1, |
| 19 | XCore_DPcxx . . $ XCore_DP. = 2, |
| 20 | XCore_LRcxx . . $ XCore_LR. = 3, |
| 21 | XCore_SPcxx . . $ XCore_SP. = 4, |
| 22 | XCore_R0cxx . . $ XCore_R0. = 5, |
| 23 | XCore_R1cxx . . $ XCore_R1. = 6, |
| 24 | XCore_R2cxx . . $ XCore_R2. = 7, |
| 25 | XCore_R3cxx . . $ XCore_R3. = 8, |
| 26 | XCore_R4cxx . . $ XCore_R4. = 9, |
| 27 | XCore_R5cxx . . $ XCore_R5. = 10, |
| 28 | XCore_R6cxx . . $ XCore_R6. = 11, |
| 29 | XCore_R7cxx . . $ XCore_R7. = 12, |
| 30 | XCore_R8cxx . . $ XCore_R8. = 13, |
| 31 | XCore_R9cxx . . $ XCore_R9. = 14, |
| 32 | XCore_R10cxx . . $ XCore_R10. = 15, |
| 33 | XCore_R11cxx . . $ XCore_R11. = 16, |
| 34 | XCore_NUM_TARGET_REGScxx . . $ XCore_NUM_TARGET_REGS. // 17 |
| 35 | }; |
| 36 | |
| 37 | // Register classes |
| 38 | enumcxx . . $ $anonymous_type_dc11bca41ee70368_1# { |
| 39 | XCore_RRegsRegClassIDcxx . . $ XCore_RRegsRegClassID. = 0, |
| 40 | XCore_GRRegsRegClassIDcxx . . $ XCore_GRRegsRegClassID. = 1 |
| 41 | }; |
| 42 | |
| 43 | #endif // GET_REGINFO_ENUM |
| 44 | |
| 45 | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |
| 46 | |* *| |
| 47 | |*MC Register Information *| |
| 48 | |* *| |
| 49 | |* Automatically generated file, do not edit! *| |
| 50 | |* *| |
| 51 | \*===----------------------------------------------------------------------===*/ |
| 52 | |
| 53 | |
| 54 | #ifdef GET_REGINFO_MC_DESCcxx . . $ `arch/XCore/XCoreDisassembler.c:144:9`! |
| 55 | #undef GET_REGINFO_MC_DESCcxx . . $ `arch/XCore/XCoreDisassembler.c:144:9`! |
| 56 | |
| 57 | static const MCPhysRegcxx . . $ MCPhysReg# XCoreRegDiffListscxx . . $ XCoreRegDiffLists.[] = { |
| 58 | /* 0 */ 65535, 0, |
| 59 | }; |
| 60 | |
| 61 | static const uint16_tcxx . . $ uint16_t# XCoreSubRegIdxListscxx . . $ XCoreSubRegIdxLists.[] = { |
| 62 | /* 0 */ 0, |
| 63 | }; |
| 64 | |
| 65 | static const MCRegisterDesccxx . . $ MCRegisterDesc# XCoreRegDesccxx . . $ XCoreRegDesc.[] = { // Descriptors |
| 66 | { 3, 0, 0, 0, 0, 0 }, |
| 67 | { 38, 1, 1, 0, 1, 0 }, |
| 68 | { 41, 1, 1, 0, 1, 0 }, |
| 69 | { 47, 1, 1, 0, 1, 0 }, |
| 70 | { 44, 1, 1, 0, 1, 0 }, |
| 71 | { 4, 1, 1, 0, 1, 0 }, |
| 72 | { 11, 1, 1, 0, 1, 0 }, |
| 73 | { 14, 1, 1, 0, 1, 0 }, |
| 74 | { 17, 1, 1, 0, 1, 0 }, |
| 75 | { 20, 1, 1, 0, 1, 0 }, |
| 76 | { 23, 1, 1, 0, 1, 0 }, |
| 77 | { 26, 1, 1, 0, 1, 0 }, |
| 78 | { 29, 1, 1, 0, 1, 0 }, |
| 79 | { 32, 1, 1, 0, 1, 0 }, |
| 80 | { 35, 1, 1, 0, 1, 0 }, |
| 81 | { 0, 1, 1, 0, 1, 0 }, |
| 82 | { 7, 1, 1, 0, 1, 0 }, |
| 83 | }; |
| 84 | |
| 85 | // RRegs Register Class... |
| 86 | static const MCPhysRegcxx . . $ MCPhysReg# RRegscxx . . $ RRegs.[] = { |
| 87 | XCore_R0cxx . . $ XCore_R0., XCore_R1cxx . . $ XCore_R1., XCore_R2cxx . . $ XCore_R2., XCore_R3cxx . . $ XCore_R3., XCore_R4cxx . . $ XCore_R4., XCore_R5cxx . . $ XCore_R5., XCore_R6cxx . . $ XCore_R6., XCore_R7cxx . . $ XCore_R7., XCore_R8cxx . . $ XCore_R8., XCore_R9cxx . . $ XCore_R9., XCore_R10cxx . . $ XCore_R10., XCore_R11cxx . . $ XCore_R11., XCore_CPcxx . . $ XCore_CP., XCore_DPcxx . . $ XCore_DP., XCore_SPcxx . . $ XCore_SP., XCore_LRcxx . . $ XCore_LR., |
| 88 | }; |
| 89 | |
| 90 | // RRegs Bit set. |
| 91 | static const uint8_tcxx . . $ uint8_t# RRegsBitscxx . . $ RRegsBits.[] = { |
| 92 | 0xfe, 0xff, 0x01, |
| 93 | }; |
| 94 | |
| 95 | // GRRegs Register Class... |
| 96 | static const MCPhysRegcxx . . $ MCPhysReg# GRRegscxx . . $ GRRegs.[] = { |
| 97 | XCore_R0cxx . . $ XCore_R0., XCore_R1cxx . . $ XCore_R1., XCore_R2cxx . . $ XCore_R2., XCore_R3cxx . . $ XCore_R3., XCore_R4cxx . . $ XCore_R4., XCore_R5cxx . . $ XCore_R5., XCore_R6cxx . . $ XCore_R6., XCore_R7cxx . . $ XCore_R7., XCore_R8cxx . . $ XCore_R8., XCore_R9cxx . . $ XCore_R9., XCore_R10cxx . . $ XCore_R10., XCore_R11cxx . . $ XCore_R11., |
| 98 | }; |
| 99 | |
| 100 | // GRRegs Bit set. |
| 101 | static const uint8_tcxx . . $ uint8_t# GRRegsBitscxx . . $ GRRegsBits.[] = { |
| 102 | 0xe0, 0xff, 0x01, |
| 103 | }; |
| 104 | |
| 105 | static const MCRegisterClasscxx . . $ MCRegisterClass# XCoreMCRegisterClassescxx . . $ XCoreMCRegisterClasses.[] = { |
| 106 | { RRegscxx . . $ RRegs., RRegsBitscxx . . $ RRegsBits., sizeof(RRegsBitscxx . . $ RRegsBits.) }, |
| 107 | { GRRegscxx . . $ GRRegs., GRRegsBitscxx . . $ GRRegsBits., sizeof(GRRegsBitscxx . . $ GRRegsBits.) }, |
| 108 | }; |
| 109 | |
| 110 | #endif // GET_REGINFO_MC_DESC |