<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc 8.6.10">
<title>XMLSimplify</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 20201002</a>
</div>
</div>
<div id="header">
<h1>XMLSimplify</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p>The optimization passes for the <a href="XML">XML</a> <a href="IntermediateLanguage">IntermediateLanguage</a> are
collected and controlled by the <span class="monospaced">XmlSimplify</span> functor
(<a href="https://github.com/MLton/mlton/blob/master/mlton/xml/xml-simplify.sig"><span class="monospaced">xml-simplify.sig</span></a>,
<a href="https://github.com/MLton/mlton/blob/master/mlton/xml/xml-simplify.fun"><span class="monospaced">xml-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="XMLSimplifyTypes">XMLSimplifyTypes</a>
</p>
</li>
<li>
<p>
<a href="XMLShrink">XMLShrink</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">-disable-pass &lt;pass&gt;</span>&#8201;&#8212;&#8201;skip optimization pass (if normally performed)
</p>
</li>
<li>
<p>
<span class="monospaced">-enable-pass &lt;pass&gt;</span>&#8201;&#8212;&#8201;perform optimization pass (if normally skipped)
</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">-xml-passes &lt;passes&gt;</span>&#8201;&#8212;&#8201;xml 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>
