@@ -95,7 +95,7 @@ class DS_Real <DS_Pseudo ps, string opName = ps.Mnemonic> :
95
95
class DS_0A1D_NORET<string opName, RegisterClass rc = VGPR_32>
96
96
: DS_Pseudo<opName,
97
97
(outs),
98
- (ins getLdStRegisterOperand<rc>.ret:$data0, offset :$offset, gds:$gds),
98
+ (ins getLdStRegisterOperand<rc>.ret:$data0, Offset :$offset, gds:$gds),
99
99
" $data0$offset$gds"> {
100
100
101
101
let has_addr = 0;
@@ -106,7 +106,7 @@ class DS_0A1D_NORET<string opName, RegisterClass rc = VGPR_32>
106
106
class DS_1A1D_NORET<string opName, RegisterClass rc = VGPR_32>
107
107
: DS_Pseudo<opName,
108
108
(outs),
109
- (ins VGPR_32:$addr, getLdStRegisterOperand<rc>.ret:$data0, offset :$offset, gds:$gds),
109
+ (ins VGPR_32:$addr, getLdStRegisterOperand<rc>.ret:$data0, Offset :$offset, gds:$gds),
110
110
" $addr, $data0$offset$gds"> {
111
111
112
112
let has_data1 = 0;
@@ -135,7 +135,7 @@ class DS_1A2D_NORET<string opName, RegisterClass rc = VGPR_32,
135
135
RegisterOperand data_op = getLdStRegisterOperand<rc>.ret>
136
136
: DS_Pseudo<opName,
137
137
(outs),
138
- (ins VGPR_32:$addr, data_op:$data0, data_op:$data1, offset :$offset, gds:$gds),
138
+ (ins VGPR_32:$addr, data_op:$data0, data_op:$data1, Offset :$offset, gds:$gds),
139
139
" $addr, $data0, $data1$offset$gds"> {
140
140
141
141
let has_vdst = 0;
@@ -157,7 +157,7 @@ class DS_1A2D_Off8_NORET <string opName, RegisterClass rc = VGPR_32,
157
157
: DS_Pseudo<opName,
158
158
(outs),
159
159
(ins VGPR_32:$addr, data_op:$data0, data_op:$data1,
160
- offset0 :$offset0, offset1 :$offset1, gds:$gds),
160
+ Offset0 :$offset0, Offset1 :$offset1, gds:$gds),
161
161
" $addr, $data0, $data1$offset0$offset1$gds"> {
162
162
163
163
let has_vdst = 0;
@@ -177,7 +177,7 @@ class DS_0A1D_RET_GDS<string opName, RegisterClass rc = VGPR_32, RegisterClass s
177
177
RegisterOperand src_op = getLdStRegisterOperand<src>.ret>
178
178
: DS_Pseudo<opName,
179
179
(outs dst_op:$vdst),
180
- (ins src_op:$data0, offset :$offset),
180
+ (ins src_op:$data0, Offset :$offset),
181
181
" $vdst, $data0$offset gds"> {
182
182
183
183
let has_addr = 0;
@@ -191,7 +191,7 @@ class DS_1A1D_RET <string opName, RegisterClass rc = VGPR_32,
191
191
RegisterOperand data_op = getLdStRegisterOperand<rc>.ret>
192
192
: DS_Pseudo<opName,
193
193
(outs data_op:$vdst),
194
- (ins VGPR_32:$addr, data_op:$data0, offset :$offset, gds:$gds),
194
+ (ins VGPR_32:$addr, data_op:$data0, Offset :$offset, gds:$gds),
195
195
" $vdst, $addr, $data0$offset$gds"> {
196
196
197
197
let hasPostISelHook = 1;
@@ -227,7 +227,7 @@ class DS_1A2D_RET<string opName,
227
227
RegisterOperand src_op = getLdStRegisterOperand<src>.ret>
228
228
: DS_Pseudo<opName,
229
229
(outs dst_op:$vdst),
230
- (ins VGPR_32:$addr, src_op:$data0, src_op:$data1, offset :$offset, gds:$gds),
230
+ (ins VGPR_32:$addr, src_op:$data0, src_op:$data1, Offset :$offset, gds:$gds),
231
231
" $vdst, $addr, $data0, $data1$offset$gds"> {
232
232
233
233
let hasPostISelHook = 1;
@@ -254,7 +254,7 @@ class DS_1A2D_Off8_RET<string opName,
254
254
RegisterOperand src_op = getLdStRegisterOperand<src>.ret>
255
255
: DS_Pseudo<opName,
256
256
(outs dst_op:$vdst),
257
- (ins VGPR_32:$addr, src_op:$data0, src_op:$data1, offset0 :$offset0, offset1 :$offset1, gds:$gds),
257
+ (ins VGPR_32:$addr, src_op:$data0, src_op:$data1, Offset0 :$offset0, Offset1 :$offset1, gds:$gds),
258
258
" $vdst, $addr, $data0, $data1$offset0$offset1$gds"> {
259
259
260
260
let has_offset = 0;
@@ -274,7 +274,7 @@ multiclass DS_1A2D_Off8_RET_mc<string opName,
274
274
class DS_BVH_STACK<string opName>
275
275
: DS_Pseudo<opName,
276
276
(outs getLdStRegisterOperand<VGPR_32>.ret:$vdst, VGPR_32:$addr),
277
- (ins VGPR_32:$addr_in, getLdStRegisterOperand<VGPR_32>.ret:$data0, VReg_128:$data1, offset :$offset),
277
+ (ins VGPR_32:$addr_in, getLdStRegisterOperand<VGPR_32>.ret:$data0, VReg_128:$data1, Offset :$offset),
278
278
" $vdst, $addr, $data0, $data1$offset"> {
279
279
let Constraints = "$addr = $addr_in";
280
280
let DisableEncoding = "$addr_in";
@@ -285,7 +285,7 @@ class DS_BVH_STACK<string opName>
285
285
let SchedRW = [WriteLDS, WriteLDS];
286
286
}
287
287
288
- class DS_1A_RET<string opName, RegisterClass rc = VGPR_32, bit HasTiedOutput = 0, Operand ofs = offset ,
288
+ class DS_1A_RET<string opName, RegisterClass rc = VGPR_32, bit HasTiedOutput = 0, Operand ofs = Offset ,
289
289
RegisterOperand data_op = getLdStRegisterOperand<rc>.ret>
290
290
: DS_Pseudo<opName,
291
291
(outs data_op:$vdst),
@@ -299,7 +299,7 @@ class DS_1A_RET<string opName, RegisterClass rc = VGPR_32, bit HasTiedOutput = 0
299
299
let has_data1 = 0;
300
300
}
301
301
302
- multiclass DS_1A_RET_mc<string opName, RegisterClass rc = VGPR_32, bit HasTiedOutput = 0, Operand ofs = offset > {
302
+ multiclass DS_1A_RET_mc<string opName, RegisterClass rc = VGPR_32, bit HasTiedOutput = 0, Operand ofs = Offset > {
303
303
def "" : DS_1A_RET<opName, rc, HasTiedOutput, ofs>;
304
304
305
305
let has_m0_read = 0 in {
@@ -313,7 +313,7 @@ class DS_1A_RET_Tied<string opName, RegisterClass rc = VGPR_32> :
313
313
class DS_1A_Off8_RET <string opName, RegisterClass rc = VGPR_32>
314
314
: DS_Pseudo<opName,
315
315
(outs getLdStRegisterOperand<rc>.ret:$vdst),
316
- (ins VGPR_32:$addr, offset0 :$offset0, offset1 :$offset1, gds:$gds),
316
+ (ins VGPR_32:$addr, Offset0 :$offset0, Offset1 :$offset1, gds:$gds),
317
317
" $vdst, $addr$offset0$offset1$gds"> {
318
318
319
319
let has_offset = 0;
@@ -331,7 +331,7 @@ multiclass DS_1A_Off8_RET_mc <string opName, RegisterClass rc = VGPR_32> {
331
331
332
332
class DS_1A_RET_GDS <string opName> : DS_Pseudo<opName,
333
333
(outs getLdStRegisterOperand<VGPR_32>.ret:$vdst),
334
- (ins VGPR_32:$addr, offset :$offset),
334
+ (ins VGPR_32:$addr, Offset :$offset),
335
335
" $vdst, $addr$offset gds"> {
336
336
337
337
let has_data0 = 0;
@@ -342,7 +342,7 @@ class DS_1A_RET_GDS <string opName> : DS_Pseudo<opName,
342
342
343
343
class DS_0A_RET <string opName> : DS_Pseudo<opName,
344
344
(outs getLdStRegisterOperand<VGPR_32>.ret:$vdst),
345
- (ins offset :$offset, gds:$gds),
345
+ (ins Offset :$offset, gds:$gds),
346
346
" $vdst$offset$gds"> {
347
347
348
348
let mayLoad = 1;
@@ -355,7 +355,7 @@ class DS_0A_RET <string opName> : DS_Pseudo<opName,
355
355
356
356
class DS_1A <string opName> : DS_Pseudo<opName,
357
357
(outs),
358
- (ins VGPR_32:$addr, offset :$offset, gds:$gds),
358
+ (ins VGPR_32:$addr, Offset :$offset, gds:$gds),
359
359
" $addr$offset$gds"> {
360
360
361
361
let mayLoad = 1;
@@ -390,13 +390,13 @@ class DS_GWS <string opName, dag ins, string asmOps>
390
390
391
391
class DS_GWS_0D <string opName>
392
392
: DS_GWS<opName,
393
- (ins offset :$offset), "$offset gds"> {
393
+ (ins Offset :$offset), "$offset gds"> {
394
394
let hasSideEffects = 1;
395
395
}
396
396
397
397
class DS_GWS_1D <string opName>
398
398
: DS_GWS<opName,
399
- (ins getLdStRegisterOperand<VGPR_32>.ret:$data0, offset :$offset),
399
+ (ins getLdStRegisterOperand<VGPR_32>.ret:$data0, Offset :$offset),
400
400
" $data0$offset gds"> {
401
401
402
402
let has_gws_data0 = 1;
@@ -424,7 +424,7 @@ class DS_1A1D_PERMUTE <string opName, SDPatternOperator node = null_frag,
424
424
RegisterOperand data_op = getLdStRegisterOperand<VGPR_32>.ret>
425
425
: DS_Pseudo<opName,
426
426
(outs data_op:$vdst),
427
- (ins VGPR_32:$addr, data_op:$data0, offset :$offset),
427
+ (ins VGPR_32:$addr, data_op:$data0, Offset :$offset),
428
428
" $vdst, $addr, $data0$offset",
429
429
[(set i32:$vdst,
430
430
(node (DS1Addr1Offset i32:$addr, i32:$offset), i32:$data0))] > {
@@ -439,7 +439,7 @@ class DS_1A1D_PERMUTE <string opName, SDPatternOperator node = null_frag,
439
439
440
440
class DSAtomicRetPat<DS_Pseudo inst, ValueType vt, PatFrag frag, int complexity = 0,
441
441
bit gds=0> : GCNPat <(frag (DS1Addr1Offset i32:$ptr, i32:$offset), vt:$value),
442
- (inst $ptr, getVregSrcForVT<vt>.ret:$value, offset :$offset, (i1 gds))> {
442
+ (inst $ptr, getVregSrcForVT<vt>.ret:$value, Offset :$offset, (i1 gds))> {
443
443
let AddedComplexity = complexity;
444
444
}
445
445
@@ -767,7 +767,7 @@ def : GCNPat <
767
767
768
768
class DSReadPat <DS_Pseudo inst, ValueType vt, PatFrag frag, int gds=0> : GCNPat <
769
769
(vt (frag (DS1Addr1Offset i32:$ptr, i32:$offset))),
770
- (inst $ptr, offset :$offset, (i1 gds))
770
+ (inst $ptr, Offset :$offset, (i1 gds))
771
771
>;
772
772
773
773
multiclass DSReadPat_mc<DS_Pseudo inst, ValueType vt, string frag> {
@@ -783,7 +783,7 @@ multiclass DSReadPat_mc<DS_Pseudo inst, ValueType vt, string frag> {
783
783
784
784
class DSReadPat_D16 <DS_Pseudo inst, PatFrag frag, ValueType vt> : GCNPat <
785
785
(frag (DS1Addr1Offset i32:$ptr, i32:$offset), vt:$in),
786
- (inst $ptr, offset :$offset, (i1 0), $in)
786
+ (inst $ptr, Offset :$offset, (i1 0), $in)
787
787
>;
788
788
789
789
defm : DSReadPat_mc <DS_READ_I8, i32, "sextloadi8_local">;
@@ -827,7 +827,7 @@ def : DSReadPat_D16<DS_READ_I8_D16, sextloadi8_d16_lo_local, v2f16>;
827
827
828
828
class DSWritePat <DS_Pseudo inst, ValueType vt, PatFrag frag, int gds=0> : GCNPat <
829
829
(frag vt:$value, (DS1Addr1Offset i32:$ptr, i32:$offset)),
830
- (inst $ptr, getVregSrcForVT<vt>.ret:$value, offset :$offset, (i1 gds))
830
+ (inst $ptr, getVregSrcForVT<vt>.ret:$value, Offset :$offset, (i1 gds))
831
831
>;
832
832
833
833
multiclass DSWritePat_mc <DS_Pseudo inst, ValueType vt, string frag> {
@@ -1022,7 +1022,7 @@ let SubtargetPredicate = isGFX6GFX7GFX8GFX9GFX10 in {
1022
1022
class DSAtomicCmpXChgSwapped<DS_Pseudo inst, ValueType vt, PatFrag frag,
1023
1023
int complexity = 0, bit gds=0> : GCNPat<
1024
1024
(frag (DS1Addr1Offset i32:$ptr, i32:$offset), vt:$cmp, vt:$swap),
1025
- (inst $ptr, getVregSrcForVT<vt>.ret:$cmp, getVregSrcForVT<vt>.ret:$swap, offset :$offset, (i1 gds))> {
1025
+ (inst $ptr, getVregSrcForVT<vt>.ret:$cmp, getVregSrcForVT<vt>.ret:$swap, Offset :$offset, (i1 gds))> {
1026
1026
let AddedComplexity = complexity;
1027
1027
}
1028
1028
@@ -1056,7 +1056,7 @@ let SubtargetPredicate = isGFX11Plus in {
1056
1056
class DSAtomicCmpXChg<DS_Pseudo inst, ValueType vt, PatFrag frag,
1057
1057
int complexity = 0, bit gds=0> : GCNPat<
1058
1058
(frag (DS1Addr1Offset i32:$ptr, i32:$offset), vt:$cmp, vt:$swap),
1059
- (inst $ptr, getVregSrcForVT<vt>.ret:$swap, getVregSrcForVT<vt>.ret:$cmp, offset :$offset, (i1 gds))> {
1059
+ (inst $ptr, getVregSrcForVT<vt>.ret:$swap, getVregSrcForVT<vt>.ret:$cmp, Offset :$offset, (i1 gds))> {
1060
1060
let AddedComplexity = complexity;
1061
1061
}
1062
1062
@@ -1136,7 +1136,7 @@ def : DSAtomicRetPat<DS_ADD_F64, f64, atomic_load_fadd_local_noret_64>;
1136
1136
class DSAtomicRetPatIntrinsic<DS_Pseudo inst, ValueType vt, PatFrag frag,
1137
1137
bit gds=0> : GCNPat <
1138
1138
(vt (frag (DS1Addr1Offset i32:$ptr, i32:$offset), vt:$value)),
1139
- (inst $ptr, getVregSrcForVT<vt>.ret:$value, offset :$offset, (i1 gds))> {
1139
+ (inst $ptr, getVregSrcForVT<vt>.ret:$value, Offset :$offset, (i1 gds))> {
1140
1140
}
1141
1141
1142
1142
def : DSAtomicRetPatIntrinsic<DS_ADD_RTN_F64, f64, int_amdgcn_flat_atomic_fadd_local_addrspace>;
0 commit comments