tentative support for fast allocs
It seems that the MEM reference type is meaningless in too many positions. Because of this, it is unclear if we should keep it or just introduce a OAddr instruction that only accepts slots. Regardless of the above, the spilling module needs to use the new slot_() function, also, the emit function needs to fetch the size of the stack frame from the slot[] array. The naming is still very transitional, here is a list of all bogus names I can think of: - SLOT() - Tmp.spill - slot_
This commit is contained in:
parent
0f3846e261
commit
67d3c2834d
5 changed files with 170 additions and 27 deletions
|
@ -375,5 +375,4 @@ spill(Fn *fn)
|
|||
b->ins = alloc(b->nins * sizeof(Ins));
|
||||
memcpy(b->ins, curi, b->nins * sizeof(Ins));
|
||||
}
|
||||
fn->nspill = ns;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue