@@ -1545,10 +1545,9 @@ def : Pat<(brind (add GPRJALR:$rs1, simm12:$imm12)),
1545
1545
// Define isCodeGenOnly = 0 to support parsing assembly "call" instruction.
1546
1546
let isCall = 1, isBarrier = 1, isCodeGenOnly = 0, Size = 8, hasSideEffects = 0,
1547
1547
mayStore = 0, mayLoad = 0 in
1548
- def PseudoCALLReg : Pseudo<(outs GPR:$rd), (ins call_symbol:$func), []>,
1549
- Sched<[WriteIALU, WriteJalr, ReadJalr]> {
1550
- let AsmString = "call\t$rd, $func";
1551
- }
1548
+ def PseudoCALLReg : Pseudo<(outs GPR:$rd), (ins call_symbol:$func), [],
1549
+ "call", "$rd, $func">,
1550
+ Sched<[WriteIALU, WriteJalr, ReadJalr]>;
1552
1551
1553
1552
// PseudoCALL is a pseudo instruction which will eventually expand to auipc
1554
1553
// and jalr while encoding. This is desirable, as an auipc+jalr pair with
@@ -1557,10 +1556,9 @@ def PseudoCALLReg : Pseudo<(outs GPR:$rd), (ins call_symbol:$func), []>,
1557
1556
// Define AsmString to print "call" when compile with -S flag.
1558
1557
// Define isCodeGenOnly = 0 to support parsing assembly "call" instruction.
1559
1558
let isCall = 1, Defs = [X1], isCodeGenOnly = 0, Size = 8 in
1560
- def PseudoCALL : Pseudo<(outs), (ins call_symbol:$func), []>,
1561
- Sched<[WriteIALU, WriteJalr, ReadJalr]> {
1562
- let AsmString = "call\t$func";
1563
- }
1559
+ def PseudoCALL : Pseudo<(outs), (ins call_symbol:$func), [],
1560
+ "call", "$func">,
1561
+ Sched<[WriteIALU, WriteJalr, ReadJalr]>;
1564
1562
1565
1563
def : Pat<(riscv_call tglobaladdr:$func), (PseudoCALL tglobaladdr:$func)>;
1566
1564
def : Pat<(riscv_call texternalsym:$func), (PseudoCALL texternalsym:$func)>;
@@ -1582,10 +1580,9 @@ def PseudoRET : Pseudo<(outs), (ins), [(riscv_ret_glue)]>,
1582
1580
// Define AsmString to print "tail" when compile with -S flag.
1583
1581
let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1, Uses = [X2],
1584
1582
Size = 8, isCodeGenOnly = 0 in
1585
- def PseudoTAIL : Pseudo<(outs), (ins call_symbol:$dst), []>,
1586
- Sched<[WriteIALU, WriteJalr, ReadJalr]> {
1587
- let AsmString = "tail\t$dst";
1588
- }
1583
+ def PseudoTAIL : Pseudo<(outs), (ins call_symbol:$dst), [],
1584
+ "tail", "$dst">,
1585
+ Sched<[WriteIALU, WriteJalr, ReadJalr]>;
1589
1586
1590
1587
let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1, Uses = [X2] in
1591
1588
def PseudoTAILIndirect : Pseudo<(outs), (ins GPRTC:$rs1),
@@ -1599,10 +1596,9 @@ def : Pat<(riscv_tail (iPTR texternalsym:$dst)),
1599
1596
1600
1597
let isCall = 0, isBarrier = 1, isBranch = 1, isTerminator = 1, Size = 8,
1601
1598
isCodeGenOnly = 0, hasSideEffects = 0, mayStore = 0, mayLoad = 0 in
1602
- def PseudoJump : Pseudo<(outs GPR:$rd), (ins pseudo_jump_symbol:$target), []>,
1603
- Sched<[WriteIALU, WriteJalr, ReadJalr]> {
1604
- let AsmString = "jump\t$target, $rd";
1605
- }
1599
+ def PseudoJump : Pseudo<(outs GPR:$rd), (ins pseudo_jump_symbol:$target), [],
1600
+ "jump", "$target, $rd">,
1601
+ Sched<[WriteIALU, WriteJalr, ReadJalr]>;
1606
1602
1607
1603
let hasSideEffects = 0, mayLoad = 0, mayStore = 0, Size = 8, isCodeGenOnly = 0,
1608
1604
isAsmParserOnly = 1 in
0 commit comments