aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-05 10:59:44 +0200
committerlemon <lsof@mailbox.org>2023-06-05 10:59:44 +0200
commitd8ba699bae286cb29a6a965ee204804649f0bbc8 (patch)
treee39f855157b1b7ec592ad19407f83865fba1fea2 /ir.h
parented47a54958f5bd48dc364d4a0f77f778768696bb (diff)
style
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir.h b/ir.h
index 4cce899..c871fa7 100644
--- a/ir.h
+++ b/ir.h
@@ -75,8 +75,7 @@ enum refkind {
};
union ref {
- struct { uint t : 3, idx : 29; };
- struct { signed _0: 3, i : 29; }; /* RICON */
+ struct { unsigned t : 3; signed i : 29; };
uint bits;
};
@@ -166,8 +165,8 @@ extern struct calltab {vec_of(struct call);} calltab;
extern struct phitab {vec_of(struct phi);} phitab;
extern struct dattab {vec_of(struct irdat);} dattab;
#define NOREF ((union ref) {0})
+#define ZEROREF ((union ref) {{ RICON, 0 }})
#define mkref(t, x) ((union ref) {{ (t), (x) }})
-#define mkzerocon() ((union ref) {{ RICON, 0 }})
#define mkinstr(O, C, ...) ((struct instr) { .op = (O), .cls = (C), .reg=0, __VA_ARGS__ })
void irinit(struct function *);
void irfini(struct function *);