addCases: Add cases to a switch instruction

Description Usage Arguments Author(s) References

Description

This function allows us to populate a switch-like instructionw with the different cases.

Usage

1
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

Author(s)

DTL

References

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


doktorschiwago/Rllvm2 documentation built on May 15, 2019, 9:42 a.m.