Skip to content
Commit 70d452c9 authored by Matt Wala's avatar Matt Wala
Browse files

Simplify the way leap handles conditionals.

This change removes the If(...) instruction, and instead introduces a
`condition` attribute for each instruction. There are no user (method
writer) visible changes; this change purely affects the backend (code
generator and interpreter).

By using a condition attribute rather than conditional edges, we can
simplify reasoning about DAGs and hence the code generation process.
The new code generator is much smaller and clearer than the
previous one, while able to generate structured code of the same
quality (mostly, with some optimizations left to implement).
parent 5c54c65a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment