File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -1347,18 +1347,12 @@ def VGPRSrc_16 : RegisterOperand<VGPR_16> {
1347
1347
// TODO: These cases should use default target alignment
1348
1348
def VGPROp_16 : RegisterOperand<VGPR_16>;
1349
1349
def VGPROp_32 : RegisterOperand<VGPR_32>;
1350
- def VGPROp_64 : RegisterOperand<VReg_64>;
1351
- def VGPROp_96 : RegisterOperand<VReg_96>;
1352
- def VGPROp_128 : RegisterOperand<VReg_128>;
1353
- def VGPROp_256 : RegisterOperand<VReg_256>;
1354
-
1355
- def VGPROp_64_Align1 : RegisterOperand<VReg_64>;
1356
- def VGPROp_96_Align1 : RegisterOperand<VReg_96>;
1357
- def VGPROp_128_Align1 : RegisterOperand<VReg_128>;
1358
-
1359
- def VGPROp_64_Align2 : RegisterOperand<VReg_64_Align2>;
1360
- def VGPROp_128_Align2 : RegisterOperand<VReg_128_Align2>;
1361
1350
1351
+ foreach size = ["64", "96", "128", "256" ] in {
1352
+ def VGPROp_#size : RegisterOperand<!cast<RegisterClass>("VReg_"#size)>;
1353
+ def VGPROp_#size#_Align1 : RegisterOperand<!cast<RegisterClass>("VReg_"#size)>;
1354
+ def VGPROp_#size#_Align2 : RegisterOperand<!cast<RegisterClass>("VReg_"#size#_Align2)>;
1355
+ }
1362
1356
1363
1357
//===----------------------------------------------------------------------===//
1364
1358
// ASrc_* Operands with an AccVGPR
You can’t perform that action at this time.
0 commit comments