| 1 |
= SXMLSimplify |
| 2 |
|
| 3 |
The optimization passes for the <<SXML#>> <<IntermediateLanguage#>> are |
| 4 |
collected and controlled by the `SxmlSimplify` functor |
| 5 |
(https://github.com/MLton/mlton/blob/master/mlton/xml/sxml-simplify.sig[`sxml-simplify.sig`], |
| 6 |
https://github.com/MLton/mlton/blob/master/mlton/xml/sxml-simplify.fun[`sxml-simplify.fun`]). |
| 7 |
|
| 8 |
The following optimization passes are implemented: |
| 9 |
|
| 10 |
* <<Polyvariance#>> |
| 11 |
* <<SXMLShrink#>> |
| 12 |
|
| 13 |
The following implementation passes are implemented: |
| 14 |
|
| 15 |
* <<ImplementExceptions#>> |
| 16 |
* <<ImplementSuffix#>> |
| 17 |
|
| 18 |
The following optimization passes are not implemented, but might prove useful: |
| 19 |
|
| 20 |
* <<Uncurry#>> |
| 21 |
* <<LambdaLift#>> |
| 22 |
|
| 23 |
The optimization passes can be controlled from the command-line by the options |
| 24 |
|
| 25 |
* `-diag-pass <pass>` -- keep diagnostic info for pass |
| 26 |
* `-disable-pass <pass>` -- skip optimization pass (if normally performed) |
| 27 |
* `-enable-pass <pass>` -- perform optimization pass (if normally skipped) |
| 28 |
* `-keep-pass <pass>` -- keep the results of pass |
| 29 |
* `-sxml-passes <passes>` -- sxml optimization passes |