From 575b24a9f023f7950eefea6d85431281f04cc1dc Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 19 Dec 2025 12:59:24 +0100 Subject: ir: move some filluses() to ir.c, rename optmem.c -> mem2reg.c --- ir/ir.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ir/ir.h') diff --git a/ir/ir.h b/ir/ir.h index 174cdab..4049811 100644 --- a/ir/ir.h +++ b/ir/ir.h @@ -271,6 +271,7 @@ union ref insertphi(struct block *, enum irclass cls); void replcuses(union ref from, union ref to); bool deluse(struct block *ublk, int ui, union ref r); void deluses(int ins); +void filluses(struct function *); void delinstr(struct block *, int idx); void delphi(struct block *, int idx); void delnops(struct block *blk); @@ -300,7 +301,6 @@ bool foldunop(union ref *to, enum op, enum irclass, union ref); void irdump(struct function *); /** ssa.c **/ -void filluses(struct function *); void copyopt(struct function *); /** cfg.c **/ @@ -311,7 +311,7 @@ void filldom(struct function *fn); void abi0(struct function *); void abi0_call(struct function *, struct instr *, struct block *blk, int *curi); -/** optmem.c **/ +/** mem2reg.c **/ void mem2reg(struct function *); /** intrin.c **/ -- cgit v1.2.3