Debian Codegraph @

doc/guide/src/ToSSA2.adoc

raw
1 = ToSSA2
2
3 <<ToSSA2#>> is a translation pass from the <<SSA#>>
4 <<IntermediateLanguage#>> to the <<SSA2#>> <<IntermediateLanguage#>>.
5
6 == Description
7
8 This pass is a simple conversion from a <<SSA#>> program into a
9 <<SSA2#>> program.
10
11 The only interesting portions of the translation are:
12
13 * an <<SSA#>> `ref` type becomes an object with a single mutable field
14 * `array`, `vector`, and `ref` are eliminated in favor of select and updates
15 * `Case` transfers separate discrimination and constructor argument selects
16
17 == Implementation
18
19 * https://github.com/MLton/mlton/blob/master/mlton/ssa/ssa-to-ssa2.sig[`ssa-to-ssa2.sig`]
20 * https://github.com/MLton/mlton/blob/master/mlton/ssa/ssa-to-ssa2.fun[`ssa-to-ssa2.fun`]
21
22 == Details and Notes
23
24 {empty}