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).
This commit is contained in:
Quentin Carbonneaux 2015-08-18 19:11:48 -04:00
parent 627e45e330
commit 6f09869ea1
4 changed files with 41 additions and 17 deletions

View file

@ -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 */