Index: llvm/trunk/lib/Target/Hexagon/HexagonRegisterInfo.td =================================================================== --- llvm/trunk/lib/Target/Hexagon/HexagonRegisterInfo.td +++ llvm/trunk/lib/Target/Hexagon/HexagonRegisterInfo.td @@ -63,38 +63,9 @@ def subreg_hireg : SubRegIndex<32, 32>; // Integer registers. - def R0 : Ri< 0, "r0">, DwarfRegNum<[0]>; - def R1 : Ri< 1, "r1">, DwarfRegNum<[1]>; - def R2 : Ri< 2, "r2">, DwarfRegNum<[2]>; - def R3 : Ri< 3, "r3">, DwarfRegNum<[3]>; - def R4 : Ri< 4, "r4">, DwarfRegNum<[4]>; - def R5 : Ri< 5, "r5">, DwarfRegNum<[5]>; - def R6 : Ri< 6, "r6">, DwarfRegNum<[6]>; - def R7 : Ri< 7, "r7">, DwarfRegNum<[7]>; - def R8 : Ri< 8, "r8">, DwarfRegNum<[8]>; - def R9 : Ri< 9, "r9">, DwarfRegNum<[9]>; - def R10 : Ri<10, "r10">, DwarfRegNum<[10]>; - def R11 : Ri<11, "r11">, DwarfRegNum<[11]>; - def R12 : Ri<12, "r12">, DwarfRegNum<[12]>; - def R13 : Ri<13, "r13">, DwarfRegNum<[13]>; - def R14 : Ri<14, "r14">, DwarfRegNum<[14]>; - def R15 : Ri<15, "r15">, DwarfRegNum<[15]>; - def R16 : Ri<16, "r16">, DwarfRegNum<[16]>; - def R17 : Ri<17, "r17">, DwarfRegNum<[17]>; - def R18 : Ri<18, "r18">, DwarfRegNum<[18]>; - def R19 : Ri<19, "r19">, DwarfRegNum<[19]>; - def R20 : Ri<20, "r20">, DwarfRegNum<[20]>; - def R21 : Ri<21, "r21">, DwarfRegNum<[21]>; - def R22 : Ri<22, "r22">, DwarfRegNum<[22]>; - def R23 : Ri<23, "r23">, DwarfRegNum<[23]>; - def R24 : Ri<24, "r24">, DwarfRegNum<[24]>; - def R25 : Ri<25, "r25">, DwarfRegNum<[25]>; - def R26 : Ri<26, "r26">, DwarfRegNum<[26]>; - def R27 : Ri<27, "r27">, DwarfRegNum<[27]>; - def R28 : Ri<28, "r28">, DwarfRegNum<[28]>; - def R29 : Ri<29, "r29">, DwarfRegNum<[29]>; - def R30 : Ri<30, "r30">, DwarfRegNum<[30]>; - def R31 : Ri<31, "r31">, DwarfRegNum<[31]>; + foreach I = 0-31 in { + def R#I : Ri, DwarfRegNum<[I]>; + } def SP : Rj<"sp", R29>, DwarfRegNum<[29]>; def FP : Rj<"fp", R30>, DwarfRegNum<[30]>;