aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/ir.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-21 17:40:42 +0100
committerlemon <lsof@mailbox.org>2025-11-21 17:40:42 +0100
commitf119f08aa254d4e98211ade88b8c415fba3746fb (patch)
treee1614aa477f51be25e1d1268febe482190b5b9f5 /ir/ir.h
parent87f9753fb776a1fa6e59baef759e4687fb9a1ac7 (diff)
ir: implement dominator tree computation
Diffstat (limited to 'ir/ir.h')
-rw-r--r--ir/ir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/ir.h b/ir/ir.h
index 1c7c02e..77f25d4 100644
--- a/ir/ir.h
+++ b/ir/ir.h
@@ -128,6 +128,7 @@ struct block {
};
struct block *lprev, *lnext;
struct block *s1, *s2;
+ struct block *idom;
vec_of(ushort) phi;
vec_of(ushort) ins;
struct { uchar t; union ref arg[2]; } jmp;
@@ -301,6 +302,7 @@ void copyopt(struct function *);
/** cfg.c **/
void sortrpo(struct function *fn);
+void filldom(struct function *fn);
/** abi0.c **/
void abi0(struct function *);