authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-03-11 19:33:22+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-03-11 20:05:50+01:00
logf279ccb8078db9df92f02e23f70486f1950b92ed
treec4724e80242bc18fb5df02de4df257b4135270f0
parentfb38e3d6b29f71834c7ea4ef21e4d3f607c03777

x86_64: rename asmNone to asmOpOnly


1 files changed, 6 insertions(+), 6 deletions(-)

src/arch/x86_64/CodeGen.zig+6-6
...@@ -442,7 +442,7 @@ fn asmJccReloc(self: *Self, target: Mir.Inst.Index, cc: bits.Condition) !Mir.Ins...@@ -442,7 +442,7 @@ fn asmJccReloc(self: *Self, target: Mir.Inst.Index, cc: bits.Condition) !Mir.Ins
442 });442 });
443}443}
444444
445fn asmNone(self: *Self, tag: Mir.Inst.Tag) !void {445fn asmOpOnly(self: *Self, tag: Mir.Inst.Tag) !void {
446 _ = try self.addInst(.{446 _ = try self.addInst(.{
447 .tag = tag,447 .tag = tag,
448 .ops = .none,448 .ops = .none,
...@@ -709,7 +709,7 @@ fn gen(self: *Self) InnerError!void {...@@ -709,7 +709,7 @@ fn gen(self: *Self) InnerError!void {
709 });709 });
710710
711 try self.asmRegister(.pop, .rbp);711 try self.asmRegister(.pop, .rbp);
712 try self.asmNone(.ret);712 try self.asmOpOnly(.ret);
713713
714 // Adjust the stack714 // Adjust the stack
715 if (self.max_end_stack > math.maxInt(i32)) {715 if (self.max_end_stack > math.maxInt(i32)) {
...@@ -1856,7 +1856,7 @@ fn genIntMulDivOpMir(...@@ -1856,7 +1856,7 @@ fn genIntMulDivOpMir(
1856 }1856 }
18571857
1858 switch (signedness) {1858 switch (signedness) {
1859 .signed => try self.asmNone(.cqo),1859 .signed => try self.asmOpOnly(.cqo),
1860 .unsigned => try self.asmRegisterRegister(.xor, .rdx, .rdx),1860 .unsigned => try self.asmRegisterRegister(.xor, .rdx, .rdx),
1861 }1861 }
18621862
...@@ -3901,12 +3901,12 @@ fn genVarDbgInfo(...@@ -3901,12 +3901,12 @@ fn genVarDbgInfo(
3901}3901}
39023902
3903fn airTrap(self: *Self) !void {3903fn airTrap(self: *Self) !void {
3904 try self.asmNone(.ud2);3904 try self.asmOpOnly(.ud2);
3905 return self.finishAirBookkeeping();3905 return self.finishAirBookkeeping();
3906}3906}
39073907
3908fn airBreakpoint(self: *Self) !void {3908fn airBreakpoint(self: *Self) !void {
3909 try self.asmNone(.int3);3909 try self.asmOpOnly(.int3);
3910 return self.finishAirBookkeeping();3910 return self.finishAirBookkeeping();
3911}3911}
39123912
...@@ -5109,7 +5109,7 @@ fn airAsm(self: *Self, inst: Air.Inst.Index) !void {...@@ -5109,7 +5109,7 @@ fn airAsm(self: *Self, inst: Air.Inst.Index) !void {
5109 var iter = std.mem.tokenize(u8, asm_source, "\n\r");5109 var iter = std.mem.tokenize(u8, asm_source, "\n\r");
5110 while (iter.next()) |ins| {5110 while (iter.next()) |ins| {
5111 if (mem.eql(u8, ins, "syscall")) {5111 if (mem.eql(u8, ins, "syscall")) {
5112 try self.asmNone(.syscall);5112 try self.asmOpOnly(.syscall);
5113 } else if (mem.indexOf(u8, ins, "push")) |_| {5113 } else if (mem.indexOf(u8, ins, "push")) |_| {
5114 const arg = ins[4..];5114 const arg = ins[4..];
5115 if (mem.indexOf(u8, arg, "$")) |l| {5115 if (mem.indexOf(u8, arg, "$")) |l| {