| 1 |
(* |
| 2 |
* This is the abstract interface for propagating gc info from an |
| 3 |
* instruction set. |
| 4 |
*) |
| 5 |
|
| 6 |
signature GC_PROPERTIES = |
| 7 |
sig |
| 8 |
|
| 9 |
structure I : INSTRUCTIONS |
| 10 |
structure GC : GC_TYPE |
| 11 |
|
| 12 |
(* |
| 13 |
* This function is responsible for propagating gc type information |
| 14 |
* from the input operands to the output operands of an instruction. |
| 15 |
* The propagation is performed conservatively; that is, when in doubt, |
| 16 |
* we leave the gc-type unspecified. |
| 17 |
*) |
| 18 |
|
| 19 |
val propagate : { lookup : I.C.cell -> GC.gctype, |
| 20 |
update : I.C.cell * GC.gctype -> unit |
| 21 |
} -> I.instruction -> unit |
| 22 |
|
| 23 |
end |