| 1 |
= XMLSimplify |
| 2 |
|
| 3 |
The optimization passes for the <<XML#>> <<IntermediateLanguage#>> are |
| 4 |
collected and controlled by the `XmlSimplify` functor |
| 5 |
(https://github.com/MLton/mlton/blob/master/mlton/xml/xml-simplify.sig[`xml-simplify.sig`], |
| 6 |
https://github.com/MLton/mlton/blob/master/mlton/xml/xml-simplify.fun[`xml-simplify.fun`]). |
| 7 |
|
| 8 |
The following optimization passes are implemented: |
| 9 |
|
| 10 |
* <<XMLSimplifyTypes#>> |
| 11 |
* <<XMLShrink#>> |
| 12 |
|
| 13 |
The optimization passes can be controlled from the command-line by the options |
| 14 |
|
| 15 |
* `-diag-pass <pass>` -- keep diagnostic info for pass |
| 16 |
* `-disable-pass <pass>` -- skip optimization pass (if normally performed) |
| 17 |
* `-enable-pass <pass>` -- perform optimization pass (if normally skipped) |
| 18 |
* `-keep-pass <pass>` -- keep the results of pass |
| 19 |
* `-xml-passes <passes>` -- xml optimization passes |