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
BasicBlockTarget block for the branch
Returns
Branch(Value, BasicBlock, BasicBlock)
Creates a conditional branch instruction
public Branch Branch(Value ifCondition, BasicBlock thenTarget, BasicBlock elseTarget)
Parameters
ifCondition
ValueCondition for the branch
thenTarget
BasicBlockTarget block for the branch when
ifCondition
evaluates to a non-zero valueelseTarget
BasicBlockTarget block for the branch when
ifCondition
evaluates to a zero value