From 1cb255cb045d1e531d5e7e6961ac90bb6f7a0474 Mon Sep 17 00:00:00 2001 From: Roland Paterson-Jones Date: Wed, 20 Nov 2024 16:05:51 +0200 Subject: Get rid of movins() infra. --- all.h | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'all.h') diff --git a/all.h b/all.h index ceb7520..6da6330 100644 --- a/all.h +++ b/all.h @@ -355,8 +355,6 @@ struct Tmp { } width; int visit; uint gcmbid; - uint gcminsn; // TODO get rid - uint gcmdefinsn; // TODO get rid }; struct Con { @@ -463,20 +461,6 @@ struct Dat { char isstr; }; -typedef struct InsLoc InsLoc; - -struct InsLoc { - uint bid; - uint insn; -}; - -typedef struct InsMov InsMov; - -struct InsMov { - InsLoc from; - InsLoc to; -}; - /* main.c */ extern Target T; extern char debug['Z'+1]; @@ -497,6 +481,8 @@ void freeall(void); void *vnew(ulong, size_t, Pool); void vfree(void *); void vgrow(void *, ulong); +void addins(Ins **, uint *, Ins *); +void addbins(Blk *, Ins **, uint *); void strf(char[NString], char *, ...); uint32_t intern(char *); char *str(uint32_t); @@ -616,12 +602,6 @@ void gvn(Fn *); int isfixed(Fn *, Ins *); void gcm(Fn *); -/* ins.c */ -void addins(Ins **, uint *, Ins *); -void addbins(Blk *, Ins **, uint *); -void nopunused(Fn *); -void movins(Fn *, InsMov *, uint, int); - /* reassoc.c */ void reassoc(Fn *); -- cgit v1.2.3