| 1 |
= PackedRepresentation |
| 2 |
|
| 3 |
<<PackedRepresentation#>> is an analysis pass for the <<SSA2#>> |
| 4 |
<<IntermediateLanguage#>>, invoked from <<ToRSSA#>>. |
| 5 |
|
| 6 |
== Description |
| 7 |
|
| 8 |
This pass analyzes a <<SSA2#>> program to compute a packed |
| 9 |
representation for each object. |
| 10 |
|
| 11 |
== Implementation |
| 12 |
|
| 13 |
* https://github.com/MLton/mlton/blob/master/mlton/backend/representation.sig[`representation.sig`] |
| 14 |
* https://github.com/MLton/mlton/blob/master/mlton/backend/packed-representation.fun[`packed-representation.fun`] |
| 15 |
|
| 16 |
== Details and Notes |
| 17 |
|
| 18 |
Has a special case to make sure that `true` is represented as `1` and |
| 19 |
`false` is represented as `0`. |