Table of Contents

Method Branch

Namespace
Ubiquity.NET.Llvm.Instructions
Assembly
Ubiquity.NET.Llvm.dll

Branch(BasicBlock)

Create an unconditional branch

public Branch Branch(BasicBlock target)

Parameters

target BasicBlock

Target block for the branch

Returns

Branch

Branch

Branch(Value, BasicBlock, BasicBlock)

Creates a conditional branch instruction

public Branch Branch(Value ifCondition, BasicBlock thenTarget, BasicBlock elseTarget)

Parameters

ifCondition Value

Condition for the branch

thenTarget BasicBlock

Target block for the branch when ifCondition evaluates to a non-zero value

elseTarget BasicBlock

Target block for the branch when ifCondition evaluates to a zero value

Returns

Branch

Branch