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
442442 });
443443}
444444
445fn asmNone(self: *Self, tag: Mir.Inst.Tag) !void {
445fn asmOpOnly(self: *Self, tag: Mir.Inst.Tag) !void {
446446 _ = try self.addInst(.{
447447 .tag = tag,
448448 .ops = .none,
......@@ -709,7 +709,7 @@ fn gen(self: *Self) InnerError!void {
709709 });
710710
711711 try self.asmRegister(.pop, .rbp);
712 try self.asmNone(.ret);
712 try self.asmOpOnly(.ret);
713713
714714 // Adjust the stack
715715 if (self.max_end_stack > math.maxInt(i32)) {
......@@ -1856,7 +1856,7 @@ fn genIntMulDivOpMir(
18561856 }
18571857
18581858 switch (signedness) {
1859 .signed => try self.asmNone(.cqo),
1859 .signed => try self.asmOpOnly(.cqo),
18601860 .unsigned => try self.asmRegisterRegister(.xor, .rdx, .rdx),
18611861 }
18621862
......@@ -3901,12 +3901,12 @@ fn genVarDbgInfo(
39013901}
39023902
39033903fn airTrap(self: *Self) !void {
3904 try self.asmNone(.ud2);
3904 try self.asmOpOnly(.ud2);
39053905 return self.finishAirBookkeeping();
39063906}
39073907
39083908fn airBreakpoint(self: *Self) !void {
3909 try self.asmNone(.int3);
3909 try self.asmOpOnly(.int3);
39103910 return self.finishAirBookkeeping();
39113911}
39123912
......@@ -5109,7 +5109,7 @@ fn airAsm(self: *Self, inst: Air.Inst.Index) !void {
51095109 var iter = std.mem.tokenize(u8, asm_source, "\n\r");
51105110 while (iter.next()) |ins| {
51115111 if (mem.eql(u8, ins, "syscall")) {
5112 try self.asmNone(.syscall);
5112 try self.asmOpOnly(.syscall);
51135113 } else if (mem.indexOf(u8, ins, "push")) |_| {
51145114 const arg = ins[4..];
51155115 if (mem.indexOf(u8, arg, "$")) |l| {