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
valueValueValue to switch on
defaultCaseBasicBlockdefault case if
valuedoes match any casenumCasesuintNumber of cases for the switch
Returns
Remarks
Callers can use AddCase(Value, BasicBlock) to add cases to the instruction.