dcbaker / meson-plus-plus

An experimental and incomplete implementation of Meson in C++, for solving Meson's bootstrapping issue.
Apache License 2.0
45 stars 7 forks source link

Rework if lowering from ast #49

Closed dcbaker closed 2 years ago

dcbaker commented 2 years ago

The current way that if lowering is done is completely broken. For one thing, nested if's don't work. For another the entire value of the SSAish only two possible outputs isn't really true. This work makes the IR slightly more complicated but more consistent. I've also commented some code that I couldn't remember how it worked, and tried to leave more useful comments this time.