<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc 8.6.8">
<title>SXMLSimplify</title>
<link rel="stylesheet" href="./asciidoc.css" type="text/css">
<link rel="stylesheet" href="./pygments.css" type="text/css">


<script type="text/javascript" src="./asciidoc.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
asciidoc.install();
/*]]>*/
</script>
<link rel="stylesheet" href="./mlton.css" type="text/css"/>
</head>
<body class="article">
<div id="banner">
<div id="banner-home">
<a href="./Home">MLton 20130715</a>
</div>
</div>
<div id="header">
<h1>SXMLSimplify</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p>The optimization passes for the <a href="SXML">SXML</a> <a href="IntermediateLanguage">IntermediateLanguage</a> are
collected and controlled by the <span class="monospaced">SxmlSimplify</span> functor
(<a href="https://github.com/MLton/mlton/blob/master/mlton/xml/sxml-simplify.sig"><span class="monospaced">sxml-simplify.sig</span></a>,
<a href="https://github.com/MLton/mlton/blob/master/mlton/xml/sxml-simplify.fun"><span class="monospaced">sxml-simplify.fun</span></a>).</p></div>
<div class="paragraph"><p>The following optimization passes are implemented:</p></div>
<div class="ulist"><ul>
<li>
<p>
<a href="Polyvariance">Polyvariance</a>
</p>
</li>
<li>
<p>
<a href="SXMLShrink">SXMLShrink</a>
</p>
</li>
</ul></div>
<div class="paragraph"><p>The following implementation passes are implemented:</p></div>
<div class="ulist"><ul>
<li>
<p>
<a href="ImplementExceptions">ImplementExceptions</a>
</p>
</li>
<li>
<p>
<a href="ImplementSuffix">ImplementSuffix</a>
</p>
</li>
</ul></div>
<div class="paragraph"><p>The following optimization passes are not implemented, but might prove useful:</p></div>
<div class="ulist"><ul>
<li>
<p>
<a href="Uncurry">Uncurry</a>
</p>
</li>
<li>
<p>
<a href="LambdaLift">LambdaLift</a>
</p>
</li>
</ul></div>
<div class="paragraph"><p>The optimization passes can be controlled from the command-line by the options</p></div>
<div class="ulist"><ul>
<li>
<p>
<span class="monospaced">-diag-pass &lt;pass&gt;</span>&#8201;&#8212;&#8201;keep diagnostic info for pass
</p>
</li>
<li>
<p>
<span class="monospaced">-drop-pass &lt;pass&gt;</span>&#8201;&#8212;&#8201;omit optimization pass
</p>
</li>
<li>
<p>
<span class="monospaced">-keep-pass &lt;pass&gt;</span>&#8201;&#8212;&#8201;keep the results of pass
</p>
</li>
<li>
<p>
<span class="monospaced">-sxml-passes &lt;passes&gt;</span>&#8201;&#8212;&#8201;sxml optimization passes
</p>
</li>
</ul></div>
</div>
</div>
</div>
<div id="footnotes"><hr></div>
<div id="footer">
<div id="footer-text">
</div>
<div id="footer-badges">
</div>
</div>
</body>
</html>
