lib/mlrisc-lib/MLRISC/gc-safety/gc-safety.sml
raw| 1 | (* |
| 2 | * This module performs gc-safety repair in SSA form. |
| 3 | *) |
| 4 | functor GCSafety |
| 5 | (structure SSA : SSA |
| 6 | structure GCProps : GC_PROPERTIES |
| 7 | structure InsnProps : INSN_PROPERTIES |
| 8 | structure SSAProps : SSA_PROPERTIES |
| 9 | sharing SSA.I = GCProps.I = InsnProps.I = SSAProps.I |
| 10 | ) : GC_SAFETY = |
| 11 | struct |
| 12 | structure SSA = SSA |
| 13 | structure G = Graph |
| 14 | structure A = Array |
| 15 | |
| 16 | fun gcSafety(SSA as G.GRAPH ssa) = |
| 17 | let val N = #capacity ssa |
| 18 | in SSA |
| 19 | end |
| 20 | |
| 21 | end |