ir
This commit is contained in:
@@ -167,6 +167,8 @@ fn printInst(instruction: *const Inst, ref_idx: u32, tt: *const TypeTable, write
|
||||
.cmp_le => |b| try writer.print("cmp_le %{d}, %{d} : ", .{ b.lhs.index(), b.rhs.index() }),
|
||||
.cmp_gt => |b| try writer.print("cmp_gt %{d}, %{d} : ", .{ b.lhs.index(), b.rhs.index() }),
|
||||
.cmp_ge => |b| try writer.print("cmp_ge %{d}, %{d} : ", .{ b.lhs.index(), b.rhs.index() }),
|
||||
.str_eq => |b| try writer.print("str_eq %{d}, %{d} : ", .{ b.lhs.index(), b.rhs.index() }),
|
||||
.str_ne => |b| try writer.print("str_ne %{d}, %{d} : ", .{ b.lhs.index(), b.rhs.index() }),
|
||||
|
||||
// ── Logical ─────────────────────────────────────────────
|
||||
.bool_and => |b| try writer.print("bool_and %{d}, %{d} : ", .{ b.lhs.index(), b.rhs.index() }),
|
||||
@@ -359,6 +361,7 @@ fn printInst(instruction: *const Inst, ref_idx: u32, tt: *const TypeTable, write
|
||||
|
||||
// ── Globals ─────────────────────────────────────────────
|
||||
.global_get => |gid| try writer.print("global_get @{d} : ", .{gid.index()}),
|
||||
.func_ref => |fid| try writer.print("func_ref @{d} : ", .{@intFromEnum(fid)}),
|
||||
.global_set => |gs| {
|
||||
try writer.print("global_set @{d}, %{d}\n", .{ gs.global.index(), gs.value.index() });
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user