aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/dump.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-21 11:03:23 +0100
committerlemon <lsof@mailbox.org>2025-11-21 11:03:23 +0100
commit285063eba442e2a8ac29fd42e0d17d996bcc5d00 (patch)
tree7779cdbdc72ded422840d560475cf297f4f37ca9 /ir/dump.c
parent337eac613ae7fd5ce9229fc9000f9c6a5aef1890 (diff)
rename IR classes to reflect bitsize
Diffstat (limited to 'ir/dump.c')
-rw-r--r--ir/dump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ir/dump.c b/ir/dump.c
index 3d4338b..f7d005c 100644
--- a/ir/dump.c
+++ b/ir/dump.c
@@ -58,7 +58,7 @@ pridat(const struct irdat *dat)
}
static const char *clsname[] = {
- "?", "i4", "i8", "ptr", "f4", "f8"
+ "?", "i32", "i64", "ptr", "f32", "f64"
};
static void
@@ -123,11 +123,11 @@ dumpref(enum op o, union ref ref)
}
}
} else switch (con->cls) {
- case KI4: bfmt(out, "%d", (int)con->i); break;
- case KI8: bfmt(out, "%ld", con->i); break;
+ case KI32: bfmt(out, "%d", (int)con->i); break;
+ case KI64: bfmt(out, "%ld", con->i); break;
case KPTR: bfmt(out, "%'lx", con->i); break;
- case KF4: bfmt(out, "%fs", con->f); break;
- case KF8: bfmt(out, "%fd", con->f); break;
+ case KF32: bfmt(out, "%fs", con->f); break;
+ case KF64: bfmt(out, "%fd", con->f); break;
default: assert(0);
}
if (con->deref) bfmt(out, "]");