1111//
1212//===----------------------------------------------------------------------===//
1313
14+ //===----------------------------------------------------------------------===//
15+ // Operand and SDNode transformation definitions.
16+ //===----------------------------------------------------------------------===//
17+
18+ def ordering : RISCVOp {
19+ let OperandType = "OPERAND_ATOMIC_ORDERING";
20+ }
21+
1422//===----------------------------------------------------------------------===//
1523// Instruction class templates
1624//===----------------------------------------------------------------------===//
@@ -244,7 +252,7 @@ defm : AMOPat<"atomic_load_umin_i64", "AMOMINU_D", i64, [IsRV64]>;
244252/// Pseudo AMOs
245253
246254class PseudoAMO : Pseudo<(outs GPR:$res, GPR:$scratch),
247- (ins GPR:$addr, GPR:$incr, ixlenimm :$ordering), []> {
255+ (ins GPR:$addr, GPR:$incr, ordering :$ordering), []> {
248256 let Constraints = "@earlyclobber $res,@earlyclobber $scratch";
249257 let mayLoad = 1;
250258 let mayStore = 1;
@@ -253,7 +261,7 @@ class PseudoAMO : Pseudo<(outs GPR:$res, GPR:$scratch),
253261
254262class PseudoMaskedAMO
255263 : Pseudo<(outs GPR:$res, GPR:$scratch),
256- (ins GPR:$addr, GPR:$incr, GPR:$mask, ixlenimm :$ordering), []> {
264+ (ins GPR:$addr, GPR:$incr, GPR:$mask, ordering :$ordering), []> {
257265 let Constraints = "@earlyclobber $res,@earlyclobber $scratch";
258266 let mayLoad = 1;
259267 let mayStore = 1;
@@ -263,7 +271,7 @@ class PseudoMaskedAMO
263271class PseudoMaskedAMOMinMax
264272 : Pseudo<(outs GPR:$res, GPR:$scratch1, GPR:$scratch2),
265273 (ins GPR:$addr, GPR:$incr, GPR:$mask, ixlenimm:$sextshamt,
266- ixlenimm :$ordering), []> {
274+ ordering :$ordering), []> {
267275 let Constraints = "@earlyclobber $res,@earlyclobber $scratch1,"
268276 "@earlyclobber $scratch2";
269277 let mayLoad = 1;
@@ -273,7 +281,7 @@ class PseudoMaskedAMOMinMax
273281
274282class PseudoMaskedAMOUMinUMax
275283 : Pseudo<(outs GPR:$res, GPR:$scratch1, GPR:$scratch2),
276- (ins GPR:$addr, GPR:$incr, GPR:$mask, ixlenimm :$ordering), []> {
284+ (ins GPR:$addr, GPR:$incr, GPR:$mask, ordering :$ordering), []> {
277285 let Constraints = "@earlyclobber $res,@earlyclobber $scratch1,"
278286 "@earlyclobber $scratch2";
279287 let mayLoad = 1;
@@ -419,7 +427,7 @@ defm : PseudoAMOPat<"atomic_load_nand_i64", PseudoAtomicLoadNand64, i64>;
419427
420428class PseudoCmpXchg
421429 : Pseudo<(outs GPR:$res, GPR:$scratch),
422- (ins GPR:$addr, GPR:$cmpval, GPR:$newval, ixlenimm :$ordering), []> {
430+ (ins GPR:$addr, GPR:$cmpval, GPR:$newval, ordering :$ordering), []> {
423431 let Constraints = "@earlyclobber $res,@earlyclobber $scratch";
424432 let mayLoad = 1;
425433 let mayStore = 1;
@@ -457,7 +465,7 @@ let Predicates = [HasStdExtZalrsc] in {
457465def PseudoMaskedCmpXchg32
458466 : Pseudo<(outs GPR:$res, GPR:$scratch),
459467 (ins GPR:$addr, GPR:$cmpval, GPR:$newval, GPR:$mask,
460- ixlenimm :$ordering), []> {
468+ ordering :$ordering), []> {
461469 let Constraints = "@earlyclobber $res,@earlyclobber $scratch";
462470 let mayLoad = 1;
463471 let mayStore = 1;
0 commit comments