Method Switch
- Namespace
- Ubiquity.NET.Llvm.Instructions
- Assembly
- Ubiquity.NET.Llvm.dll
Switch(Value, BasicBlock, uint)
Creates a switch instruction
public Switch Switch(Value value, BasicBlock defaultCase, uint numCases)
Parameters
value
ValueValue to switch on
defaultCase
BasicBlockdefault case if
value
does match any casenumCases
uintNumber of cases for the switch
Returns
Remarks
Callers can use AddCase(Value, BasicBlock) to add cases to the instruction.