addCases: Add cases to a switch instruction
Description
This function allows us to populate a switch-like
instructionw with the different cases.
Usage
addCases(sw, ..., .cases = list(...), .values = integer(), .ctx = getGlobalContext())
Arguments
…
code for the individual cases
.cases
the cases given as a collection
.values
the values corresponding to the cases
.ctx
the context for creating the values if necessary