Method Switch
Switch(Value, BasicBlock, UInt32)
Creates a switch instruction
Declaration
public Switch Switch(Value value, BasicBlock defaultCase, uint numCases)
Parameters
public Switch Switch(Value value, BasicBlock defaultCase, uint numCases)
Value | value | Value to switch on |
BasicBlock | defaultCase | default case if |
UInt32 | numCases | Number of cases for the switch |
Returns
Switch | Switch |
Remarks
Callers can use AddCase(Value, BasicBlock) to add cases to the instruction.