addCases: Add cases to a switch instruction

View source: R/IRBuilder.R

addCasesR Documentation

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

Author(s)

DTL

References

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


duncantl/Rllvm documentation built on Aug. 16, 2024, 2:33 a.m.