From 291c39565fb3b4e688dce2bfedbdd781ed71e87d Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Fri, 13 Nov 2015 13:12:22 -0500 Subject: store the use locations for temporaries --- lisc/lisc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lisc/lisc.h') diff --git a/lisc/lisc.h b/lisc/lisc.h index 5748587..3643e48 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -14,6 +14,7 @@ typedef struct OpDesc OpDesc; typedef struct Ins Ins; typedef struct Phi Phi; typedef struct Blk Blk; +typedef struct Use Use; typedef struct Tmp Tmp; typedef struct Con Con; typedef struct Addr Mem; @@ -247,8 +248,23 @@ struct Blk { char name[NString]; }; +struct Use { + enum { + UXXX, + UPhi, + UIns, + UJmp, + } type; + int bid; + union { + int ins; + Ref phi; + } u; +}; + struct Tmp { char name[NString]; + Use *use; uint ndef, nuse; uint cost; short slot; -- cgit 1.4.1