| 1 |
(* |
| 2 |
* Abstract interface for GC types. |
| 3 |
*) |
| 4 |
signature GC_TYPE = |
| 5 |
sig |
| 6 |
|
| 7 |
type gctype |
| 8 |
type ty = int (* width of addressing mode *) |
| 9 |
|
| 10 |
val CONST : IntInf.int -> gctype (* integer constant *) |
| 11 |
|
| 12 |
val INT : gctype (* machine integer *) |
| 13 |
val REAL32 : gctype (* machine float *) |
| 14 |
val REAL64 : gctype (* machine float *) |
| 15 |
val PTR : gctype (* gc pointers *) |
| 16 |
|
| 17 |
val ADD : ty * gctype * gctype -> gctype (* address arithmetic *) |
| 18 |
val SUB : ty * gctype * gctype -> gctype (* address arithmetic *) |
| 19 |
val BOT : gctype |
| 20 |
val TOP : gctype |
| 21 |
|
| 22 |
val == : gctype * gctype -> bool |
| 23 |
val join : gctype * gctype -> gctype |
| 24 |
val meet : gctype * gctype -> gctype |
| 25 |
|
| 26 |
val toString : gctype -> string |
| 27 |
|
| 28 |
(* |
| 29 |
* Annotations for gc type |
| 30 |
*) |
| 31 |
exception GCTYPE of gctype |
| 32 |
val GC_TYPE : gctype Annotations.property |
| 33 |
|
| 34 |
end |