This function allows us to populate a switch-like instructionw with the different cases.
addCases(sw, ..., .cases = list(...), .values = integer(), .ctx = getGlobalContext())
the switch instruction
code for the individual cases
the cases given as a collection
the values corresponding to the cases
the context for creating the values if necessary
LLVM Documentation http://llvm.org/docs/