Rllvm (version 0.7-0)

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

sw

the switch instruction

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

References

LLVM Documentation http://llvm.org/docs/