| 1 | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |
| 2 | |* *| |
| 3 | |* Target Register and Register Classes Information *| |
| 4 | |* *| |
| 5 | |* Automatically generated file, do not edit! *| |
| 6 | |* *| |
| 7 | \*===----------------------------------------------------------------------===*/ |
| 8 | |
| 9 | namespace llvm { |
| 10 | |
| 11 | extern const MCRegisterClassStorage<34, 460, 342, 100, 29, 16, 21> HexagonMCRegisterClassStorage; |
| 12 | |
| 13 | static const MVT::SimpleValueType HexagonVTLists[] = { |
| 14 | /* 0 */ MVT::i1, MVT::Other, |
| 15 | /* 2 */ MVT::i1, MVT::v2i1, MVT::v4i1, MVT::v8i1, MVT::v4i8, MVT::v2i16, MVT::i32, MVT::Other, |
| 16 | /* 10 */ MVT::i64, MVT::Other, |
| 17 | /* 12 */ MVT::v64i1, MVT::v64i1, MVT::v32i1, MVT::v16i1, MVT::Other, |
| 18 | /* 17 */ MVT::v128i1, MVT::v128i1, MVT::v64i1, MVT::v32i1, MVT::Other, |
| 19 | /* 22 */ MVT::v2048i8, MVT::v1024i16, MVT::v512i32, MVT::v1024i1, MVT::Other, |
| 20 | /* 27 */ MVT::v4096i8, MVT::v2048i16, MVT::v1024i32, MVT::v2048i1, MVT::Other, |
| 21 | /* 32 */ MVT::i32, MVT::f32, MVT::v4i8, MVT::v2i16, MVT::Other, |
| 22 | /* 37 */ MVT::i64, MVT::f64, MVT::v8i8, MVT::v4i16, MVT::v2i32, MVT::Other, |
| 23 | /* 43 */ MVT::v64i8, MVT::v32i16, MVT::v16i32, MVT::v32f16, MVT::v32bf16, MVT::v16f32, MVT::Other, |
| 24 | /* 50 */ MVT::v128i8, MVT::v64i16, MVT::v32i32, MVT::v64f16, MVT::v64bf16, MVT::v32f32, MVT::Other, |
| 25 | /* 57 */ MVT::v256i8, MVT::v128i16, MVT::v64i32, MVT::v128f16, MVT::v128bf16, MVT::v64f32, MVT::Other, |
| 26 | /* 64 */ MVT::Untyped, MVT::Other, |
| 27 | }; |
| 28 | |
| 29 | #ifdef __GNUC__ |
| 30 | #pragma GCC diagnostic push |
| 31 | #pragma GCC diagnostic ignored "-Woverlength-strings" |
| 32 | #endif |
| 33 | static constexpr char HexagonSubRegIndexStrings[] = { |
| 34 | /* 0 */ "vsub_fake\000" |
| 35 | /* 10 */ "isub_hi\000" |
| 36 | /* 18 */ "wsub_hi_then_vsub_hi\000" |
| 37 | /* 39 */ "wsub_hi\000" |
| 38 | /* 47 */ "isub_lo\000" |
| 39 | /* 55 */ "wsub_hi_then_vsub_lo\000" |
| 40 | /* 76 */ "wsub_lo\000" |
| 41 | /* 84 */ "subreg_overflow\000" |
| 42 | }; |
| 43 | #ifdef __GNUC__ |
| 44 | #pragma GCC diagnostic pop |
| 45 | #endif |
| 46 | |
| 47 | |
| 48 | static constexpr uint32_t HexagonSubRegIndexNameOffsets[] = { |
| 49 | 10, |
| 50 | 47, |
| 51 | 84, |
| 52 | 0, |
| 53 | 31, |
| 54 | 68, |
| 55 | 39, |
| 56 | 76, |
| 57 | 18, |
| 58 | 55, |
| 59 | }; |
| 60 | |
| 61 | static const TargetRegisterInfo::SubRegCoveredBits HexagonSubRegIdxRangeTable[] = { |
| 62 | { .Offset: 4294967295, .Size: 4294967295 }, |
| 63 | { .Offset: 32, .Size: 32 }, // isub_hi |
| 64 | { .Offset: 0, .Size: 32 }, // isub_lo |
| 65 | { .Offset: 0, .Size: 1 }, // subreg_overflow |
| 66 | { .Offset: 4294967295, .Size: 4294967295 }, // vsub_fake |
| 67 | { .Offset: 4294967295, .Size: 4294967295 }, // vsub_hi |
| 68 | { .Offset: 4294967295, .Size: 4294967295 }, // vsub_lo |
| 69 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_hi |
| 70 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_lo |
| 71 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_hi_then_vsub_hi |
| 72 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_hi_then_vsub_lo |
| 73 | { .Offset: 4294967295, .Size: 4294967295 }, |
| 74 | { .Offset: 32, .Size: 32 }, // isub_hi |
| 75 | { .Offset: 0, .Size: 32 }, // isub_lo |
| 76 | { .Offset: 0, .Size: 1 }, // subreg_overflow |
| 77 | { .Offset: 4294967295, .Size: 4294967295 }, // vsub_fake |
| 78 | { .Offset: 4294967295, .Size: 4294967295 }, // vsub_hi |
| 79 | { .Offset: 4294967295, .Size: 4294967295 }, // vsub_lo |
| 80 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_hi |
| 81 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_lo |
| 82 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_hi_then_vsub_hi |
| 83 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_hi_then_vsub_lo |
| 84 | { .Offset: 4294967295, .Size: 4294967295 }, |
| 85 | { .Offset: 32, .Size: 32 }, // isub_hi |
| 86 | { .Offset: 0, .Size: 32 }, // isub_lo |
| 87 | { .Offset: 0, .Size: 1 }, // subreg_overflow |
| 88 | { .Offset: 4294967295, .Size: 4294967295 }, // vsub_fake |
| 89 | { .Offset: 4294967295, .Size: 4294967295 }, // vsub_hi |
| 90 | { .Offset: 4294967295, .Size: 4294967295 }, // vsub_lo |
| 91 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_hi |
| 92 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_lo |
| 93 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_hi_then_vsub_hi |
| 94 | { .Offset: 4294967295, .Size: 4294967295 }, // wsub_hi_then_vsub_lo |
| 95 | }; |
| 96 | |
| 97 | |
| 98 | static const LaneBitmask HexagonSubRegIndexLaneMaskTable[] = { |
| 99 | LaneBitmask::getAll(), |
| 100 | LaneBitmask(0x0000000000000001), // isub_hi |
| 101 | LaneBitmask(0x0000000000000002), // isub_lo |
| 102 | LaneBitmask(0x0000000000000004), // subreg_overflow |
| 103 | LaneBitmask(0x0000000000000008), // vsub_fake |
| 104 | LaneBitmask(0x0000000000000010), // vsub_hi |
| 105 | LaneBitmask(0x0000000000000020), // vsub_lo |
| 106 | LaneBitmask(0x00000000000000C0), // wsub_hi |
| 107 | LaneBitmask(0x0000000000000030), // wsub_lo |
| 108 | LaneBitmask(0x0000000000000040), // wsub_hi_then_vsub_hi |
| 109 | LaneBitmask(0x0000000000000080), // wsub_hi_then_vsub_lo |
| 110 | }; |
| 111 | |
| 112 | |
| 113 | |
| 114 | static const TargetRegisterInfo::RegClassInfo HexagonRegClassInfos[] = { |
| 115 | // Mode = 0 (DefaultMode) |
| 116 | { .RegSize: 1, .SpillSize: 1, .SpillAlignment: 0, /*HexagonVTLists+*/.VTListOffset: 0 }, // UsrBits |
| 117 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // SysRegs |
| 118 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // GuestRegs |
| 119 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 32 }, // IntRegs |
| 120 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CtrRegs |
| 121 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // GeneralSubRegs |
| 122 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // V62Regs |
| 123 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // IntRegsLow8 |
| 124 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CtrRegs_and_V62Regs |
| 125 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 2 }, // PredRegs |
| 126 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // V62Regs_with_isub_hi |
| 127 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CSRegs |
| 128 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // ModRegs |
| 129 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CtrRegs_with_subreg_overflow |
| 130 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // V65Regs |
| 131 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // SysRegs64 |
| 132 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 37 }, // DoubleRegs |
| 133 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // GuestRegs64 |
| 134 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // VectRegRev |
| 135 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64 |
| 136 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // GeneralDoubleLow8Regs |
| 137 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // DoubleRegs_with_isub_hi_in_IntRegsLow8 |
| 138 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64_and_V62Regs |
| 139 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CircRegs |
| 140 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64_with_isub_hi_in_CSRegs |
| 141 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64_with_isub_hi_in_ModRegs |
| 142 | { .RegSize: 64, .SpillSize: 512, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 12 }, // HvxQR |
| 143 | { .RegSize: 512, .SpillSize: 512, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 43 }, // HvxVR |
| 144 | { .RegSize: 512, .SpillSize: 512, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 43 }, // HvxVR_and_V65Regs |
| 145 | { .RegSize: 1024, .SpillSize: 1024, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 50 }, // HvxWR |
| 146 | { .RegSize: 1024, .SpillSize: 1024, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 50 }, // HvxWR_with_wsub_lo |
| 147 | { .RegSize: 2048, .SpillSize: 2048, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 64 }, // HvxVQR |
| 148 | { .RegSize: 16384, .SpillSize: 16384, .SpillAlignment: 16384, /*HexagonVTLists+*/.VTListOffset: 22 }, // HlxLR |
| 149 | { .RegSize: 32768, .SpillSize: 32768, .SpillAlignment: 32768, /*HexagonVTLists+*/.VTListOffset: 27 }, // HlxLLR |
| 150 | // Mode = 1 (Hvx64) |
| 151 | { .RegSize: 1, .SpillSize: 1, .SpillAlignment: 0, /*HexagonVTLists+*/.VTListOffset: 0 }, // UsrBits |
| 152 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // SysRegs |
| 153 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // GuestRegs |
| 154 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 32 }, // IntRegs |
| 155 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CtrRegs |
| 156 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // GeneralSubRegs |
| 157 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // V62Regs |
| 158 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // IntRegsLow8 |
| 159 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CtrRegs_and_V62Regs |
| 160 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 2 }, // PredRegs |
| 161 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // V62Regs_with_isub_hi |
| 162 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CSRegs |
| 163 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // ModRegs |
| 164 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CtrRegs_with_subreg_overflow |
| 165 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // V65Regs |
| 166 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // SysRegs64 |
| 167 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 37 }, // DoubleRegs |
| 168 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // GuestRegs64 |
| 169 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // VectRegRev |
| 170 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64 |
| 171 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // GeneralDoubleLow8Regs |
| 172 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // DoubleRegs_with_isub_hi_in_IntRegsLow8 |
| 173 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64_and_V62Regs |
| 174 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CircRegs |
| 175 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64_with_isub_hi_in_CSRegs |
| 176 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64_with_isub_hi_in_ModRegs |
| 177 | { .RegSize: 64, .SpillSize: 512, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 12 }, // HvxQR |
| 178 | { .RegSize: 512, .SpillSize: 512, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 43 }, // HvxVR |
| 179 | { .RegSize: 512, .SpillSize: 512, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 43 }, // HvxVR_and_V65Regs |
| 180 | { .RegSize: 1024, .SpillSize: 1024, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 50 }, // HvxWR |
| 181 | { .RegSize: 1024, .SpillSize: 1024, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 50 }, // HvxWR_with_wsub_lo |
| 182 | { .RegSize: 2048, .SpillSize: 2048, .SpillAlignment: 512, /*HexagonVTLists+*/.VTListOffset: 64 }, // HvxVQR |
| 183 | { .RegSize: 16384, .SpillSize: 16384, .SpillAlignment: 16384, /*HexagonVTLists+*/.VTListOffset: 22 }, // HlxLR |
| 184 | { .RegSize: 32768, .SpillSize: 32768, .SpillAlignment: 32768, /*HexagonVTLists+*/.VTListOffset: 27 }, // HlxLLR |
| 185 | // Mode = 2 (Hvx128) |
| 186 | { .RegSize: 1, .SpillSize: 1, .SpillAlignment: 0, /*HexagonVTLists+*/.VTListOffset: 0 }, // UsrBits |
| 187 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // SysRegs |
| 188 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // GuestRegs |
| 189 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 32 }, // IntRegs |
| 190 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CtrRegs |
| 191 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // GeneralSubRegs |
| 192 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // V62Regs |
| 193 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // IntRegsLow8 |
| 194 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CtrRegs_and_V62Regs |
| 195 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 2 }, // PredRegs |
| 196 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // V62Regs_with_isub_hi |
| 197 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CSRegs |
| 198 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // ModRegs |
| 199 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // CtrRegs_with_subreg_overflow |
| 200 | { .RegSize: 32, .SpillSize: 32, .SpillAlignment: 32, /*HexagonVTLists+*/.VTListOffset: 8 }, // V65Regs |
| 201 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // SysRegs64 |
| 202 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 37 }, // DoubleRegs |
| 203 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // GuestRegs64 |
| 204 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // VectRegRev |
| 205 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64 |
| 206 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // GeneralDoubleLow8Regs |
| 207 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // DoubleRegs_with_isub_hi_in_IntRegsLow8 |
| 208 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64_and_V62Regs |
| 209 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CircRegs |
| 210 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64_with_isub_hi_in_CSRegs |
| 211 | { .RegSize: 64, .SpillSize: 64, .SpillAlignment: 64, /*HexagonVTLists+*/.VTListOffset: 10 }, // CtrRegs64_with_isub_hi_in_ModRegs |
| 212 | { .RegSize: 128, .SpillSize: 1024, .SpillAlignment: 1024, /*HexagonVTLists+*/.VTListOffset: 17 }, // HvxQR |
| 213 | { .RegSize: 1024, .SpillSize: 1024, .SpillAlignment: 1024, /*HexagonVTLists+*/.VTListOffset: 50 }, // HvxVR |
| 214 | { .RegSize: 1024, .SpillSize: 1024, .SpillAlignment: 1024, /*HexagonVTLists+*/.VTListOffset: 50 }, // HvxVR_and_V65Regs |
| 215 | { .RegSize: 2048, .SpillSize: 2048, .SpillAlignment: 1024, /*HexagonVTLists+*/.VTListOffset: 57 }, // HvxWR |
| 216 | { .RegSize: 2048, .SpillSize: 2048, .SpillAlignment: 1024, /*HexagonVTLists+*/.VTListOffset: 57 }, // HvxWR_with_wsub_lo |
| 217 | { .RegSize: 4096, .SpillSize: 4096, .SpillAlignment: 1024, /*HexagonVTLists+*/.VTListOffset: 64 }, // HvxVQR |
| 218 | { .RegSize: 16384, .SpillSize: 16384, .SpillAlignment: 16384, /*HexagonVTLists+*/.VTListOffset: 22 }, // HlxLR |
| 219 | { .RegSize: 32768, .SpillSize: 32768, .SpillAlignment: 32768, /*HexagonVTLists+*/.VTListOffset: 27 }, // HlxLLR |
| 220 | }; |
| 221 | |
| 222 | static const uint8_t HexagonCostPerUseTable[] = { |
| 223 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; |
| 224 | |
| 225 | |
| 226 | static const bool HexagonInAllocatableClassTable[] = { |
| 227 | false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, }; |
| 228 | |
| 229 | |
| 230 | static const TargetRegisterInfoDesc HexagonRegInfoDesc = { // Extra Descriptors |
| 231 | .CostPerUse: HexagonCostPerUseTable, .NumCosts: 1, .InAllocatableClass: HexagonInAllocatableClassTable}; |
| 232 | |
| 233 | unsigned HexagonGenRegisterInfo::composeSubRegIndicesImpl(unsigned IdxA, unsigned IdxB) const { |
| 234 | static const uint8_t RowMap[10] = { |
| 235 | 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, |
| 236 | }; |
| 237 | static const uint8_t Rows[2][10] = { |
| 238 | { 0, 0, 0, 0, Hexagon::wsub_hi_then_vsub_hi, Hexagon::wsub_hi_then_vsub_lo, 0, 0, 0, 0, }, |
| 239 | { 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, 0, 0, 0, 0, }, |
| 240 | }; |
| 241 | |
| 242 | --IdxA; assert(IdxA < 10); (void) IdxA; |
| 243 | --IdxB; assert(IdxB < 10); |
| 244 | return Rows[RowMap[IdxA]][IdxB]; |
| 245 | } |
| 246 | |
| 247 | unsigned HexagonGenRegisterInfo::reverseComposeSubRegIndicesImpl(unsigned IdxA, unsigned IdxB) const { |
| 248 | static const uint8_t Table[10][10] = { |
| 249 | { 0, 0, 0, 0, 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, }, |
| 250 | { 0, 0, 0, 0, 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, }, |
| 251 | { 0, 0, 0, 0, 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, }, |
| 252 | { 0, 0, 0, 0, 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, }, |
| 253 | { 0, 0, 0, 0, 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, }, |
| 254 | { 0, 0, 0, 0, 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, }, |
| 255 | { 0, 0, 0, 0, 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, }, |
| 256 | { 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, 0, 0, 0, 0, }, |
| 257 | { 0, 0, 0, 0, 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, }, |
| 258 | { 0, 0, 0, 0, 0, 0, 0, 0, Hexagon::vsub_hi, Hexagon::vsub_lo, }, |
| 259 | }; |
| 260 | |
| 261 | --IdxA; assert(IdxA < 10); |
| 262 | --IdxB; assert(IdxB < 10); |
| 263 | return Table[IdxA][IdxB]; |
| 264 | } |
| 265 | |
| 266 | struct MaskRolOp { |
| 267 | LaneBitmask Mask; |
| 268 | uint8_t RotateLeft; |
| 269 | }; |
| 270 | static const MaskRolOp LaneMaskComposeSequences[] = { |
| 271 | { .Mask: LaneBitmask(0xFFFFFFFFFFFFFFFF), .RotateLeft: 0 }, { .Mask: LaneBitmask::getNone(), .RotateLeft: 0 }, // Sequence 0 |
| 272 | { .Mask: LaneBitmask(0xFFFFFFFFFFFFFFFF), .RotateLeft: 1 }, { .Mask: LaneBitmask::getNone(), .RotateLeft: 0 }, // Sequence 2 |
| 273 | { .Mask: LaneBitmask(0xFFFFFFFFFFFFFFFF), .RotateLeft: 2 }, { .Mask: LaneBitmask::getNone(), .RotateLeft: 0 }, // Sequence 4 |
| 274 | { .Mask: LaneBitmask(0xFFFFFFFFFFFFFFFF), .RotateLeft: 3 }, { .Mask: LaneBitmask::getNone(), .RotateLeft: 0 }, // Sequence 6 |
| 275 | { .Mask: LaneBitmask(0xFFFFFFFFFFFFFFFF), .RotateLeft: 4 }, { .Mask: LaneBitmask::getNone(), .RotateLeft: 0 }, // Sequence 8 |
| 276 | { .Mask: LaneBitmask(0xFFFFFFFFFFFFFFFF), .RotateLeft: 5 }, { .Mask: LaneBitmask::getNone(), .RotateLeft: 0 }, // Sequence 10 |
| 277 | { .Mask: LaneBitmask(0xFFFFFFFFFFFFFFFF), .RotateLeft: 6 }, { .Mask: LaneBitmask::getNone(), .RotateLeft: 0 }, // Sequence 12 |
| 278 | { .Mask: LaneBitmask(0xFFFFFFFFFFFFFFFF), .RotateLeft: 7 }, { .Mask: LaneBitmask::getNone(), .RotateLeft: 0 } // Sequence 14 |
| 279 | }; |
| 280 | static const uint8_t CompositeSequences[] = { |
| 281 | 0, // to isub_hi |
| 282 | 2, // to isub_lo |
| 283 | 4, // to subreg_overflow |
| 284 | 6, // to vsub_fake |
| 285 | 8, // to vsub_hi |
| 286 | 10, // to vsub_lo |
| 287 | 4, // to wsub_hi |
| 288 | 0, // to wsub_lo |
| 289 | 12, // to wsub_hi_then_vsub_hi |
| 290 | 14 // to wsub_hi_then_vsub_lo |
| 291 | }; |
| 292 | |
| 293 | LaneBitmask HexagonGenRegisterInfo::composeSubRegIndexLaneMaskImpl(unsigned IdxA, LaneBitmask LaneMask) const { |
| 294 | --IdxA; assert(IdxA < 10 && "Subregister index out of bounds" ); |
| 295 | LaneBitmask Result; |
| 296 | for (const MaskRolOp *Ops = |
| 297 | &LaneMaskComposeSequences[CompositeSequences[IdxA]]; |
| 298 | Ops->Mask.any(); ++Ops) { |
| 299 | LaneBitmask::Type M = LaneMask.getAsInteger() & Ops->Mask.getAsInteger(); |
| 300 | if (unsigned S = Ops->RotateLeft) |
| 301 | Result |= LaneBitmask((M << S) | (M >> (LaneBitmask::BitWidth - S))); |
| 302 | else |
| 303 | Result |= LaneBitmask(M); |
| 304 | } |
| 305 | return Result; |
| 306 | } |
| 307 | |
| 308 | LaneBitmask HexagonGenRegisterInfo::reverseComposeSubRegIndexLaneMaskImpl(unsigned IdxA, LaneBitmask LaneMask) const { |
| 309 | LaneMask &= getSubRegIndexLaneMask(SubIdx: IdxA); |
| 310 | --IdxA; assert(IdxA < 10 && "Subregister index out of bounds" ); |
| 311 | LaneBitmask Result; |
| 312 | for (const MaskRolOp *Ops = |
| 313 | &LaneMaskComposeSequences[CompositeSequences[IdxA]]; |
| 314 | Ops->Mask.any(); ++Ops) { |
| 315 | LaneBitmask::Type M = LaneMask.getAsInteger(); |
| 316 | if (unsigned S = Ops->RotateLeft) |
| 317 | Result |= LaneBitmask((M >> S) | (M << (LaneBitmask::BitWidth - S))); |
| 318 | else |
| 319 | Result |= LaneBitmask(M); |
| 320 | } |
| 321 | return Result; |
| 322 | } |
| 323 | |
| 324 | const TargetRegisterClass *HexagonGenRegisterInfo::getSubClassWithSubReg(const TargetRegisterClass *RC, unsigned Idx) const { |
| 325 | static constexpr uint8_t Table[34][10] = { |
| 326 | { // UsrBits |
| 327 | 0, // isub_hi |
| 328 | 0, // isub_lo |
| 329 | 0, // subreg_overflow |
| 330 | 0, // vsub_fake |
| 331 | 0, // vsub_hi |
| 332 | 0, // vsub_lo |
| 333 | 0, // wsub_hi |
| 334 | 0, // wsub_lo |
| 335 | 0, // wsub_hi_then_vsub_hi |
| 336 | 0, // wsub_hi_then_vsub_lo |
| 337 | }, |
| 338 | { // SysRegs |
| 339 | 0, // isub_hi |
| 340 | 0, // isub_lo |
| 341 | 0, // subreg_overflow |
| 342 | 0, // vsub_fake |
| 343 | 0, // vsub_hi |
| 344 | 0, // vsub_lo |
| 345 | 0, // wsub_hi |
| 346 | 0, // wsub_lo |
| 347 | 0, // wsub_hi_then_vsub_hi |
| 348 | 0, // wsub_hi_then_vsub_lo |
| 349 | }, |
| 350 | { // GuestRegs |
| 351 | 0, // isub_hi |
| 352 | 0, // isub_lo |
| 353 | 0, // subreg_overflow |
| 354 | 0, // vsub_fake |
| 355 | 0, // vsub_hi |
| 356 | 0, // vsub_lo |
| 357 | 0, // wsub_hi |
| 358 | 0, // wsub_lo |
| 359 | 0, // wsub_hi_then_vsub_hi |
| 360 | 0, // wsub_hi_then_vsub_lo |
| 361 | }, |
| 362 | { // IntRegs |
| 363 | 0, // isub_hi |
| 364 | 0, // isub_lo |
| 365 | 0, // subreg_overflow |
| 366 | 0, // vsub_fake |
| 367 | 0, // vsub_hi |
| 368 | 0, // vsub_lo |
| 369 | 0, // wsub_hi |
| 370 | 0, // wsub_lo |
| 371 | 0, // wsub_hi_then_vsub_hi |
| 372 | 0, // wsub_hi_then_vsub_lo |
| 373 | }, |
| 374 | { // CtrRegs |
| 375 | 0, // isub_hi |
| 376 | 0, // isub_lo |
| 377 | 14, // subreg_overflow -> CtrRegs_with_subreg_overflow |
| 378 | 0, // vsub_fake |
| 379 | 0, // vsub_hi |
| 380 | 0, // vsub_lo |
| 381 | 0, // wsub_hi |
| 382 | 0, // wsub_lo |
| 383 | 0, // wsub_hi_then_vsub_hi |
| 384 | 0, // wsub_hi_then_vsub_lo |
| 385 | }, |
| 386 | { // GeneralSubRegs |
| 387 | 0, // isub_hi |
| 388 | 0, // isub_lo |
| 389 | 0, // subreg_overflow |
| 390 | 0, // vsub_fake |
| 391 | 0, // vsub_hi |
| 392 | 0, // vsub_lo |
| 393 | 0, // wsub_hi |
| 394 | 0, // wsub_lo |
| 395 | 0, // wsub_hi_then_vsub_hi |
| 396 | 0, // wsub_hi_then_vsub_lo |
| 397 | }, |
| 398 | { // V62Regs |
| 399 | 11, // isub_hi -> V62Regs_with_isub_hi |
| 400 | 11, // isub_lo -> V62Regs_with_isub_hi |
| 401 | 0, // subreg_overflow |
| 402 | 0, // vsub_fake |
| 403 | 0, // vsub_hi |
| 404 | 0, // vsub_lo |
| 405 | 0, // wsub_hi |
| 406 | 0, // wsub_lo |
| 407 | 0, // wsub_hi_then_vsub_hi |
| 408 | 0, // wsub_hi_then_vsub_lo |
| 409 | }, |
| 410 | { // IntRegsLow8 |
| 411 | 0, // isub_hi |
| 412 | 0, // isub_lo |
| 413 | 0, // subreg_overflow |
| 414 | 0, // vsub_fake |
| 415 | 0, // vsub_hi |
| 416 | 0, // vsub_lo |
| 417 | 0, // wsub_hi |
| 418 | 0, // wsub_lo |
| 419 | 0, // wsub_hi_then_vsub_hi |
| 420 | 0, // wsub_hi_then_vsub_lo |
| 421 | }, |
| 422 | { // CtrRegs_and_V62Regs |
| 423 | 0, // isub_hi |
| 424 | 0, // isub_lo |
| 425 | 0, // subreg_overflow |
| 426 | 0, // vsub_fake |
| 427 | 0, // vsub_hi |
| 428 | 0, // vsub_lo |
| 429 | 0, // wsub_hi |
| 430 | 0, // wsub_lo |
| 431 | 0, // wsub_hi_then_vsub_hi |
| 432 | 0, // wsub_hi_then_vsub_lo |
| 433 | }, |
| 434 | { // PredRegs |
| 435 | 0, // isub_hi |
| 436 | 0, // isub_lo |
| 437 | 0, // subreg_overflow |
| 438 | 0, // vsub_fake |
| 439 | 0, // vsub_hi |
| 440 | 0, // vsub_lo |
| 441 | 0, // wsub_hi |
| 442 | 0, // wsub_lo |
| 443 | 0, // wsub_hi_then_vsub_hi |
| 444 | 0, // wsub_hi_then_vsub_lo |
| 445 | }, |
| 446 | { // V62Regs_with_isub_hi |
| 447 | 11, // isub_hi -> V62Regs_with_isub_hi |
| 448 | 11, // isub_lo -> V62Regs_with_isub_hi |
| 449 | 0, // subreg_overflow |
| 450 | 0, // vsub_fake |
| 451 | 0, // vsub_hi |
| 452 | 0, // vsub_lo |
| 453 | 0, // wsub_hi |
| 454 | 0, // wsub_lo |
| 455 | 0, // wsub_hi_then_vsub_hi |
| 456 | 0, // wsub_hi_then_vsub_lo |
| 457 | }, |
| 458 | { // CSRegs |
| 459 | 0, // isub_hi |
| 460 | 0, // isub_lo |
| 461 | 0, // subreg_overflow |
| 462 | 0, // vsub_fake |
| 463 | 0, // vsub_hi |
| 464 | 0, // vsub_lo |
| 465 | 0, // wsub_hi |
| 466 | 0, // wsub_lo |
| 467 | 0, // wsub_hi_then_vsub_hi |
| 468 | 0, // wsub_hi_then_vsub_lo |
| 469 | }, |
| 470 | { // ModRegs |
| 471 | 0, // isub_hi |
| 472 | 0, // isub_lo |
| 473 | 0, // subreg_overflow |
| 474 | 0, // vsub_fake |
| 475 | 0, // vsub_hi |
| 476 | 0, // vsub_lo |
| 477 | 0, // wsub_hi |
| 478 | 0, // wsub_lo |
| 479 | 0, // wsub_hi_then_vsub_hi |
| 480 | 0, // wsub_hi_then_vsub_lo |
| 481 | }, |
| 482 | { // CtrRegs_with_subreg_overflow |
| 483 | 0, // isub_hi |
| 484 | 0, // isub_lo |
| 485 | 14, // subreg_overflow -> CtrRegs_with_subreg_overflow |
| 486 | 0, // vsub_fake |
| 487 | 0, // vsub_hi |
| 488 | 0, // vsub_lo |
| 489 | 0, // wsub_hi |
| 490 | 0, // wsub_lo |
| 491 | 0, // wsub_hi_then_vsub_hi |
| 492 | 0, // wsub_hi_then_vsub_lo |
| 493 | }, |
| 494 | { // V65Regs |
| 495 | 0, // isub_hi |
| 496 | 0, // isub_lo |
| 497 | 0, // subreg_overflow |
| 498 | 0, // vsub_fake |
| 499 | 0, // vsub_hi |
| 500 | 0, // vsub_lo |
| 501 | 0, // wsub_hi |
| 502 | 0, // wsub_lo |
| 503 | 0, // wsub_hi_then_vsub_hi |
| 504 | 0, // wsub_hi_then_vsub_lo |
| 505 | }, |
| 506 | { // SysRegs64 |
| 507 | 16, // isub_hi -> SysRegs64 |
| 508 | 16, // isub_lo -> SysRegs64 |
| 509 | 0, // subreg_overflow |
| 510 | 0, // vsub_fake |
| 511 | 0, // vsub_hi |
| 512 | 0, // vsub_lo |
| 513 | 0, // wsub_hi |
| 514 | 0, // wsub_lo |
| 515 | 0, // wsub_hi_then_vsub_hi |
| 516 | 0, // wsub_hi_then_vsub_lo |
| 517 | }, |
| 518 | { // DoubleRegs |
| 519 | 17, // isub_hi -> DoubleRegs |
| 520 | 17, // isub_lo -> DoubleRegs |
| 521 | 0, // subreg_overflow |
| 522 | 0, // vsub_fake |
| 523 | 0, // vsub_hi |
| 524 | 0, // vsub_lo |
| 525 | 0, // wsub_hi |
| 526 | 0, // wsub_lo |
| 527 | 0, // wsub_hi_then_vsub_hi |
| 528 | 0, // wsub_hi_then_vsub_lo |
| 529 | }, |
| 530 | { // GuestRegs64 |
| 531 | 18, // isub_hi -> GuestRegs64 |
| 532 | 18, // isub_lo -> GuestRegs64 |
| 533 | 0, // subreg_overflow |
| 534 | 0, // vsub_fake |
| 535 | 0, // vsub_hi |
| 536 | 0, // vsub_lo |
| 537 | 0, // wsub_hi |
| 538 | 0, // wsub_lo |
| 539 | 0, // wsub_hi_then_vsub_hi |
| 540 | 0, // wsub_hi_then_vsub_lo |
| 541 | }, |
| 542 | { // VectRegRev |
| 543 | 0, // isub_hi |
| 544 | 0, // isub_lo |
| 545 | 0, // subreg_overflow |
| 546 | 19, // vsub_fake -> VectRegRev |
| 547 | 19, // vsub_hi -> VectRegRev |
| 548 | 19, // vsub_lo -> VectRegRev |
| 549 | 0, // wsub_hi |
| 550 | 19, // wsub_lo -> VectRegRev |
| 551 | 0, // wsub_hi_then_vsub_hi |
| 552 | 0, // wsub_hi_then_vsub_lo |
| 553 | }, |
| 554 | { // CtrRegs64 |
| 555 | 20, // isub_hi -> CtrRegs64 |
| 556 | 20, // isub_lo -> CtrRegs64 |
| 557 | 0, // subreg_overflow |
| 558 | 0, // vsub_fake |
| 559 | 0, // vsub_hi |
| 560 | 0, // vsub_lo |
| 561 | 0, // wsub_hi |
| 562 | 0, // wsub_lo |
| 563 | 0, // wsub_hi_then_vsub_hi |
| 564 | 0, // wsub_hi_then_vsub_lo |
| 565 | }, |
| 566 | { // GeneralDoubleLow8Regs |
| 567 | 21, // isub_hi -> GeneralDoubleLow8Regs |
| 568 | 21, // isub_lo -> GeneralDoubleLow8Regs |
| 569 | 0, // subreg_overflow |
| 570 | 0, // vsub_fake |
| 571 | 0, // vsub_hi |
| 572 | 0, // vsub_lo |
| 573 | 0, // wsub_hi |
| 574 | 0, // wsub_lo |
| 575 | 0, // wsub_hi_then_vsub_hi |
| 576 | 0, // wsub_hi_then_vsub_lo |
| 577 | }, |
| 578 | { // DoubleRegs_with_isub_hi_in_IntRegsLow8 |
| 579 | 22, // isub_hi -> DoubleRegs_with_isub_hi_in_IntRegsLow8 |
| 580 | 22, // isub_lo -> DoubleRegs_with_isub_hi_in_IntRegsLow8 |
| 581 | 0, // subreg_overflow |
| 582 | 0, // vsub_fake |
| 583 | 0, // vsub_hi |
| 584 | 0, // vsub_lo |
| 585 | 0, // wsub_hi |
| 586 | 0, // wsub_lo |
| 587 | 0, // wsub_hi_then_vsub_hi |
| 588 | 0, // wsub_hi_then_vsub_lo |
| 589 | }, |
| 590 | { // CtrRegs64_and_V62Regs |
| 591 | 23, // isub_hi -> CtrRegs64_and_V62Regs |
| 592 | 23, // isub_lo -> CtrRegs64_and_V62Regs |
| 593 | 0, // subreg_overflow |
| 594 | 0, // vsub_fake |
| 595 | 0, // vsub_hi |
| 596 | 0, // vsub_lo |
| 597 | 0, // wsub_hi |
| 598 | 0, // wsub_lo |
| 599 | 0, // wsub_hi_then_vsub_hi |
| 600 | 0, // wsub_hi_then_vsub_lo |
| 601 | }, |
| 602 | { // CircRegs |
| 603 | 24, // isub_hi -> CircRegs |
| 604 | 24, // isub_lo -> CircRegs |
| 605 | 0, // subreg_overflow |
| 606 | 0, // vsub_fake |
| 607 | 0, // vsub_hi |
| 608 | 0, // vsub_lo |
| 609 | 0, // wsub_hi |
| 610 | 0, // wsub_lo |
| 611 | 0, // wsub_hi_then_vsub_hi |
| 612 | 0, // wsub_hi_then_vsub_lo |
| 613 | }, |
| 614 | { // CtrRegs64_with_isub_hi_in_CSRegs |
| 615 | 25, // isub_hi -> CtrRegs64_with_isub_hi_in_CSRegs |
| 616 | 25, // isub_lo -> CtrRegs64_with_isub_hi_in_CSRegs |
| 617 | 0, // subreg_overflow |
| 618 | 0, // vsub_fake |
| 619 | 0, // vsub_hi |
| 620 | 0, // vsub_lo |
| 621 | 0, // wsub_hi |
| 622 | 0, // wsub_lo |
| 623 | 0, // wsub_hi_then_vsub_hi |
| 624 | 0, // wsub_hi_then_vsub_lo |
| 625 | }, |
| 626 | { // CtrRegs64_with_isub_hi_in_ModRegs |
| 627 | 26, // isub_hi -> CtrRegs64_with_isub_hi_in_ModRegs |
| 628 | 26, // isub_lo -> CtrRegs64_with_isub_hi_in_ModRegs |
| 629 | 0, // subreg_overflow |
| 630 | 0, // vsub_fake |
| 631 | 0, // vsub_hi |
| 632 | 0, // vsub_lo |
| 633 | 0, // wsub_hi |
| 634 | 0, // wsub_lo |
| 635 | 0, // wsub_hi_then_vsub_hi |
| 636 | 0, // wsub_hi_then_vsub_lo |
| 637 | }, |
| 638 | { // HvxQR |
| 639 | 0, // isub_hi |
| 640 | 0, // isub_lo |
| 641 | 0, // subreg_overflow |
| 642 | 0, // vsub_fake |
| 643 | 0, // vsub_hi |
| 644 | 0, // vsub_lo |
| 645 | 0, // wsub_hi |
| 646 | 0, // wsub_lo |
| 647 | 0, // wsub_hi_then_vsub_hi |
| 648 | 0, // wsub_hi_then_vsub_lo |
| 649 | }, |
| 650 | { // HvxVR |
| 651 | 0, // isub_hi |
| 652 | 0, // isub_lo |
| 653 | 0, // subreg_overflow |
| 654 | 0, // vsub_fake |
| 655 | 0, // vsub_hi |
| 656 | 0, // vsub_lo |
| 657 | 0, // wsub_hi |
| 658 | 0, // wsub_lo |
| 659 | 0, // wsub_hi_then_vsub_hi |
| 660 | 0, // wsub_hi_then_vsub_lo |
| 661 | }, |
| 662 | { // HvxVR_and_V65Regs |
| 663 | 0, // isub_hi |
| 664 | 0, // isub_lo |
| 665 | 0, // subreg_overflow |
| 666 | 0, // vsub_fake |
| 667 | 0, // vsub_hi |
| 668 | 0, // vsub_lo |
| 669 | 0, // wsub_hi |
| 670 | 0, // wsub_lo |
| 671 | 0, // wsub_hi_then_vsub_hi |
| 672 | 0, // wsub_hi_then_vsub_lo |
| 673 | }, |
| 674 | { // HvxWR |
| 675 | 0, // isub_hi |
| 676 | 0, // isub_lo |
| 677 | 0, // subreg_overflow |
| 678 | 0, // vsub_fake |
| 679 | 30, // vsub_hi -> HvxWR |
| 680 | 30, // vsub_lo -> HvxWR |
| 681 | 0, // wsub_hi |
| 682 | 31, // wsub_lo -> HvxWR_with_wsub_lo |
| 683 | 0, // wsub_hi_then_vsub_hi |
| 684 | 0, // wsub_hi_then_vsub_lo |
| 685 | }, |
| 686 | { // HvxWR_with_wsub_lo |
| 687 | 0, // isub_hi |
| 688 | 0, // isub_lo |
| 689 | 0, // subreg_overflow |
| 690 | 31, // vsub_fake -> HvxWR_with_wsub_lo |
| 691 | 31, // vsub_hi -> HvxWR_with_wsub_lo |
| 692 | 31, // vsub_lo -> HvxWR_with_wsub_lo |
| 693 | 0, // wsub_hi |
| 694 | 31, // wsub_lo -> HvxWR_with_wsub_lo |
| 695 | 0, // wsub_hi_then_vsub_hi |
| 696 | 0, // wsub_hi_then_vsub_lo |
| 697 | }, |
| 698 | { // HvxVQR |
| 699 | 0, // isub_hi |
| 700 | 0, // isub_lo |
| 701 | 0, // subreg_overflow |
| 702 | 0, // vsub_fake |
| 703 | 32, // vsub_hi -> HvxVQR |
| 704 | 32, // vsub_lo -> HvxVQR |
| 705 | 32, // wsub_hi -> HvxVQR |
| 706 | 32, // wsub_lo -> HvxVQR |
| 707 | 32, // wsub_hi_then_vsub_hi -> HvxVQR |
| 708 | 32, // wsub_hi_then_vsub_lo -> HvxVQR |
| 709 | }, |
| 710 | { // HlxLR |
| 711 | 0, // isub_hi |
| 712 | 0, // isub_lo |
| 713 | 0, // subreg_overflow |
| 714 | 0, // vsub_fake |
| 715 | 0, // vsub_hi |
| 716 | 0, // vsub_lo |
| 717 | 0, // wsub_hi |
| 718 | 0, // wsub_lo |
| 719 | 0, // wsub_hi_then_vsub_hi |
| 720 | 0, // wsub_hi_then_vsub_lo |
| 721 | }, |
| 722 | { // HlxLLR |
| 723 | 0, // isub_hi |
| 724 | 0, // isub_lo |
| 725 | 0, // subreg_overflow |
| 726 | 0, // vsub_fake |
| 727 | 34, // vsub_hi -> HlxLLR |
| 728 | 34, // vsub_lo -> HlxLLR |
| 729 | 0, // wsub_hi |
| 730 | 0, // wsub_lo |
| 731 | 0, // wsub_hi_then_vsub_hi |
| 732 | 0, // wsub_hi_then_vsub_lo |
| 733 | }, |
| 734 | |
| 735 | }; |
| 736 | assert(RC && "Missing regclass" ); |
| 737 | if (!Idx) return RC; |
| 738 | --Idx; |
| 739 | assert(Idx < 10 && "Bad subreg" ); |
| 740 | unsigned TV = Table[RC->getID()][Idx]; |
| 741 | return TV ? getRegClass(i: TV - 1) : nullptr; |
| 742 | }const TargetRegisterClass *HexagonGenRegisterInfo::getSubRegisterClass(const TargetRegisterClass *RC, unsigned Idx) const { |
| 743 | static constexpr uint8_t Table[34][10] = { |
| 744 | { // UsrBits |
| 745 | 0, // UsrBits:isub_hi |
| 746 | 0, // UsrBits:isub_lo |
| 747 | 0, // UsrBits:subreg_overflow |
| 748 | 0, // UsrBits:vsub_fake |
| 749 | 0, // UsrBits:vsub_hi |
| 750 | 0, // UsrBits:vsub_lo |
| 751 | 0, // UsrBits:wsub_hi |
| 752 | 0, // UsrBits:wsub_lo |
| 753 | 0, // UsrBits:wsub_hi_then_vsub_hi |
| 754 | 0, // UsrBits:wsub_hi_then_vsub_lo |
| 755 | }, |
| 756 | { // SysRegs |
| 757 | 0, // SysRegs:isub_hi |
| 758 | 0, // SysRegs:isub_lo |
| 759 | 0, // SysRegs:subreg_overflow |
| 760 | 0, // SysRegs:vsub_fake |
| 761 | 0, // SysRegs:vsub_hi |
| 762 | 0, // SysRegs:vsub_lo |
| 763 | 0, // SysRegs:wsub_hi |
| 764 | 0, // SysRegs:wsub_lo |
| 765 | 0, // SysRegs:wsub_hi_then_vsub_hi |
| 766 | 0, // SysRegs:wsub_hi_then_vsub_lo |
| 767 | }, |
| 768 | { // GuestRegs |
| 769 | 0, // GuestRegs:isub_hi |
| 770 | 0, // GuestRegs:isub_lo |
| 771 | 0, // GuestRegs:subreg_overflow |
| 772 | 0, // GuestRegs:vsub_fake |
| 773 | 0, // GuestRegs:vsub_hi |
| 774 | 0, // GuestRegs:vsub_lo |
| 775 | 0, // GuestRegs:wsub_hi |
| 776 | 0, // GuestRegs:wsub_lo |
| 777 | 0, // GuestRegs:wsub_hi_then_vsub_hi |
| 778 | 0, // GuestRegs:wsub_hi_then_vsub_lo |
| 779 | }, |
| 780 | { // IntRegs |
| 781 | 0, // IntRegs:isub_hi |
| 782 | 0, // IntRegs:isub_lo |
| 783 | 0, // IntRegs:subreg_overflow |
| 784 | 0, // IntRegs:vsub_fake |
| 785 | 0, // IntRegs:vsub_hi |
| 786 | 0, // IntRegs:vsub_lo |
| 787 | 0, // IntRegs:wsub_hi |
| 788 | 0, // IntRegs:wsub_lo |
| 789 | 0, // IntRegs:wsub_hi_then_vsub_hi |
| 790 | 0, // IntRegs:wsub_hi_then_vsub_lo |
| 791 | }, |
| 792 | { // CtrRegs |
| 793 | 0, // CtrRegs:isub_hi |
| 794 | 0, // CtrRegs:isub_lo |
| 795 | 1, // CtrRegs:subreg_overflow -> UsrBits |
| 796 | 0, // CtrRegs:vsub_fake |
| 797 | 0, // CtrRegs:vsub_hi |
| 798 | 0, // CtrRegs:vsub_lo |
| 799 | 0, // CtrRegs:wsub_hi |
| 800 | 0, // CtrRegs:wsub_lo |
| 801 | 0, // CtrRegs:wsub_hi_then_vsub_hi |
| 802 | 0, // CtrRegs:wsub_hi_then_vsub_lo |
| 803 | }, |
| 804 | { // GeneralSubRegs |
| 805 | 0, // GeneralSubRegs:isub_hi |
| 806 | 0, // GeneralSubRegs:isub_lo |
| 807 | 0, // GeneralSubRegs:subreg_overflow |
| 808 | 0, // GeneralSubRegs:vsub_fake |
| 809 | 0, // GeneralSubRegs:vsub_hi |
| 810 | 0, // GeneralSubRegs:vsub_lo |
| 811 | 0, // GeneralSubRegs:wsub_hi |
| 812 | 0, // GeneralSubRegs:wsub_lo |
| 813 | 0, // GeneralSubRegs:wsub_hi_then_vsub_hi |
| 814 | 0, // GeneralSubRegs:wsub_hi_then_vsub_lo |
| 815 | }, |
| 816 | { // V62Regs |
| 817 | 9, // V62Regs:isub_hi -> CtrRegs_and_V62Regs |
| 818 | 9, // V62Regs:isub_lo -> CtrRegs_and_V62Regs |
| 819 | 0, // V62Regs:subreg_overflow |
| 820 | 0, // V62Regs:vsub_fake |
| 821 | 0, // V62Regs:vsub_hi |
| 822 | 0, // V62Regs:vsub_lo |
| 823 | 0, // V62Regs:wsub_hi |
| 824 | 0, // V62Regs:wsub_lo |
| 825 | 0, // V62Regs:wsub_hi_then_vsub_hi |
| 826 | 0, // V62Regs:wsub_hi_then_vsub_lo |
| 827 | }, |
| 828 | { // IntRegsLow8 |
| 829 | 0, // IntRegsLow8:isub_hi |
| 830 | 0, // IntRegsLow8:isub_lo |
| 831 | 0, // IntRegsLow8:subreg_overflow |
| 832 | 0, // IntRegsLow8:vsub_fake |
| 833 | 0, // IntRegsLow8:vsub_hi |
| 834 | 0, // IntRegsLow8:vsub_lo |
| 835 | 0, // IntRegsLow8:wsub_hi |
| 836 | 0, // IntRegsLow8:wsub_lo |
| 837 | 0, // IntRegsLow8:wsub_hi_then_vsub_hi |
| 838 | 0, // IntRegsLow8:wsub_hi_then_vsub_lo |
| 839 | }, |
| 840 | { // CtrRegs_and_V62Regs |
| 841 | 0, // CtrRegs_and_V62Regs:isub_hi |
| 842 | 0, // CtrRegs_and_V62Regs:isub_lo |
| 843 | 0, // CtrRegs_and_V62Regs:subreg_overflow |
| 844 | 0, // CtrRegs_and_V62Regs:vsub_fake |
| 845 | 0, // CtrRegs_and_V62Regs:vsub_hi |
| 846 | 0, // CtrRegs_and_V62Regs:vsub_lo |
| 847 | 0, // CtrRegs_and_V62Regs:wsub_hi |
| 848 | 0, // CtrRegs_and_V62Regs:wsub_lo |
| 849 | 0, // CtrRegs_and_V62Regs:wsub_hi_then_vsub_hi |
| 850 | 0, // CtrRegs_and_V62Regs:wsub_hi_then_vsub_lo |
| 851 | }, |
| 852 | { // PredRegs |
| 853 | 0, // PredRegs:isub_hi |
| 854 | 0, // PredRegs:isub_lo |
| 855 | 0, // PredRegs:subreg_overflow |
| 856 | 0, // PredRegs:vsub_fake |
| 857 | 0, // PredRegs:vsub_hi |
| 858 | 0, // PredRegs:vsub_lo |
| 859 | 0, // PredRegs:wsub_hi |
| 860 | 0, // PredRegs:wsub_lo |
| 861 | 0, // PredRegs:wsub_hi_then_vsub_hi |
| 862 | 0, // PredRegs:wsub_hi_then_vsub_lo |
| 863 | }, |
| 864 | { // V62Regs_with_isub_hi |
| 865 | 9, // V62Regs_with_isub_hi:isub_hi -> CtrRegs_and_V62Regs |
| 866 | 9, // V62Regs_with_isub_hi:isub_lo -> CtrRegs_and_V62Regs |
| 867 | 0, // V62Regs_with_isub_hi:subreg_overflow |
| 868 | 0, // V62Regs_with_isub_hi:vsub_fake |
| 869 | 0, // V62Regs_with_isub_hi:vsub_hi |
| 870 | 0, // V62Regs_with_isub_hi:vsub_lo |
| 871 | 0, // V62Regs_with_isub_hi:wsub_hi |
| 872 | 0, // V62Regs_with_isub_hi:wsub_lo |
| 873 | 0, // V62Regs_with_isub_hi:wsub_hi_then_vsub_hi |
| 874 | 0, // V62Regs_with_isub_hi:wsub_hi_then_vsub_lo |
| 875 | }, |
| 876 | { // CSRegs |
| 877 | 0, // CSRegs:isub_hi |
| 878 | 0, // CSRegs:isub_lo |
| 879 | 0, // CSRegs:subreg_overflow |
| 880 | 0, // CSRegs:vsub_fake |
| 881 | 0, // CSRegs:vsub_hi |
| 882 | 0, // CSRegs:vsub_lo |
| 883 | 0, // CSRegs:wsub_hi |
| 884 | 0, // CSRegs:wsub_lo |
| 885 | 0, // CSRegs:wsub_hi_then_vsub_hi |
| 886 | 0, // CSRegs:wsub_hi_then_vsub_lo |
| 887 | }, |
| 888 | { // ModRegs |
| 889 | 0, // ModRegs:isub_hi |
| 890 | 0, // ModRegs:isub_lo |
| 891 | 0, // ModRegs:subreg_overflow |
| 892 | 0, // ModRegs:vsub_fake |
| 893 | 0, // ModRegs:vsub_hi |
| 894 | 0, // ModRegs:vsub_lo |
| 895 | 0, // ModRegs:wsub_hi |
| 896 | 0, // ModRegs:wsub_lo |
| 897 | 0, // ModRegs:wsub_hi_then_vsub_hi |
| 898 | 0, // ModRegs:wsub_hi_then_vsub_lo |
| 899 | }, |
| 900 | { // CtrRegs_with_subreg_overflow |
| 901 | 0, // CtrRegs_with_subreg_overflow:isub_hi |
| 902 | 0, // CtrRegs_with_subreg_overflow:isub_lo |
| 903 | 1, // CtrRegs_with_subreg_overflow:subreg_overflow -> UsrBits |
| 904 | 0, // CtrRegs_with_subreg_overflow:vsub_fake |
| 905 | 0, // CtrRegs_with_subreg_overflow:vsub_hi |
| 906 | 0, // CtrRegs_with_subreg_overflow:vsub_lo |
| 907 | 0, // CtrRegs_with_subreg_overflow:wsub_hi |
| 908 | 0, // CtrRegs_with_subreg_overflow:wsub_lo |
| 909 | 0, // CtrRegs_with_subreg_overflow:wsub_hi_then_vsub_hi |
| 910 | 0, // CtrRegs_with_subreg_overflow:wsub_hi_then_vsub_lo |
| 911 | }, |
| 912 | { // V65Regs |
| 913 | 0, // V65Regs:isub_hi |
| 914 | 0, // V65Regs:isub_lo |
| 915 | 0, // V65Regs:subreg_overflow |
| 916 | 0, // V65Regs:vsub_fake |
| 917 | 0, // V65Regs:vsub_hi |
| 918 | 0, // V65Regs:vsub_lo |
| 919 | 0, // V65Regs:wsub_hi |
| 920 | 0, // V65Regs:wsub_lo |
| 921 | 0, // V65Regs:wsub_hi_then_vsub_hi |
| 922 | 0, // V65Regs:wsub_hi_then_vsub_lo |
| 923 | }, |
| 924 | { // SysRegs64 |
| 925 | 2, // SysRegs64:isub_hi -> SysRegs |
| 926 | 2, // SysRegs64:isub_lo -> SysRegs |
| 927 | 0, // SysRegs64:subreg_overflow |
| 928 | 0, // SysRegs64:vsub_fake |
| 929 | 0, // SysRegs64:vsub_hi |
| 930 | 0, // SysRegs64:vsub_lo |
| 931 | 0, // SysRegs64:wsub_hi |
| 932 | 0, // SysRegs64:wsub_lo |
| 933 | 0, // SysRegs64:wsub_hi_then_vsub_hi |
| 934 | 0, // SysRegs64:wsub_hi_then_vsub_lo |
| 935 | }, |
| 936 | { // DoubleRegs |
| 937 | 4, // DoubleRegs:isub_hi -> IntRegs |
| 938 | 4, // DoubleRegs:isub_lo -> IntRegs |
| 939 | 0, // DoubleRegs:subreg_overflow |
| 940 | 0, // DoubleRegs:vsub_fake |
| 941 | 0, // DoubleRegs:vsub_hi |
| 942 | 0, // DoubleRegs:vsub_lo |
| 943 | 0, // DoubleRegs:wsub_hi |
| 944 | 0, // DoubleRegs:wsub_lo |
| 945 | 0, // DoubleRegs:wsub_hi_then_vsub_hi |
| 946 | 0, // DoubleRegs:wsub_hi_then_vsub_lo |
| 947 | }, |
| 948 | { // GuestRegs64 |
| 949 | 3, // GuestRegs64:isub_hi -> GuestRegs |
| 950 | 3, // GuestRegs64:isub_lo -> GuestRegs |
| 951 | 0, // GuestRegs64:subreg_overflow |
| 952 | 0, // GuestRegs64:vsub_fake |
| 953 | 0, // GuestRegs64:vsub_hi |
| 954 | 0, // GuestRegs64:vsub_lo |
| 955 | 0, // GuestRegs64:wsub_hi |
| 956 | 0, // GuestRegs64:wsub_lo |
| 957 | 0, // GuestRegs64:wsub_hi_then_vsub_hi |
| 958 | 0, // GuestRegs64:wsub_hi_then_vsub_lo |
| 959 | }, |
| 960 | { // VectRegRev |
| 961 | 0, // VectRegRev:isub_hi |
| 962 | 0, // VectRegRev:isub_lo |
| 963 | 0, // VectRegRev:subreg_overflow |
| 964 | 0, // VectRegRev:vsub_fake |
| 965 | 28, // VectRegRev:vsub_hi -> HvxVR |
| 966 | 28, // VectRegRev:vsub_lo -> HvxVR |
| 967 | 0, // VectRegRev:wsub_hi |
| 968 | 30, // VectRegRev:wsub_lo -> HvxWR |
| 969 | 0, // VectRegRev:wsub_hi_then_vsub_hi |
| 970 | 0, // VectRegRev:wsub_hi_then_vsub_lo |
| 971 | }, |
| 972 | { // CtrRegs64 |
| 973 | 5, // CtrRegs64:isub_hi -> CtrRegs |
| 974 | 5, // CtrRegs64:isub_lo -> CtrRegs |
| 975 | 0, // CtrRegs64:subreg_overflow |
| 976 | 0, // CtrRegs64:vsub_fake |
| 977 | 0, // CtrRegs64:vsub_hi |
| 978 | 0, // CtrRegs64:vsub_lo |
| 979 | 0, // CtrRegs64:wsub_hi |
| 980 | 0, // CtrRegs64:wsub_lo |
| 981 | 0, // CtrRegs64:wsub_hi_then_vsub_hi |
| 982 | 0, // CtrRegs64:wsub_hi_then_vsub_lo |
| 983 | }, |
| 984 | { // GeneralDoubleLow8Regs |
| 985 | 6, // GeneralDoubleLow8Regs:isub_hi -> GeneralSubRegs |
| 986 | 6, // GeneralDoubleLow8Regs:isub_lo -> GeneralSubRegs |
| 987 | 0, // GeneralDoubleLow8Regs:subreg_overflow |
| 988 | 0, // GeneralDoubleLow8Regs:vsub_fake |
| 989 | 0, // GeneralDoubleLow8Regs:vsub_hi |
| 990 | 0, // GeneralDoubleLow8Regs:vsub_lo |
| 991 | 0, // GeneralDoubleLow8Regs:wsub_hi |
| 992 | 0, // GeneralDoubleLow8Regs:wsub_lo |
| 993 | 0, // GeneralDoubleLow8Regs:wsub_hi_then_vsub_hi |
| 994 | 0, // GeneralDoubleLow8Regs:wsub_hi_then_vsub_lo |
| 995 | }, |
| 996 | { // DoubleRegs_with_isub_hi_in_IntRegsLow8 |
| 997 | 8, // DoubleRegs_with_isub_hi_in_IntRegsLow8:isub_hi -> IntRegsLow8 |
| 998 | 8, // DoubleRegs_with_isub_hi_in_IntRegsLow8:isub_lo -> IntRegsLow8 |
| 999 | 0, // DoubleRegs_with_isub_hi_in_IntRegsLow8:subreg_overflow |
| 1000 | 0, // DoubleRegs_with_isub_hi_in_IntRegsLow8:vsub_fake |
| 1001 | 0, // DoubleRegs_with_isub_hi_in_IntRegsLow8:vsub_hi |
| 1002 | 0, // DoubleRegs_with_isub_hi_in_IntRegsLow8:vsub_lo |
| 1003 | 0, // DoubleRegs_with_isub_hi_in_IntRegsLow8:wsub_hi |
| 1004 | 0, // DoubleRegs_with_isub_hi_in_IntRegsLow8:wsub_lo |
| 1005 | 0, // DoubleRegs_with_isub_hi_in_IntRegsLow8:wsub_hi_then_vsub_hi |
| 1006 | 0, // DoubleRegs_with_isub_hi_in_IntRegsLow8:wsub_hi_then_vsub_lo |
| 1007 | }, |
| 1008 | { // CtrRegs64_and_V62Regs |
| 1009 | 9, // CtrRegs64_and_V62Regs:isub_hi -> CtrRegs_and_V62Regs |
| 1010 | 9, // CtrRegs64_and_V62Regs:isub_lo -> CtrRegs_and_V62Regs |
| 1011 | 0, // CtrRegs64_and_V62Regs:subreg_overflow |
| 1012 | 0, // CtrRegs64_and_V62Regs:vsub_fake |
| 1013 | 0, // CtrRegs64_and_V62Regs:vsub_hi |
| 1014 | 0, // CtrRegs64_and_V62Regs:vsub_lo |
| 1015 | 0, // CtrRegs64_and_V62Regs:wsub_hi |
| 1016 | 0, // CtrRegs64_and_V62Regs:wsub_lo |
| 1017 | 0, // CtrRegs64_and_V62Regs:wsub_hi_then_vsub_hi |
| 1018 | 0, // CtrRegs64_and_V62Regs:wsub_hi_then_vsub_lo |
| 1019 | }, |
| 1020 | { // CircRegs |
| 1021 | 13, // CircRegs:isub_hi -> ModRegs |
| 1022 | 12, // CircRegs:isub_lo -> CSRegs |
| 1023 | 0, // CircRegs:subreg_overflow |
| 1024 | 0, // CircRegs:vsub_fake |
| 1025 | 0, // CircRegs:vsub_hi |
| 1026 | 0, // CircRegs:vsub_lo |
| 1027 | 0, // CircRegs:wsub_hi |
| 1028 | 0, // CircRegs:wsub_lo |
| 1029 | 0, // CircRegs:wsub_hi_then_vsub_hi |
| 1030 | 0, // CircRegs:wsub_hi_then_vsub_lo |
| 1031 | }, |
| 1032 | { // CtrRegs64_with_isub_hi_in_CSRegs |
| 1033 | 12, // CtrRegs64_with_isub_hi_in_CSRegs:isub_hi -> CSRegs |
| 1034 | 12, // CtrRegs64_with_isub_hi_in_CSRegs:isub_lo -> CSRegs |
| 1035 | 0, // CtrRegs64_with_isub_hi_in_CSRegs:subreg_overflow |
| 1036 | 0, // CtrRegs64_with_isub_hi_in_CSRegs:vsub_fake |
| 1037 | 0, // CtrRegs64_with_isub_hi_in_CSRegs:vsub_hi |
| 1038 | 0, // CtrRegs64_with_isub_hi_in_CSRegs:vsub_lo |
| 1039 | 0, // CtrRegs64_with_isub_hi_in_CSRegs:wsub_hi |
| 1040 | 0, // CtrRegs64_with_isub_hi_in_CSRegs:wsub_lo |
| 1041 | 0, // CtrRegs64_with_isub_hi_in_CSRegs:wsub_hi_then_vsub_hi |
| 1042 | 0, // CtrRegs64_with_isub_hi_in_CSRegs:wsub_hi_then_vsub_lo |
| 1043 | }, |
| 1044 | { // CtrRegs64_with_isub_hi_in_ModRegs |
| 1045 | 13, // CtrRegs64_with_isub_hi_in_ModRegs:isub_hi -> ModRegs |
| 1046 | 13, // CtrRegs64_with_isub_hi_in_ModRegs:isub_lo -> ModRegs |
| 1047 | 0, // CtrRegs64_with_isub_hi_in_ModRegs:subreg_overflow |
| 1048 | 0, // CtrRegs64_with_isub_hi_in_ModRegs:vsub_fake |
| 1049 | 0, // CtrRegs64_with_isub_hi_in_ModRegs:vsub_hi |
| 1050 | 0, // CtrRegs64_with_isub_hi_in_ModRegs:vsub_lo |
| 1051 | 0, // CtrRegs64_with_isub_hi_in_ModRegs:wsub_hi |
| 1052 | 0, // CtrRegs64_with_isub_hi_in_ModRegs:wsub_lo |
| 1053 | 0, // CtrRegs64_with_isub_hi_in_ModRegs:wsub_hi_then_vsub_hi |
| 1054 | 0, // CtrRegs64_with_isub_hi_in_ModRegs:wsub_hi_then_vsub_lo |
| 1055 | }, |
| 1056 | { // HvxQR |
| 1057 | 0, // HvxQR:isub_hi |
| 1058 | 0, // HvxQR:isub_lo |
| 1059 | 0, // HvxQR:subreg_overflow |
| 1060 | 0, // HvxQR:vsub_fake |
| 1061 | 0, // HvxQR:vsub_hi |
| 1062 | 0, // HvxQR:vsub_lo |
| 1063 | 0, // HvxQR:wsub_hi |
| 1064 | 0, // HvxQR:wsub_lo |
| 1065 | 0, // HvxQR:wsub_hi_then_vsub_hi |
| 1066 | 0, // HvxQR:wsub_hi_then_vsub_lo |
| 1067 | }, |
| 1068 | { // HvxVR |
| 1069 | 0, // HvxVR:isub_hi |
| 1070 | 0, // HvxVR:isub_lo |
| 1071 | 0, // HvxVR:subreg_overflow |
| 1072 | 0, // HvxVR:vsub_fake |
| 1073 | 0, // HvxVR:vsub_hi |
| 1074 | 0, // HvxVR:vsub_lo |
| 1075 | 0, // HvxVR:wsub_hi |
| 1076 | 0, // HvxVR:wsub_lo |
| 1077 | 0, // HvxVR:wsub_hi_then_vsub_hi |
| 1078 | 0, // HvxVR:wsub_hi_then_vsub_lo |
| 1079 | }, |
| 1080 | { // HvxVR_and_V65Regs |
| 1081 | 0, // HvxVR_and_V65Regs:isub_hi |
| 1082 | 0, // HvxVR_and_V65Regs:isub_lo |
| 1083 | 0, // HvxVR_and_V65Regs:subreg_overflow |
| 1084 | 0, // HvxVR_and_V65Regs:vsub_fake |
| 1085 | 0, // HvxVR_and_V65Regs:vsub_hi |
| 1086 | 0, // HvxVR_and_V65Regs:vsub_lo |
| 1087 | 0, // HvxVR_and_V65Regs:wsub_hi |
| 1088 | 0, // HvxVR_and_V65Regs:wsub_lo |
| 1089 | 0, // HvxVR_and_V65Regs:wsub_hi_then_vsub_hi |
| 1090 | 0, // HvxVR_and_V65Regs:wsub_hi_then_vsub_lo |
| 1091 | }, |
| 1092 | { // HvxWR |
| 1093 | 0, // HvxWR:isub_hi |
| 1094 | 0, // HvxWR:isub_lo |
| 1095 | 0, // HvxWR:subreg_overflow |
| 1096 | 0, // HvxWR:vsub_fake |
| 1097 | 28, // HvxWR:vsub_hi -> HvxVR |
| 1098 | 28, // HvxWR:vsub_lo -> HvxVR |
| 1099 | 0, // HvxWR:wsub_hi |
| 1100 | 30, // HvxWR:wsub_lo -> HvxWR |
| 1101 | 0, // HvxWR:wsub_hi_then_vsub_hi |
| 1102 | 0, // HvxWR:wsub_hi_then_vsub_lo |
| 1103 | }, |
| 1104 | { // HvxWR_with_wsub_lo |
| 1105 | 0, // HvxWR_with_wsub_lo:isub_hi |
| 1106 | 0, // HvxWR_with_wsub_lo:isub_lo |
| 1107 | 0, // HvxWR_with_wsub_lo:subreg_overflow |
| 1108 | 0, // HvxWR_with_wsub_lo:vsub_fake |
| 1109 | 28, // HvxWR_with_wsub_lo:vsub_hi -> HvxVR |
| 1110 | 28, // HvxWR_with_wsub_lo:vsub_lo -> HvxVR |
| 1111 | 0, // HvxWR_with_wsub_lo:wsub_hi |
| 1112 | 30, // HvxWR_with_wsub_lo:wsub_lo -> HvxWR |
| 1113 | 0, // HvxWR_with_wsub_lo:wsub_hi_then_vsub_hi |
| 1114 | 0, // HvxWR_with_wsub_lo:wsub_hi_then_vsub_lo |
| 1115 | }, |
| 1116 | { // HvxVQR |
| 1117 | 0, // HvxVQR:isub_hi |
| 1118 | 0, // HvxVQR:isub_lo |
| 1119 | 0, // HvxVQR:subreg_overflow |
| 1120 | 0, // HvxVQR:vsub_fake |
| 1121 | 28, // HvxVQR:vsub_hi -> HvxVR |
| 1122 | 28, // HvxVQR:vsub_lo -> HvxVR |
| 1123 | 30, // HvxVQR:wsub_hi -> HvxWR |
| 1124 | 30, // HvxVQR:wsub_lo -> HvxWR |
| 1125 | 28, // HvxVQR:wsub_hi_then_vsub_hi -> HvxVR |
| 1126 | 28, // HvxVQR:wsub_hi_then_vsub_lo -> HvxVR |
| 1127 | }, |
| 1128 | { // HlxLR |
| 1129 | 0, // HlxLR:isub_hi |
| 1130 | 0, // HlxLR:isub_lo |
| 1131 | 0, // HlxLR:subreg_overflow |
| 1132 | 0, // HlxLR:vsub_fake |
| 1133 | 0, // HlxLR:vsub_hi |
| 1134 | 0, // HlxLR:vsub_lo |
| 1135 | 0, // HlxLR:wsub_hi |
| 1136 | 0, // HlxLR:wsub_lo |
| 1137 | 0, // HlxLR:wsub_hi_then_vsub_hi |
| 1138 | 0, // HlxLR:wsub_hi_then_vsub_lo |
| 1139 | }, |
| 1140 | { // HlxLLR |
| 1141 | 0, // HlxLLR:isub_hi |
| 1142 | 0, // HlxLLR:isub_lo |
| 1143 | 0, // HlxLLR:subreg_overflow |
| 1144 | 0, // HlxLLR:vsub_fake |
| 1145 | 33, // HlxLLR:vsub_hi -> HlxLR |
| 1146 | 33, // HlxLLR:vsub_lo -> HlxLR |
| 1147 | 0, // HlxLLR:wsub_hi |
| 1148 | 0, // HlxLLR:wsub_lo |
| 1149 | 0, // HlxLLR:wsub_hi_then_vsub_hi |
| 1150 | 0, // HlxLLR:wsub_hi_then_vsub_lo |
| 1151 | }, |
| 1152 | |
| 1153 | }; |
| 1154 | assert(RC && "Missing regclass" ); |
| 1155 | if (!Idx) return RC; |
| 1156 | --Idx; |
| 1157 | assert(Idx < 10 && "Bad subreg" ); |
| 1158 | unsigned TV = Table[RC->getID()][Idx]; |
| 1159 | return TV ? getRegClass(i: TV - 1) : nullptr; |
| 1160 | }/// Get the weight in units of pressure for this register class. |
| 1161 | const RegClassWeight &HexagonGenRegisterInfo:: |
| 1162 | getRegClassWeight(const TargetRegisterClass *RC) const { |
| 1163 | static const RegClassWeight RCWeightTable[] = { |
| 1164 | {.RegWeight: 0, .WeightLimit: 0}, // UsrBits |
| 1165 | {.RegWeight: 0, .WeightLimit: 0}, // SysRegs |
| 1166 | {.RegWeight: 0, .WeightLimit: 0}, // GuestRegs |
| 1167 | {.RegWeight: 1, .WeightLimit: 32}, // IntRegs |
| 1168 | {.RegWeight: 0, .WeightLimit: 8}, // CtrRegs |
| 1169 | {.RegWeight: 1, .WeightLimit: 16}, // GeneralSubRegs |
| 1170 | {.RegWeight: 0, .WeightLimit: 0}, // V62Regs |
| 1171 | {.RegWeight: 1, .WeightLimit: 8}, // IntRegsLow8 |
| 1172 | {.RegWeight: 0, .WeightLimit: 0}, // CtrRegs_and_V62Regs |
| 1173 | {.RegWeight: 2, .WeightLimit: 8}, // PredRegs |
| 1174 | {.RegWeight: 0, .WeightLimit: 0}, // V62Regs_with_isub_hi |
| 1175 | {.RegWeight: 1, .WeightLimit: 2}, // CSRegs |
| 1176 | {.RegWeight: 1, .WeightLimit: 2}, // ModRegs |
| 1177 | {.RegWeight: 0, .WeightLimit: 0}, // CtrRegs_with_subreg_overflow |
| 1178 | {.RegWeight: 1, .WeightLimit: 1}, // V65Regs |
| 1179 | {.RegWeight: 0, .WeightLimit: 0}, // SysRegs64 |
| 1180 | {.RegWeight: 2, .WeightLimit: 32}, // DoubleRegs |
| 1181 | {.RegWeight: 0, .WeightLimit: 0}, // GuestRegs64 |
| 1182 | {.RegWeight: 2, .WeightLimit: 32}, // VectRegRev |
| 1183 | {.RegWeight: 2, .WeightLimit: 8}, // CtrRegs64 |
| 1184 | {.RegWeight: 2, .WeightLimit: 16}, // GeneralDoubleLow8Regs |
| 1185 | {.RegWeight: 2, .WeightLimit: 8}, // DoubleRegs_with_isub_hi_in_IntRegsLow8 |
| 1186 | {.RegWeight: 0, .WeightLimit: 0}, // CtrRegs64_and_V62Regs |
| 1187 | {.RegWeight: 2, .WeightLimit: 4}, // CircRegs |
| 1188 | {.RegWeight: 2, .WeightLimit: 2}, // CtrRegs64_with_isub_hi_in_CSRegs |
| 1189 | {.RegWeight: 2, .WeightLimit: 2}, // CtrRegs64_with_isub_hi_in_ModRegs |
| 1190 | {.RegWeight: 1, .WeightLimit: 4}, // HvxQR |
| 1191 | {.RegWeight: 1, .WeightLimit: 33}, // HvxVR |
| 1192 | {.RegWeight: 1, .WeightLimit: 1}, // HvxVR_and_V65Regs |
| 1193 | {.RegWeight: 2, .WeightLimit: 32}, // HvxWR |
| 1194 | {.RegWeight: 2, .WeightLimit: 32}, // HvxWR_with_wsub_lo |
| 1195 | {.RegWeight: 4, .WeightLimit: 32}, // HvxVQR |
| 1196 | {.RegWeight: 1, .WeightLimit: 16}, // HlxLR |
| 1197 | {.RegWeight: 2, .WeightLimit: 16}, // HlxLLR |
| 1198 | }; |
| 1199 | return RCWeightTable[RC->getID()]; |
| 1200 | } |
| 1201 | |
| 1202 | /// Get the weight in units of pressure for this register unit. |
| 1203 | unsigned HexagonGenRegisterInfo:: |
| 1204 | getRegUnitWeight(MCRegUnit RegUnit) const { |
| 1205 | assert(static_cast<unsigned>(RegUnit) < 296 && "invalid register unit" ); |
| 1206 | // All register units have unit weight. |
| 1207 | return 1; |
| 1208 | } |
| 1209 | |
| 1210 | |
| 1211 | // Get the number of dimensions of register pressure. |
| 1212 | unsigned HexagonGenRegisterInfo::getNumRegPressureSets() const { |
| 1213 | return 9; |
| 1214 | } |
| 1215 | |
| 1216 | // Get the name of this register unit pressure set. |
| 1217 | const char *HexagonGenRegisterInfo:: |
| 1218 | getRegPressureSetName(unsigned Idx) const { |
| 1219 | static const char *PressureNameTable[] = { |
| 1220 | "HvxVR_and_V65Regs" , |
| 1221 | "CSRegs" , |
| 1222 | "HvxQR" , |
| 1223 | "IntRegsLow8" , |
| 1224 | "PredRegs" , |
| 1225 | "GeneralSubRegs" , |
| 1226 | "HlxLR" , |
| 1227 | "IntRegs" , |
| 1228 | "HvxVR" , |
| 1229 | }; |
| 1230 | return PressureNameTable[Idx]; |
| 1231 | } |
| 1232 | |
| 1233 | // Get the register unit pressure limit for this dimension. |
| 1234 | // This limit must be adjusted dynamically for reserved registers. |
| 1235 | unsigned HexagonGenRegisterInfo:: |
| 1236 | getRegPressureSetLimit(const MachineFunction &MF, unsigned Idx) const { |
| 1237 | static const uint8_t PressureLimitTable[] = { |
| 1238 | 1, // 0: HvxVR_and_V65Regs |
| 1239 | 4, // 1: CSRegs |
| 1240 | 4, // 2: HvxQR |
| 1241 | 8, // 3: IntRegsLow8 |
| 1242 | 8, // 4: PredRegs |
| 1243 | 16, // 5: GeneralSubRegs |
| 1244 | 16, // 6: HlxLR |
| 1245 | 32, // 7: IntRegs |
| 1246 | 33, // 8: HvxVR |
| 1247 | }; |
| 1248 | return PressureLimitTable[Idx]; |
| 1249 | } |
| 1250 | |
| 1251 | /// Get the register class for this pressure set with the largest |
| 1252 | /// `RegClassWeight::WeightLimit`. |
| 1253 | const TargetRegisterClass *HexagonGenRegisterInfo:: |
| 1254 | getLargestRegClassForRegPressureSet(unsigned Idx) const { |
| 1255 | static const uint8_t PSetRegClassTable[] = { |
| 1256 | Hexagon::HvxVR_and_V65RegsRegClassID, // 0: HvxVR_and_V65Regs |
| 1257 | Hexagon::CircRegsRegClassID, // 1: CSRegs |
| 1258 | Hexagon::HvxQRRegClassID, // 2: HvxQR |
| 1259 | Hexagon::IntRegsLow8RegClassID, // 3: IntRegsLow8 |
| 1260 | Hexagon::PredRegsRegClassID, // 4: PredRegs |
| 1261 | Hexagon::GeneralSubRegsRegClassID, // 5: GeneralSubRegs |
| 1262 | Hexagon::HlxLRRegClassID, // 6: HlxLR |
| 1263 | Hexagon::IntRegsRegClassID, // 7: IntRegs |
| 1264 | Hexagon::HvxVRRegClassID, // 8: HvxVR |
| 1265 | }; |
| 1266 | return getRegClass(i: PSetRegClassTable[Idx]); |
| 1267 | } |
| 1268 | |
| 1269 | /// Table of pressure sets per register class or unit. |
| 1270 | static const int RCSetsTable[] = { |
| 1271 | /* 0 */ 1, -1, |
| 1272 | /* 2 */ 2, -1, |
| 1273 | /* 4 */ 4, -1, |
| 1274 | /* 6 */ 6, -1, |
| 1275 | /* 8 */ 3, 5, 7, -1, |
| 1276 | /* 12 */ 0, 8, -1, |
| 1277 | }; |
| 1278 | |
| 1279 | /// Get the dimensions of register pressure impacted by this register class. |
| 1280 | /// Returns a -1 terminated array of pressure set IDs |
| 1281 | const int *HexagonGenRegisterInfo:: |
| 1282 | getRegClassPressureSets(const TargetRegisterClass *RC) const { |
| 1283 | static const uint8_t RCSetStartTable[] = { |
| 1284 | 1,1,1,10,1,9,1,8,1,4,1,0,0,1,1,1,10,1,13,1,9,8,1,0,1,1,2,13,12,13,13,13,6,6,}; |
| 1285 | return &RCSetsTable[RCSetStartTable[RC->getID()]]; |
| 1286 | } |
| 1287 | |
| 1288 | /// Get the dimensions of register pressure impacted by this register unit. |
| 1289 | /// Returns a -1 terminated array of pressure set IDs |
| 1290 | const int *HexagonGenRegisterInfo:: |
| 1291 | getRegUnitPressureSets(MCRegUnit RegUnit) const { |
| 1292 | assert(static_cast<unsigned>(RegUnit) < 296 && "invalid register unit" ); |
| 1293 | static const uint8_t RUSetStartTable[] = { |
| 1294 | 1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,0,0,8,8,8,8,8,8,8,8,10,10,10,10,10,10,10,10,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,1,1,4,4,4,4,4,4,4,4,1,1,1,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,}; |
| 1295 | return &RCSetsTable[RUSetStartTable[static_cast<unsigned>(RegUnit)]]; |
| 1296 | } |
| 1297 | |
| 1298 | |
| 1299 | // Register to minimal register class mapping |
| 1300 | |
| 1301 | const TargetRegisterClass *HexagonGenRegisterInfo::getMinimalPhysRegClass(MCRegister Reg) const { |
| 1302 | static const uint16_t InvalidRegClassID = UINT16_MAX; |
| 1303 | |
| 1304 | static const uint16_t Mapping[427] = { |
| 1305 | InvalidRegClassID, // NoRegister |
| 1306 | Hexagon::SysRegsRegClassID, // BADVA |
| 1307 | Hexagon::SysRegsRegClassID, // CCR |
| 1308 | Hexagon::SysRegsRegClassID, // CFGBASE |
| 1309 | Hexagon::CtrRegs64_with_isub_hi_in_CSRegsRegClassID, // CS |
| 1310 | Hexagon::SysRegsRegClassID, // DIAG |
| 1311 | Hexagon::SysRegsRegClassID, // ELR |
| 1312 | Hexagon::SysRegsRegClassID, // EVB |
| 1313 | Hexagon::CtrRegs_and_V62RegsRegClassID, // FRAMEKEY |
| 1314 | Hexagon::CtrRegs_and_V62RegsRegClassID, // FRAMELIMIT |
| 1315 | Hexagon::GuestRegsRegClassID, // GELR |
| 1316 | Hexagon::GuestRegsRegClassID, // GOSP |
| 1317 | Hexagon::CtrRegsRegClassID, // GP |
| 1318 | Hexagon::GuestRegsRegClassID, // GPCYCLEHI |
| 1319 | Hexagon::GuestRegsRegClassID, // GPCYCLELO |
| 1320 | Hexagon::GuestRegsRegClassID, // GSR |
| 1321 | Hexagon::SysRegsRegClassID, // HTID |
| 1322 | Hexagon::SysRegsRegClassID, // IMASK |
| 1323 | Hexagon::SysRegsRegClassID, // ISDBEN |
| 1324 | Hexagon::SysRegsRegClassID, // ISDBGPR |
| 1325 | Hexagon::SysRegsRegClassID, // ISDBMBXIN |
| 1326 | Hexagon::SysRegsRegClassID, // ISDBMBXOUT |
| 1327 | Hexagon::SysRegsRegClassID, // ISDBST |
| 1328 | Hexagon::SysRegsRegClassID, // MODECTL |
| 1329 | Hexagon::CtrRegsRegClassID, // PC |
| 1330 | Hexagon::SysRegsRegClassID, // PCYCLEHI |
| 1331 | Hexagon::SysRegsRegClassID, // PCYCLELO |
| 1332 | Hexagon::CtrRegs64_and_V62RegsRegClassID, // PKTCOUNT |
| 1333 | Hexagon::CtrRegs_and_V62RegsRegClassID, // PKTCOUNTHI |
| 1334 | Hexagon::CtrRegs_and_V62RegsRegClassID, // PKTCOUNTLO |
| 1335 | Hexagon::SysRegsRegClassID, // PMUCFG |
| 1336 | Hexagon::SysRegsRegClassID, // PMUEVTCFG |
| 1337 | Hexagon::SysRegsRegClassID, // REV |
| 1338 | Hexagon::SysRegsRegClassID, // SSR |
| 1339 | Hexagon::SysRegsRegClassID, // STID |
| 1340 | Hexagon::SysRegsRegClassID, // SYSCFG |
| 1341 | Hexagon::CtrRegsRegClassID, // UGP |
| 1342 | Hexagon::CtrRegs64RegClassID, // UPCYCLE |
| 1343 | Hexagon::CtrRegsRegClassID, // UPCYCLEHI |
| 1344 | Hexagon::CtrRegsRegClassID, // UPCYCLELO |
| 1345 | Hexagon::CtrRegs_with_subreg_overflowRegClassID, // USR |
| 1346 | Hexagon::UsrBitsRegClassID, // USR_OVF |
| 1347 | Hexagon::CtrRegs64_and_V62RegsRegClassID, // UTIMER |
| 1348 | Hexagon::CtrRegs_and_V62RegsRegClassID, // UTIMERHI |
| 1349 | Hexagon::CtrRegs_and_V62RegsRegClassID, // UTIMERLO |
| 1350 | Hexagon::CtrRegsRegClassID, // VFRAMELIMIT |
| 1351 | Hexagon::SysRegsRegClassID, // VID |
| 1352 | Hexagon::CtrRegsRegClassID, // VSP |
| 1353 | Hexagon::HvxVR_and_V65RegsRegClassID, // VTMP |
| 1354 | Hexagon::SysRegsRegClassID, // BADVA0 |
| 1355 | Hexagon::SysRegsRegClassID, // BADVA1 |
| 1356 | Hexagon::SysRegsRegClassID, // BRKPTCFG0 |
| 1357 | Hexagon::SysRegsRegClassID, // BRKPTCFG1 |
| 1358 | Hexagon::SysRegsRegClassID, // BRKPTPC0 |
| 1359 | Hexagon::SysRegsRegClassID, // BRKPTPC1 |
| 1360 | Hexagon::CtrRegsRegClassID, // C5 |
| 1361 | Hexagon::CtrRegsRegClassID, // C8 |
| 1362 | Hexagon::CSRegsRegClassID, // CS0 |
| 1363 | Hexagon::CSRegsRegClassID, // CS1 |
| 1364 | Hexagon::CircRegsRegClassID, // CS_M0 |
| 1365 | Hexagon::CircRegsRegClassID, // CS_M1 |
| 1366 | Hexagon::DoubleRegs_with_isub_hi_in_IntRegsLow8RegClassID, // D0 |
| 1367 | Hexagon::DoubleRegs_with_isub_hi_in_IntRegsLow8RegClassID, // D1 |
| 1368 | Hexagon::DoubleRegs_with_isub_hi_in_IntRegsLow8RegClassID, // D2 |
| 1369 | Hexagon::DoubleRegs_with_isub_hi_in_IntRegsLow8RegClassID, // D3 |
| 1370 | Hexagon::DoubleRegsRegClassID, // D4 |
| 1371 | Hexagon::DoubleRegsRegClassID, // D5 |
| 1372 | Hexagon::DoubleRegsRegClassID, // D6 |
| 1373 | Hexagon::DoubleRegsRegClassID, // D7 |
| 1374 | Hexagon::GeneralDoubleLow8RegsRegClassID, // D8 |
| 1375 | Hexagon::GeneralDoubleLow8RegsRegClassID, // D9 |
| 1376 | Hexagon::GeneralDoubleLow8RegsRegClassID, // D10 |
| 1377 | Hexagon::GeneralDoubleLow8RegsRegClassID, // D11 |
| 1378 | Hexagon::DoubleRegsRegClassID, // D12 |
| 1379 | Hexagon::DoubleRegsRegClassID, // D13 |
| 1380 | Hexagon::DoubleRegsRegClassID, // D14 |
| 1381 | Hexagon::DoubleRegsRegClassID, // D15 |
| 1382 | Hexagon::GuestRegsRegClassID, // G3 |
| 1383 | Hexagon::GuestRegsRegClassID, // G4 |
| 1384 | Hexagon::GuestRegsRegClassID, // G5 |
| 1385 | Hexagon::GuestRegsRegClassID, // G6 |
| 1386 | Hexagon::GuestRegsRegClassID, // G7 |
| 1387 | Hexagon::GuestRegsRegClassID, // G8 |
| 1388 | Hexagon::GuestRegsRegClassID, // G9 |
| 1389 | Hexagon::GuestRegsRegClassID, // G10 |
| 1390 | Hexagon::GuestRegsRegClassID, // G11 |
| 1391 | Hexagon::GuestRegsRegClassID, // G12 |
| 1392 | Hexagon::GuestRegsRegClassID, // G13 |
| 1393 | Hexagon::GuestRegsRegClassID, // G14 |
| 1394 | Hexagon::GuestRegsRegClassID, // G15 |
| 1395 | Hexagon::GuestRegsRegClassID, // G20 |
| 1396 | Hexagon::GuestRegsRegClassID, // G21 |
| 1397 | Hexagon::GuestRegsRegClassID, // G22 |
| 1398 | Hexagon::GuestRegsRegClassID, // G23 |
| 1399 | Hexagon::GuestRegsRegClassID, // G30 |
| 1400 | Hexagon::GuestRegsRegClassID, // G31 |
| 1401 | Hexagon::GuestRegsRegClassID, // GPMUCNT0 |
| 1402 | Hexagon::GuestRegsRegClassID, // GPMUCNT1 |
| 1403 | Hexagon::GuestRegsRegClassID, // GPMUCNT2 |
| 1404 | Hexagon::GuestRegsRegClassID, // GPMUCNT3 |
| 1405 | Hexagon::GuestRegsRegClassID, // GPMUCNT4 |
| 1406 | Hexagon::GuestRegsRegClassID, // GPMUCNT5 |
| 1407 | Hexagon::GuestRegsRegClassID, // GPMUCNT6 |
| 1408 | Hexagon::GuestRegsRegClassID, // GPMUCNT7 |
| 1409 | Hexagon::SysRegsRegClassID, // ISDBCFG0 |
| 1410 | Hexagon::SysRegsRegClassID, // ISDBCFG1 |
| 1411 | Hexagon::HlxLRRegClassID, // L0 |
| 1412 | Hexagon::HlxLRRegClassID, // L1 |
| 1413 | Hexagon::HlxLRRegClassID, // L2 |
| 1414 | Hexagon::HlxLRRegClassID, // L3 |
| 1415 | Hexagon::HlxLRRegClassID, // L4 |
| 1416 | Hexagon::HlxLRRegClassID, // L5 |
| 1417 | Hexagon::HlxLRRegClassID, // L6 |
| 1418 | Hexagon::HlxLRRegClassID, // L7 |
| 1419 | Hexagon::HlxLRRegClassID, // L8 |
| 1420 | Hexagon::HlxLRRegClassID, // L9 |
| 1421 | Hexagon::HlxLRRegClassID, // L10 |
| 1422 | Hexagon::HlxLRRegClassID, // L11 |
| 1423 | Hexagon::HlxLRRegClassID, // L12 |
| 1424 | Hexagon::HlxLRRegClassID, // L13 |
| 1425 | Hexagon::HlxLRRegClassID, // L14 |
| 1426 | Hexagon::HlxLRRegClassID, // L15 |
| 1427 | Hexagon::CtrRegsRegClassID, // LC0 |
| 1428 | Hexagon::CtrRegsRegClassID, // LC1 |
| 1429 | Hexagon::HlxLLRRegClassID, // LL0 |
| 1430 | Hexagon::HlxLLRRegClassID, // LL1 |
| 1431 | Hexagon::HlxLLRRegClassID, // LL2 |
| 1432 | Hexagon::HlxLLRRegClassID, // LL3 |
| 1433 | Hexagon::HlxLLRRegClassID, // LL4 |
| 1434 | Hexagon::HlxLLRRegClassID, // LL5 |
| 1435 | Hexagon::HlxLLRRegClassID, // LL6 |
| 1436 | Hexagon::HlxLLRRegClassID, // LL7 |
| 1437 | Hexagon::ModRegsRegClassID, // M0 |
| 1438 | Hexagon::ModRegsRegClassID, // M1 |
| 1439 | Hexagon::PredRegsRegClassID, // P0 |
| 1440 | Hexagon::PredRegsRegClassID, // P1 |
| 1441 | Hexagon::PredRegsRegClassID, // P2 |
| 1442 | Hexagon::PredRegsRegClassID, // P3 |
| 1443 | Hexagon::SysRegsRegClassID, // PMUCNT0 |
| 1444 | Hexagon::SysRegsRegClassID, // PMUCNT1 |
| 1445 | Hexagon::SysRegsRegClassID, // PMUCNT2 |
| 1446 | Hexagon::SysRegsRegClassID, // PMUCNT3 |
| 1447 | Hexagon::HvxQRRegClassID, // Q0 |
| 1448 | Hexagon::HvxQRRegClassID, // Q1 |
| 1449 | Hexagon::HvxQRRegClassID, // Q2 |
| 1450 | Hexagon::HvxQRRegClassID, // Q3 |
| 1451 | Hexagon::IntRegsLow8RegClassID, // R0 |
| 1452 | Hexagon::IntRegsLow8RegClassID, // R1 |
| 1453 | Hexagon::IntRegsLow8RegClassID, // R2 |
| 1454 | Hexagon::IntRegsLow8RegClassID, // R3 |
| 1455 | Hexagon::IntRegsLow8RegClassID, // R4 |
| 1456 | Hexagon::IntRegsLow8RegClassID, // R5 |
| 1457 | Hexagon::IntRegsLow8RegClassID, // R6 |
| 1458 | Hexagon::IntRegsLow8RegClassID, // R7 |
| 1459 | Hexagon::IntRegsRegClassID, // R8 |
| 1460 | Hexagon::IntRegsRegClassID, // R9 |
| 1461 | Hexagon::IntRegsRegClassID, // R10 |
| 1462 | Hexagon::IntRegsRegClassID, // R11 |
| 1463 | Hexagon::IntRegsRegClassID, // R12 |
| 1464 | Hexagon::IntRegsRegClassID, // R13 |
| 1465 | Hexagon::IntRegsRegClassID, // R14 |
| 1466 | Hexagon::IntRegsRegClassID, // R15 |
| 1467 | Hexagon::GeneralSubRegsRegClassID, // R16 |
| 1468 | Hexagon::GeneralSubRegsRegClassID, // R17 |
| 1469 | Hexagon::GeneralSubRegsRegClassID, // R18 |
| 1470 | Hexagon::GeneralSubRegsRegClassID, // R19 |
| 1471 | Hexagon::GeneralSubRegsRegClassID, // R20 |
| 1472 | Hexagon::GeneralSubRegsRegClassID, // R21 |
| 1473 | Hexagon::GeneralSubRegsRegClassID, // R22 |
| 1474 | Hexagon::GeneralSubRegsRegClassID, // R23 |
| 1475 | Hexagon::IntRegsRegClassID, // R24 |
| 1476 | Hexagon::IntRegsRegClassID, // R25 |
| 1477 | Hexagon::IntRegsRegClassID, // R26 |
| 1478 | Hexagon::IntRegsRegClassID, // R27 |
| 1479 | Hexagon::IntRegsRegClassID, // R28 |
| 1480 | Hexagon::IntRegsRegClassID, // R29 |
| 1481 | Hexagon::IntRegsRegClassID, // R30 |
| 1482 | Hexagon::IntRegsRegClassID, // R31 |
| 1483 | Hexagon::SysRegsRegClassID, // S11 |
| 1484 | Hexagon::SysRegsRegClassID, // S12 |
| 1485 | Hexagon::SysRegsRegClassID, // S13 |
| 1486 | Hexagon::SysRegsRegClassID, // S14 |
| 1487 | Hexagon::SysRegsRegClassID, // S15 |
| 1488 | Hexagon::SysRegsRegClassID, // S19 |
| 1489 | Hexagon::SysRegsRegClassID, // S20 |
| 1490 | Hexagon::SysRegsRegClassID, // S22 |
| 1491 | Hexagon::SysRegsRegClassID, // S23 |
| 1492 | Hexagon::SysRegsRegClassID, // S24 |
| 1493 | Hexagon::SysRegsRegClassID, // S25 |
| 1494 | Hexagon::SysRegsRegClassID, // S26 |
| 1495 | Hexagon::SysRegsRegClassID, // S35 |
| 1496 | Hexagon::SysRegsRegClassID, // S44 |
| 1497 | Hexagon::SysRegsRegClassID, // S45 |
| 1498 | Hexagon::SysRegsRegClassID, // S46 |
| 1499 | Hexagon::SysRegsRegClassID, // S47 |
| 1500 | Hexagon::SysRegsRegClassID, // S54 |
| 1501 | Hexagon::SysRegsRegClassID, // S55 |
| 1502 | Hexagon::SysRegsRegClassID, // S56 |
| 1503 | Hexagon::SysRegsRegClassID, // S57 |
| 1504 | Hexagon::SysRegsRegClassID, // S58 |
| 1505 | Hexagon::SysRegsRegClassID, // S59 |
| 1506 | Hexagon::SysRegsRegClassID, // S60 |
| 1507 | Hexagon::SysRegsRegClassID, // S61 |
| 1508 | Hexagon::SysRegsRegClassID, // S62 |
| 1509 | Hexagon::SysRegsRegClassID, // S63 |
| 1510 | Hexagon::SysRegsRegClassID, // S64 |
| 1511 | Hexagon::SysRegsRegClassID, // S65 |
| 1512 | Hexagon::SysRegsRegClassID, // S66 |
| 1513 | Hexagon::SysRegsRegClassID, // S67 |
| 1514 | Hexagon::SysRegsRegClassID, // S68 |
| 1515 | Hexagon::SysRegsRegClassID, // S69 |
| 1516 | Hexagon::SysRegsRegClassID, // S70 |
| 1517 | Hexagon::SysRegsRegClassID, // S71 |
| 1518 | Hexagon::SysRegsRegClassID, // S72 |
| 1519 | Hexagon::SysRegsRegClassID, // S73 |
| 1520 | Hexagon::SysRegsRegClassID, // S74 |
| 1521 | Hexagon::SysRegsRegClassID, // S75 |
| 1522 | Hexagon::SysRegsRegClassID, // S76 |
| 1523 | Hexagon::SysRegsRegClassID, // S77 |
| 1524 | Hexagon::SysRegsRegClassID, // S78 |
| 1525 | Hexagon::SysRegsRegClassID, // S79 |
| 1526 | Hexagon::SysRegsRegClassID, // S80 |
| 1527 | Hexagon::CtrRegsRegClassID, // SA0 |
| 1528 | Hexagon::CtrRegsRegClassID, // SA1 |
| 1529 | Hexagon::SysRegsRegClassID, // SGP0 |
| 1530 | Hexagon::SysRegsRegClassID, // SGP1 |
| 1531 | Hexagon::HvxVRRegClassID, // V0 |
| 1532 | Hexagon::HvxVRRegClassID, // V1 |
| 1533 | Hexagon::HvxVRRegClassID, // V2 |
| 1534 | Hexagon::HvxVRRegClassID, // V3 |
| 1535 | Hexagon::HvxVRRegClassID, // V4 |
| 1536 | Hexagon::HvxVRRegClassID, // V5 |
| 1537 | Hexagon::HvxVRRegClassID, // V6 |
| 1538 | Hexagon::HvxVRRegClassID, // V7 |
| 1539 | Hexagon::HvxVRRegClassID, // V8 |
| 1540 | Hexagon::HvxVRRegClassID, // V9 |
| 1541 | Hexagon::HvxVRRegClassID, // V10 |
| 1542 | Hexagon::HvxVRRegClassID, // V11 |
| 1543 | Hexagon::HvxVRRegClassID, // V12 |
| 1544 | Hexagon::HvxVRRegClassID, // V13 |
| 1545 | Hexagon::HvxVRRegClassID, // V14 |
| 1546 | Hexagon::HvxVRRegClassID, // V15 |
| 1547 | Hexagon::HvxVRRegClassID, // V16 |
| 1548 | Hexagon::HvxVRRegClassID, // V17 |
| 1549 | Hexagon::HvxVRRegClassID, // V18 |
| 1550 | Hexagon::HvxVRRegClassID, // V19 |
| 1551 | Hexagon::HvxVRRegClassID, // V20 |
| 1552 | Hexagon::HvxVRRegClassID, // V21 |
| 1553 | Hexagon::HvxVRRegClassID, // V22 |
| 1554 | Hexagon::HvxVRRegClassID, // V23 |
| 1555 | Hexagon::HvxVRRegClassID, // V24 |
| 1556 | Hexagon::HvxVRRegClassID, // V25 |
| 1557 | Hexagon::HvxVRRegClassID, // V26 |
| 1558 | Hexagon::HvxVRRegClassID, // V27 |
| 1559 | Hexagon::HvxVRRegClassID, // V28 |
| 1560 | Hexagon::HvxVRRegClassID, // V29 |
| 1561 | Hexagon::HvxVRRegClassID, // V30 |
| 1562 | Hexagon::HvxVRRegClassID, // V31 |
| 1563 | InvalidRegClassID, // VF0 |
| 1564 | InvalidRegClassID, // VF1 |
| 1565 | InvalidRegClassID, // VF2 |
| 1566 | InvalidRegClassID, // VF3 |
| 1567 | InvalidRegClassID, // VF4 |
| 1568 | InvalidRegClassID, // VF5 |
| 1569 | InvalidRegClassID, // VF6 |
| 1570 | InvalidRegClassID, // VF7 |
| 1571 | InvalidRegClassID, // VF8 |
| 1572 | InvalidRegClassID, // VF9 |
| 1573 | InvalidRegClassID, // VF10 |
| 1574 | InvalidRegClassID, // VF11 |
| 1575 | InvalidRegClassID, // VF12 |
| 1576 | InvalidRegClassID, // VF13 |
| 1577 | InvalidRegClassID, // VF14 |
| 1578 | InvalidRegClassID, // VF15 |
| 1579 | InvalidRegClassID, // VF16 |
| 1580 | InvalidRegClassID, // VF17 |
| 1581 | InvalidRegClassID, // VF18 |
| 1582 | InvalidRegClassID, // VF19 |
| 1583 | InvalidRegClassID, // VF20 |
| 1584 | InvalidRegClassID, // VF21 |
| 1585 | InvalidRegClassID, // VF22 |
| 1586 | InvalidRegClassID, // VF23 |
| 1587 | InvalidRegClassID, // VF24 |
| 1588 | InvalidRegClassID, // VF25 |
| 1589 | InvalidRegClassID, // VF26 |
| 1590 | InvalidRegClassID, // VF27 |
| 1591 | InvalidRegClassID, // VF28 |
| 1592 | InvalidRegClassID, // VF29 |
| 1593 | InvalidRegClassID, // VF30 |
| 1594 | InvalidRegClassID, // VF31 |
| 1595 | InvalidRegClassID, // VFR0 |
| 1596 | InvalidRegClassID, // VFR1 |
| 1597 | InvalidRegClassID, // VFR2 |
| 1598 | InvalidRegClassID, // VFR3 |
| 1599 | InvalidRegClassID, // VFR4 |
| 1600 | InvalidRegClassID, // VFR5 |
| 1601 | InvalidRegClassID, // VFR6 |
| 1602 | InvalidRegClassID, // VFR7 |
| 1603 | InvalidRegClassID, // VFR8 |
| 1604 | InvalidRegClassID, // VFR9 |
| 1605 | InvalidRegClassID, // VFR10 |
| 1606 | InvalidRegClassID, // VFR11 |
| 1607 | InvalidRegClassID, // VFR12 |
| 1608 | InvalidRegClassID, // VFR13 |
| 1609 | InvalidRegClassID, // VFR14 |
| 1610 | InvalidRegClassID, // VFR15 |
| 1611 | InvalidRegClassID, // VFR16 |
| 1612 | InvalidRegClassID, // VFR17 |
| 1613 | InvalidRegClassID, // VFR18 |
| 1614 | InvalidRegClassID, // VFR19 |
| 1615 | InvalidRegClassID, // VFR20 |
| 1616 | InvalidRegClassID, // VFR21 |
| 1617 | InvalidRegClassID, // VFR22 |
| 1618 | InvalidRegClassID, // VFR23 |
| 1619 | InvalidRegClassID, // VFR24 |
| 1620 | InvalidRegClassID, // VFR25 |
| 1621 | InvalidRegClassID, // VFR26 |
| 1622 | InvalidRegClassID, // VFR27 |
| 1623 | InvalidRegClassID, // VFR28 |
| 1624 | InvalidRegClassID, // VFR29 |
| 1625 | InvalidRegClassID, // VFR30 |
| 1626 | InvalidRegClassID, // VFR31 |
| 1627 | Hexagon::HvxVQRRegClassID, // VQ0 |
| 1628 | Hexagon::HvxVQRRegClassID, // VQ1 |
| 1629 | Hexagon::HvxVQRRegClassID, // VQ2 |
| 1630 | Hexagon::HvxVQRRegClassID, // VQ3 |
| 1631 | Hexagon::HvxVQRRegClassID, // VQ4 |
| 1632 | Hexagon::HvxVQRRegClassID, // VQ5 |
| 1633 | Hexagon::HvxVQRRegClassID, // VQ6 |
| 1634 | Hexagon::HvxVQRRegClassID, // VQ7 |
| 1635 | Hexagon::HvxWRRegClassID, // W0 |
| 1636 | Hexagon::HvxWRRegClassID, // W1 |
| 1637 | Hexagon::HvxWRRegClassID, // W2 |
| 1638 | Hexagon::HvxWRRegClassID, // W3 |
| 1639 | Hexagon::HvxWRRegClassID, // W4 |
| 1640 | Hexagon::HvxWRRegClassID, // W5 |
| 1641 | Hexagon::HvxWRRegClassID, // W6 |
| 1642 | Hexagon::HvxWRRegClassID, // W7 |
| 1643 | Hexagon::HvxWRRegClassID, // W8 |
| 1644 | Hexagon::HvxWRRegClassID, // W9 |
| 1645 | Hexagon::HvxWRRegClassID, // W10 |
| 1646 | Hexagon::HvxWRRegClassID, // W11 |
| 1647 | Hexagon::HvxWRRegClassID, // W12 |
| 1648 | Hexagon::HvxWRRegClassID, // W13 |
| 1649 | Hexagon::HvxWRRegClassID, // W14 |
| 1650 | Hexagon::HvxWRRegClassID, // W15 |
| 1651 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR0 |
| 1652 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR1 |
| 1653 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR2 |
| 1654 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR3 |
| 1655 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR4 |
| 1656 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR5 |
| 1657 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR6 |
| 1658 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR7 |
| 1659 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR8 |
| 1660 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR9 |
| 1661 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR10 |
| 1662 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR11 |
| 1663 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR12 |
| 1664 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR13 |
| 1665 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR14 |
| 1666 | Hexagon::HvxWR_with_wsub_loRegClassID, // WR15 |
| 1667 | Hexagon::CtrRegs64RegClassID, // C1_0 |
| 1668 | Hexagon::CtrRegs64RegClassID, // C3_2 |
| 1669 | Hexagon::CtrRegs64RegClassID, // C5_4 |
| 1670 | Hexagon::CtrRegs64_with_isub_hi_in_ModRegsRegClassID, // C7_6 |
| 1671 | Hexagon::CtrRegs64RegClassID, // C9_8 |
| 1672 | Hexagon::CtrRegs64RegClassID, // C11_10 |
| 1673 | Hexagon::CtrRegs64_and_V62RegsRegClassID, // C17_16 |
| 1674 | Hexagon::CtrRegs64RegClassID, // C29_28 |
| 1675 | Hexagon::GuestRegs64RegClassID, // G1_0 |
| 1676 | Hexagon::GuestRegs64RegClassID, // G3_2 |
| 1677 | Hexagon::GuestRegs64RegClassID, // G5_4 |
| 1678 | Hexagon::GuestRegs64RegClassID, // G7_6 |
| 1679 | Hexagon::GuestRegs64RegClassID, // G9_8 |
| 1680 | Hexagon::GuestRegs64RegClassID, // G11_10 |
| 1681 | Hexagon::GuestRegs64RegClassID, // G13_12 |
| 1682 | Hexagon::GuestRegs64RegClassID, // G15_14 |
| 1683 | Hexagon::GuestRegs64RegClassID, // G17_16 |
| 1684 | Hexagon::GuestRegs64RegClassID, // G19_18 |
| 1685 | Hexagon::GuestRegs64RegClassID, // G21_20 |
| 1686 | Hexagon::GuestRegs64RegClassID, // G23_22 |
| 1687 | Hexagon::GuestRegs64RegClassID, // G25_24 |
| 1688 | Hexagon::GuestRegs64RegClassID, // G27_26 |
| 1689 | Hexagon::GuestRegs64RegClassID, // G29_28 |
| 1690 | Hexagon::GuestRegs64RegClassID, // G31_30 |
| 1691 | Hexagon::CtrRegsRegClassID, // P3_0 |
| 1692 | Hexagon::SysRegs64RegClassID, // S3_2 |
| 1693 | Hexagon::SysRegs64RegClassID, // S5_4 |
| 1694 | Hexagon::SysRegs64RegClassID, // S7_6 |
| 1695 | Hexagon::SysRegs64RegClassID, // S9_8 |
| 1696 | Hexagon::SysRegs64RegClassID, // S11_10 |
| 1697 | Hexagon::SysRegs64RegClassID, // S13_12 |
| 1698 | Hexagon::SysRegs64RegClassID, // S15_14 |
| 1699 | Hexagon::SysRegs64RegClassID, // S17_16 |
| 1700 | Hexagon::SysRegs64RegClassID, // S19_18 |
| 1701 | Hexagon::SysRegs64RegClassID, // S21_20 |
| 1702 | Hexagon::SysRegs64RegClassID, // S23_22 |
| 1703 | Hexagon::SysRegs64RegClassID, // S25_24 |
| 1704 | Hexagon::SysRegs64RegClassID, // S27_26 |
| 1705 | Hexagon::SysRegs64RegClassID, // S29_28 |
| 1706 | Hexagon::SysRegs64RegClassID, // S31_30 |
| 1707 | Hexagon::SysRegs64RegClassID, // S33_32 |
| 1708 | Hexagon::SysRegs64RegClassID, // S35_34 |
| 1709 | Hexagon::SysRegs64RegClassID, // S37_36 |
| 1710 | Hexagon::SysRegs64RegClassID, // S39_38 |
| 1711 | Hexagon::SysRegs64RegClassID, // S41_40 |
| 1712 | Hexagon::SysRegs64RegClassID, // S43_42 |
| 1713 | Hexagon::SysRegs64RegClassID, // S45_44 |
| 1714 | Hexagon::SysRegs64RegClassID, // S47_46 |
| 1715 | Hexagon::SysRegs64RegClassID, // S49_48 |
| 1716 | Hexagon::SysRegs64RegClassID, // S51_50 |
| 1717 | Hexagon::SysRegs64RegClassID, // S53_52 |
| 1718 | Hexagon::SysRegs64RegClassID, // S55_54 |
| 1719 | Hexagon::SysRegs64RegClassID, // S57_56 |
| 1720 | Hexagon::SysRegs64RegClassID, // S59_58 |
| 1721 | Hexagon::SysRegs64RegClassID, // S61_60 |
| 1722 | Hexagon::SysRegs64RegClassID, // S63_62 |
| 1723 | Hexagon::SysRegs64RegClassID, // S65_64 |
| 1724 | Hexagon::SysRegs64RegClassID, // S67_66 |
| 1725 | Hexagon::SysRegs64RegClassID, // S69_68 |
| 1726 | Hexagon::SysRegs64RegClassID, // S71_70 |
| 1727 | Hexagon::SysRegs64RegClassID, // S73_72 |
| 1728 | Hexagon::SysRegs64RegClassID, // S75_74 |
| 1729 | Hexagon::SysRegs64RegClassID, // S77_76 |
| 1730 | Hexagon::SysRegs64RegClassID, // S79_78 |
| 1731 | Hexagon::SysRegs64RegClassID, // SGP1_0 |
| 1732 | }; |
| 1733 | |
| 1734 | assert(Reg < ArrayRef(Mapping).size()); |
| 1735 | unsigned RCID = Mapping[Reg.id()]; |
| 1736 | if (RCID == InvalidRegClassID) |
| 1737 | return nullptr; |
| 1738 | return &HexagonMCRegisterClassStorage.Classes[RCID]; |
| 1739 | } |
| 1740 | extern const MCRegisterDesc HexagonRegDesc[]; |
| 1741 | extern const int16_t HexagonRegDiffLists[]; |
| 1742 | extern const LaneBitmask HexagonLaneMaskLists[]; |
| 1743 | extern const char HexagonRegStrings[]; |
| 1744 | extern const char HexagonRegClassStrings[]; |
| 1745 | extern const MCPhysReg HexagonRegUnitRoots[][2]; |
| 1746 | extern const uint16_t HexagonSubRegIdxLists[]; |
| 1747 | extern const uint16_t HexagonRegEncodingTable[]; |
| 1748 | // Hexagon Dwarf<->LLVM register mappings. |
| 1749 | extern const MCRegisterInfo::DwarfLLVMRegPair HexagonDwarfFlavour0Dwarf2L[]; |
| 1750 | extern const unsigned HexagonDwarfFlavour0Dwarf2LSize; |
| 1751 | |
| 1752 | extern const MCRegisterInfo::DwarfLLVMRegPair HexagonEHFlavour0Dwarf2L[]; |
| 1753 | extern const unsigned HexagonEHFlavour0Dwarf2LSize; |
| 1754 | |
| 1755 | extern const MCRegisterInfo::DwarfLLVMRegPair HexagonDwarfFlavour0L2Dwarf[]; |
| 1756 | extern const unsigned HexagonDwarfFlavour0L2DwarfSize; |
| 1757 | |
| 1758 | extern const MCRegisterInfo::DwarfLLVMRegPair HexagonEHFlavour0L2Dwarf[]; |
| 1759 | extern const unsigned HexagonEHFlavour0L2DwarfSize; |
| 1760 | |
| 1761 | |
| 1762 | HexagonGenRegisterInfo:: |
| 1763 | HexagonGenRegisterInfo(unsigned RA, unsigned DwarfFlavour, unsigned EHFlavour, |
| 1764 | unsigned PC, unsigned HwMode) |
| 1765 | : TargetRegisterInfo(&HexagonRegInfoDesc, |
| 1766 | HexagonSubRegIndexStrings, HexagonSubRegIndexNameOffsets, |
| 1767 | HexagonSubRegIdxRangeTable, HexagonSubRegIndexLaneMaskTable, |
| 1768 | |
| 1769 | LaneBitmask(0xFFFFFFFFFFFFFFFB), HexagonRegClassInfos, HexagonVTLists, HwMode) { |
| 1770 | InitMCRegisterInfo(D: HexagonRegDesc, NR: 427, RA, PC, |
| 1771 | C: &getHexagonMCRegisterClass(RC: 0), NC: 34, RURoots: HexagonRegUnitRoots, NRU: 296, DL: HexagonRegDiffLists, |
| 1772 | RUMS: HexagonLaneMaskLists, Strings: HexagonRegStrings, ClassStrings: HexagonRegClassStrings, SubIndices: HexagonSubRegIdxLists, NumIndices: 11, |
| 1773 | RET: HexagonRegEncodingTable, RUI: nullptr); |
| 1774 | |
| 1775 | switch (DwarfFlavour) { |
| 1776 | default: |
| 1777 | llvm_unreachable("Unknown DWARF flavour" ); |
| 1778 | case 0: |
| 1779 | mapDwarfRegsToLLVMRegs(Map: HexagonDwarfFlavour0Dwarf2L, Size: HexagonDwarfFlavour0Dwarf2LSize, isEH: false); |
| 1780 | break; |
| 1781 | } |
| 1782 | switch (EHFlavour) { |
| 1783 | default: |
| 1784 | llvm_unreachable("Unknown DWARF flavour" ); |
| 1785 | case 0: |
| 1786 | mapDwarfRegsToLLVMRegs(Map: HexagonEHFlavour0Dwarf2L, Size: HexagonEHFlavour0Dwarf2LSize, isEH: true); |
| 1787 | break; |
| 1788 | } |
| 1789 | switch (DwarfFlavour) { |
| 1790 | default: |
| 1791 | llvm_unreachable("Unknown DWARF flavour" ); |
| 1792 | case 0: |
| 1793 | mapLLVMRegsToDwarfRegs(Map: HexagonDwarfFlavour0L2Dwarf, Size: HexagonDwarfFlavour0L2DwarfSize, isEH: false); |
| 1794 | break; |
| 1795 | } |
| 1796 | switch (EHFlavour) { |
| 1797 | default: |
| 1798 | llvm_unreachable("Unknown DWARF flavour" ); |
| 1799 | case 0: |
| 1800 | mapLLVMRegsToDwarfRegs(Map: HexagonEHFlavour0L2Dwarf, Size: HexagonEHFlavour0L2DwarfSize, isEH: true); |
| 1801 | break; |
| 1802 | } |
| 1803 | } |
| 1804 | |
| 1805 | static const MCPhysReg HexagonCSR_SaveList[] = { Hexagon::R16, Hexagon::R17, Hexagon::R18, Hexagon::R19, Hexagon::R20, Hexagon::R21, Hexagon::R22, Hexagon::R23, Hexagon::R24, Hexagon::R25, Hexagon::R26, Hexagon::R27, 0 }; |
| 1806 | static const uint32_t HexagonCSR_RegMask[] = { 0x00000000, 0x00000000, 0x000007e0, 0x00000000, 0x00000000, 0x00003ffc, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, }; |
| 1807 | static const MCPhysReg HexagonCSR_HLX_SaveList[] = { Hexagon::R16, Hexagon::R17, Hexagon::R18, Hexagon::R19, Hexagon::R20, Hexagon::R21, Hexagon::R22, Hexagon::R23, Hexagon::R24, Hexagon::R25, Hexagon::R26, Hexagon::R27, Hexagon::L12, Hexagon::L13, Hexagon::L14, Hexagon::L15, 0 }; |
| 1808 | static const uint32_t HexagonCSR_HLX_RegMask[] = { 0x00000000, 0x00000000, 0x000007e0, 0x03c00000, 0x0000000c, 0x00003ffc, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, }; |
| 1809 | static const MCPhysReg HexagonCSR_HLX_EH_SaveList[] = { Hexagon::R0, Hexagon::R1, Hexagon::R2, Hexagon::R3, Hexagon::R16, Hexagon::R17, Hexagon::R18, Hexagon::R19, Hexagon::R20, Hexagon::R21, Hexagon::R22, Hexagon::R23, Hexagon::R24, Hexagon::R25, Hexagon::R26, Hexagon::R27, Hexagon::L12, Hexagon::L13, Hexagon::L14, Hexagon::L15, 0 }; |
| 1810 | static const uint32_t HexagonCSR_HLX_EH_RegMask[] = { 0x00000000, 0x60000000, 0x000007e0, 0x03c00000, 0x003c000c, 0x00003ffc, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, }; |
| 1811 | |
| 1812 | |
| 1813 | ArrayRef<const uint32_t *> HexagonGenRegisterInfo::getRegMasks() const { |
| 1814 | static const uint32_t *const Masks[] = { |
| 1815 | HexagonCSR_RegMask, |
| 1816 | HexagonCSR_HLX_RegMask, |
| 1817 | HexagonCSR_HLX_EH_RegMask, |
| 1818 | }; |
| 1819 | return ArrayRef(Masks); |
| 1820 | } |
| 1821 | |
| 1822 | bool HexagonGenRegisterInfo:: |
| 1823 | isGeneralPurposeRegister(const MachineFunction &MF, MCRegister PhysReg) const { |
| 1824 | return |
| 1825 | false; |
| 1826 | } |
| 1827 | |
| 1828 | bool HexagonGenRegisterInfo:: |
| 1829 | isGeneralPurposeRegisterClass(const TargetRegisterClass *RC) const { |
| 1830 | return |
| 1831 | false; |
| 1832 | } |
| 1833 | |
| 1834 | bool HexagonGenRegisterInfo:: |
| 1835 | isFixedRegister(const MachineFunction &MF, MCRegister PhysReg) const { |
| 1836 | return |
| 1837 | false; |
| 1838 | } |
| 1839 | |
| 1840 | bool HexagonGenRegisterInfo:: |
| 1841 | isArgumentRegister(const MachineFunction &MF, MCRegister PhysReg) const { |
| 1842 | return |
| 1843 | false; |
| 1844 | } |
| 1845 | |
| 1846 | bool HexagonGenRegisterInfo:: |
| 1847 | isConstantPhysReg(MCRegister PhysReg) const { |
| 1848 | return |
| 1849 | false; |
| 1850 | } |
| 1851 | |
| 1852 | ArrayRef<const char *> HexagonGenRegisterInfo::getRegMaskNames() const { |
| 1853 | static const char *Names[] = { |
| 1854 | "HexagonCSR" , |
| 1855 | "HexagonCSR_HLX" , |
| 1856 | "HexagonCSR_HLX_EH" , |
| 1857 | }; |
| 1858 | return ArrayRef(Names); |
| 1859 | } |
| 1860 | |
| 1861 | const HexagonFrameLowering * |
| 1862 | HexagonGenRegisterInfo::getFrameLowering(const MachineFunction &MF) { |
| 1863 | return static_cast<const HexagonFrameLowering *>( |
| 1864 | MF.getSubtarget().getFrameLowering()); |
| 1865 | } |
| 1866 | |
| 1867 | |
| 1868 | } // namespace llvm |
| 1869 | |