lib/mlrisc-lib/MLRISC/mltree/mltree-simplify.sig
raw| 1 | (* |
| 2 | * Performs simple local optimizations. |
| 3 | * Constant folding, algebraic simplication and some dead code elimination. |
| 4 | *) |
| 5 | signature MLTREE_SIMPLIFIER = |
| 6 | sig |
| 7 | |
| 8 | structure T : MLTREE |
| 9 | |
| 10 | type simplifier = T.rewriter |
| 11 | val simplify : |
| 12 | { addressWidth : int, (* width of address in bits *) |
| 13 | signedAddress : bool (* is the address computation signed? *) |
| 14 | } -> simplifier |
| 15 | |
| 16 | end |