Debian Codegraph @

lib/mlrisc-lib/MLRISC/gc-safety/gc-cells.sig

raw
1 (*
2 * This module provides few helper functions for annotating virtual registers
3 * with gc type information.
4 *)
5
6 signature GC_CELLS =
7 sig
8
9 structure C : CELLS
10 structure GC : GC_TYPE
11 structure CB : CELLS_BASIS (* = CellsBasis *)
12 where type CellSet.cellset = CellsBasis.CellSet.cellset
13 and type 'a ColorTable.hash_table = 'a CellsBasis.ColorTable.hash_table
14 and type 'a HashTable.hash_table = 'a CellsBasis.HashTable.hash_table
15 and type SortedCells.sorted_cells = CellsBasis.SortedCells.sorted_cells
16 and type cell = CellsBasis.cell
17 and type cellColor = CellsBasis.cellColor
18 and type cellkind = CellsBasis.cellkind
19 and type cellkindDesc = CellsBasis.cellkindDesc
20 and type cellkindInfo = CellsBasis.cellkindInfo
21
22 (* Generate a virtual register and update the gc info at the same time. *)
23 val newCell : CB.cellkind -> GC.gctype -> CB.cell
24 val setGCType : CB.cell * GC.gctype -> unit
25 val getGCType : CB.cell -> GC.gctype
26
27 (* Prettty print gc type *)
28 val printType : CB.cell -> string
29
30 val GCLIVEOUT : (CB.cell * GC.gctype) list Annotations.property
31
32 end