From 6f09869ea139782fd97e80182a0645891bf548d5 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 18 Aug 2015 19:11:48 -0400 Subject: move spill and emit to the new slot system In emit, I worked a little to make sure that framesz works when we change the size of the svec array (if we need more alignments). --- lisc/lisc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisc/lisc.h') diff --git a/lisc/lisc.h b/lisc/lisc.h index a70c7a5..ce32bb5 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -58,7 +58,7 @@ enum Reg { Tmp0, /* first non-reg temporary */ - NReg = R11 - RAX + 1 + NReg = RDX - RAX + 1 }; #define RWORD(r) (r + (EAX-RAX)) @@ -244,7 +244,7 @@ struct Fn { int ncon; int nblk; Blk **rpo; - int slot[3]; + int svec[3]; }; @@ -269,7 +269,7 @@ void ssafix(Fn *, int); void filllive(Fn *); /* isel.c */ -int slot_(int, int, Fn *); +int slota(int, int, int *); void isel(Fn *); /* spill.c */ -- cgit 1.4.1