| 1 |
(* |
| 2 |
* This signature specifies the MLRISC annotations for describing |
| 3 |
* memory aliasing and control dependence. |
| 4 |
* |
| 5 |
* -- Allen |
| 6 |
*) |
| 7 |
|
| 8 |
signature MLRISC_REGION = |
| 9 |
sig |
| 10 |
|
| 11 |
type region |
| 12 |
|
| 13 |
datatype mutability = |
| 14 |
READONLY (* readonly regions are never written to *) |
| 15 |
| IMMUTABLE (* immutable region are never updated once it is initialized *) |
| 16 |
| MUTABLE (* mutable regions can be updated *) |
| 17 |
|
| 18 |
val memory : region (* root of the memory hierarchy *) |
| 19 |
|
| 20 |
val heap : region (* heap region *) |
| 21 |
val stack : region (* stack region *) |
| 22 |
val data : region (* global data region *) |
| 23 |
val readonly : region (* read only data region *) |
| 24 |
|
| 25 |
val new : string * mutability * region -> region |
| 26 |
val union : region list -> region |
| 27 |
|
| 28 |
val toString : region -> string |
| 29 |
|
| 30 |
end |