lib/mlrisc-lib/MLRISC/mltree/mltree-size.sig
raw| 1 | (* |
| 2 | * This module provides functions for computing the size MLTREE transformations. |
| 3 | * Basically, we want to support various non built-in datatype widths. |
| 4 | * This module handles the translation. |
| 5 | * |
| 6 | * -- Allen |
| 7 | *) |
| 8 | signature MLTREE_SIZE = |
| 9 | sig |
| 10 | |
| 11 | structure T : MLTREE |
| 12 | |
| 13 | val intTy : int (* natural width of integers *) |
| 14 | |
| 15 | (* |
| 16 | * Return the size of an expression |
| 17 | *) |
| 18 | val size : T.rexp -> T.ty |
| 19 | val fsize : T.fexp -> T.ty |
| 20 | |
| 21 | end |