aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ir.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-24 11:55:13 +0100
committerlemon <lsof@mailbox.org>2026-03-24 11:55:13 +0100
commit5c209b4df903c5f71cdc8320adbb34f1499f9232 (patch)
tree729b346983b3629e87379bf1ad14a1630c8d9940 /src/ir.h
parente00db1c7a360ccf83a1b39408db5d06692fe7e91 (diff)
mem2reg rewrite
Do it in 2 passes: 1. gather variables, 2. step thru RPO transforming loads/stores to each variable. More elegant solution to f9e3a52eaa. More efficient since all variable usages are visited in CFG order, which matters due to block sealing.
Diffstat (limited to 'src/ir.h')
-rw-r--r--src/ir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.h b/src/ir.h
index 2070ffd..7a1190d 100644
--- a/src/ir.h
+++ b/src/ir.h
@@ -105,6 +105,7 @@ enum op {
#define oisalloca(o) in_range(o, Oalloca1, Oalloca16)
#define oisstore(o) in_range(o, Ostorei8, Ostoref64)
#define oisload(o) in_range(o, Oloads8, Oloadf64)
+#define oisloadstore(o) in_range(o, Oloads8, Ostoref64)
extern const char *opnames[];
extern const uchar opnoper[];