| 1 |
(* arch-spill-instr.sig |
| 2 |
* |
| 3 |
* COPYRIGHT (c) 2002 Bell Labs, Lucent Technologies |
| 4 |
* |
| 5 |
* Architecture specific instructions to emit when spilling an instruction. |
| 6 |
*) |
| 7 |
|
| 8 |
(* TODO: Some day, all these interface functions will be sensitive to |
| 9 |
* the size being spilled or reloaded --- but today is not the day! |
| 10 |
*) |
| 11 |
signature ARCH_SPILL_INSTR = sig |
| 12 |
structure I : INSTRUCTIONS |
| 13 |
structure CB : CELLS_BASIS (* = CellsBasis *) |
| 14 |
where type CellSet.cellset = CellsBasis.CellSet.cellset |
| 15 |
and type 'a ColorTable.hash_table = 'a CellsBasis.ColorTable.hash_table |
| 16 |
and type 'a HashTable.hash_table = 'a CellsBasis.HashTable.hash_table |
| 17 |
and type SortedCells.sorted_cells = CellsBasis.SortedCells.sorted_cells |
| 18 |
and type cell = CellsBasis.cell |
| 19 |
and type cellColor = CellsBasis.cellColor |
| 20 |
and type cellkind = CellsBasis.cellkind |
| 21 |
and type cellkindDesc = CellsBasis.cellkindDesc |
| 22 |
and type cellkindInfo = CellsBasis.cellkindInfo |
| 23 |
|
| 24 |
val spillToEA : |
| 25 |
CB.cellkind -> |
| 26 |
CB.cell * I.ea -> |
| 27 |
{code:I.instruction list, proh:CB.cell list, newReg:CB.cell option} |
| 28 |
|
| 29 |
val reloadFromEA : |
| 30 |
CB.cellkind -> |
| 31 |
CB.cell * I.ea -> |
| 32 |
{code:I.instruction list, proh:CB.cell list, newReg:CB.cell option} |
| 33 |
|
| 34 |
val spill : |
| 35 |
CB.cellkind -> |
| 36 |
I.instruction * CB.cell * I.ea -> |
| 37 |
{code:I.instruction list, proh:CB.cell list, newReg:CB.cell option} |
| 38 |
val reload : |
| 39 |
CB.cellkind -> |
| 40 |
I.instruction * CB.cell * I.ea -> |
| 41 |
{code:I.instruction list, proh:CB.cell list, newReg:CB.cell option} |
| 42 |
end |