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:
parent
627e45e330
commit
6f09869ea1
4 changed files with 41 additions and 17 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue