| ... | ... | @@ -97,7 +97,7 @@ const Writer = struct { |
| 97 | 97 | const tag = w.air.instructions.items(.tag)[@intFromEnum(inst)]; |
| 98 | 98 | try s.writeByteNTimes(' ', w.indent); |
| 99 | 99 | try s.print("%{d}{c}= {s}(", .{ |
| 100 | | inst, |
| 100 | @intFromEnum(inst), |
| 101 | 101 | @as(u8, if (if (w.liveness) |liveness| liveness.isUnused(inst) else false) '!' else ' '), |
| 102 | 102 | @tagName(tag), |
| 103 | 103 | }); |
| ... | ... | @@ -388,7 +388,7 @@ const Writer = struct { |
| 388 | 388 | try s.writeAll("}"); |
| 389 | 389 | |
| 390 | 390 | for (liveness_block.deaths) |operand| { |
| 391 | | try s.print(" %{d}!", .{operand}); |
| 391 | try s.print(" %{d}!", .{@intFromEnum(operand)}); |
| 392 | 392 | } |
| 393 | 393 | } |
| 394 | 394 | |
| ... | ... | @@ -715,7 +715,7 @@ const Writer = struct { |
| 715 | 715 | try s.writeByteNTimes(' ', w.indent); |
| 716 | 716 | for (liveness_condbr.else_deaths, 0..) |operand, i| { |
| 717 | 717 | if (i != 0) try s.writeAll(" "); |
| 718 | | try s.print("%{d}!", .{operand}); |
| 718 | try s.print("%{d}!", .{@intFromEnum(operand)}); |
| 719 | 719 | } |
| 720 | 720 | try s.writeAll("\n"); |
| 721 | 721 | } |
| ... | ... | @@ -726,7 +726,7 @@ const Writer = struct { |
| 726 | 726 | try s.writeAll("}"); |
| 727 | 727 | |
| 728 | 728 | for (liveness_condbr.then_deaths) |operand| { |
| 729 | | try s.print(" %{d}!", .{operand}); |
| 729 | try s.print(" %{d}!", .{@intFromEnum(operand)}); |
| 730 | 730 | } |
| 731 | 731 | } |
| 732 | 732 | |
| ... | ... | @@ -752,7 +752,7 @@ const Writer = struct { |
| 752 | 752 | try s.writeByteNTimes(' ', w.indent); |
| 753 | 753 | for (liveness_condbr.else_deaths, 0..) |operand, i| { |
| 754 | 754 | if (i != 0) try s.writeAll(" "); |
| 755 | | try s.print("%{d}!", .{operand}); |
| 755 | try s.print("%{d}!", .{@intFromEnum(operand)}); |
| 756 | 756 | } |
| 757 | 757 | try s.writeAll("\n"); |
| 758 | 758 | } |
| ... | ... | @@ -763,7 +763,7 @@ const Writer = struct { |
| 763 | 763 | try s.writeAll("}"); |
| 764 | 764 | |
| 765 | 765 | for (liveness_condbr.then_deaths) |operand| { |
| 766 | | try s.print(" %{d}!", .{operand}); |
| 766 | try s.print(" %{d}!", .{@intFromEnum(operand)}); |
| 767 | 767 | } |
| 768 | 768 | } |
| 769 | 769 | |
| ... | ... | @@ -787,7 +787,7 @@ const Writer = struct { |
| 787 | 787 | try s.writeByteNTimes(' ', w.indent); |
| 788 | 788 | for (liveness_condbr.then_deaths, 0..) |operand, i| { |
| 789 | 789 | if (i != 0) try s.writeAll(" "); |
| 790 | | try s.print("%{d}!", .{operand}); |
| 790 | try s.print("%{d}!", .{@intFromEnum(operand)}); |
| 791 | 791 | } |
| 792 | 792 | try s.writeAll("\n"); |
| 793 | 793 | } |
| ... | ... | @@ -800,7 +800,7 @@ const Writer = struct { |
| 800 | 800 | try s.writeByteNTimes(' ', w.indent); |
| 801 | 801 | for (liveness_condbr.else_deaths, 0..) |operand, i| { |
| 802 | 802 | if (i != 0) try s.writeAll(" "); |
| 803 | | try s.print("%{d}!", .{operand}); |
| 803 | try s.print("%{d}!", .{@intFromEnum(operand)}); |
| 804 | 804 | } |
| 805 | 805 | try s.writeAll("\n"); |
| 806 | 806 | } |
| ... | ... | @@ -852,7 +852,7 @@ const Writer = struct { |
| 852 | 852 | try s.writeByteNTimes(' ', w.indent); |
| 853 | 853 | for (deaths, 0..) |operand, i| { |
| 854 | 854 | if (i != 0) try s.writeAll(" "); |
| 855 | | try s.print("%{d}!", .{operand}); |
| 855 | try s.print("%{d}!", .{@intFromEnum(operand)}); |
| 856 | 856 | } |
| 857 | 857 | try s.writeAll("\n"); |
| 858 | 858 | } |
| ... | ... | @@ -873,7 +873,7 @@ const Writer = struct { |
| 873 | 873 | try s.writeByteNTimes(' ', w.indent); |
| 874 | 874 | for (deaths, 0..) |operand, i| { |
| 875 | 875 | if (i != 0) try s.writeAll(" "); |
| 876 | | try s.print("%{d}!", .{operand}); |
| 876 | try s.print("%{d}!", .{@intFromEnum(operand)}); |
| 877 | 877 | } |
| 878 | 878 | try s.writeAll("\n"); |
| 879 | 879 | } |
| ... | ... | @@ -957,7 +957,7 @@ const Writer = struct { |
| 957 | 957 | dies: bool, |
| 958 | 958 | ) @TypeOf(s).Error!void { |
| 959 | 959 | _ = w; |
| 960 | | try s.print("%{d}", .{inst}); |
| 960 | try s.print("%{d}", .{@intFromEnum(inst)}); |
| 961 | 961 | if (dies) try s.writeByte('!'); |
| 962 | 962 | } |
| 963 | 963 | |