| 1 |
= Multi |
| 2 |
|
| 3 |
<<Multi#>> is an analysis pass for the <<SSA#>> |
| 4 |
<<IntermediateLanguage#>>, invoked from <<ConstantPropagation#>> and |
| 5 |
<<LocalRef#>>. |
| 6 |
|
| 7 |
== Description |
| 8 |
|
| 9 |
This pass analyzes the control flow of a <<SSA#>> program to determine |
| 10 |
which <<SSA#>> functions and blocks might be executed more than once or |
| 11 |
by more than one thread. It also determines when a program uses |
| 12 |
threads and when functions and blocks directly or indirectly invoke |
| 13 |
`Thread_copyCurrent`. |
| 14 |
|
| 15 |
== Implementation |
| 16 |
|
| 17 |
* https://github.com/MLton/mlton/blob/master/mlton/ssa/multi.sig[`multi.sig`] |
| 18 |
* https://github.com/MLton/mlton/blob/master/mlton/ssa/multi.fun[`multi.fun`] |
| 19 |
|
| 20 |
== Details and Notes |
| 21 |
|
| 22 |
{empty} |