aitorres/firelink

Code generation for switch

Closed this issue · 0 comments

  • Evaluate the base expression just once, and save it to a temporal
  • Generate the remaining jumps as if it was an if/else instruction, in which every guard is a comparison to the base expression (saved to the previous temporal)