Table of Contents

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 Value

Value to switch on

defaultCase BasicBlock

default case if value does match any case

numCases uint

Number of cases for the switch

Returns

Switch

Switch

Remarks

Callers can use AddCase(Value, BasicBlock) to add cases to the instruction.