4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
7 <link rel="stylesheet" href="./asciidoc.css" type="text/css">
8 <link rel="stylesheet" href="./pygments.css" type="text/css">
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
19 <body class="article">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
30 <div class="sectionbody">
31 <div class="paragraph"><p><a href="Multi">Multi</a> is an analysis pass for the <a href="SSA">SSA</a>
32 <a href="IntermediateLanguage">IntermediateLanguage</a>, invoked from <a href="ConstantPropagation">ConstantPropagation</a> and
33 <a href="LocalRef">LocalRef</a>.</p></div>
37 <h2 id="_description">Description</h2>
38 <div class="sectionbody">
39 <div class="paragraph"><p>This pass analyzes the control flow of a <a href="SSA">SSA</a> program to determine
40 which <a href="SSA">SSA</a> functions and blocks might be executed more than once or
41 by more than one thread. It also determines when a program uses
42 threads and when functions and blocks directly or indirectly invoke
43 <span class="monospaced">Thread_copyCurrent</span>.</p></div>
47 <h2 id="_implementation">Implementation</h2>
48 <div class="sectionbody">
49 <div class="ulist"><ul>
52 <a href="https://github.com/MLton/mlton/blob/master/mlton/ssa/multi.sig"><span class="monospaced">multi.sig</span></a>
57 <a href="https://github.com/MLton/mlton/blob/master/mlton/ssa/multi.fun"><span class="monospaced">multi.fun</span></a>
64 <h2 id="_details_and_notes">Details and Notes</h2>
65 <div class="sectionbody">
66 <div class="paragraph"><p></p></div>
70 <div id="footnotes"><hr></div>
72 <div id="footer-text">
74 <div id="footer-badges">