Table of Contents

Method Select

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

Select(Value, Value, Value)

Builds a SelectInstruction instruction

public Value Select(Value ifCondition, Value thenValue, Value elseValue)

Parameters

ifCondition Value

Value for the condition to select between the values

thenValue Value

Result value if ifCondition evaluates to 1

elseValue Value

Result value if ifCondition evaluates to 0

Returns

Value

Selected value

Remarks

If ifCondition is a vector then both values must be a vector of the same size and the selection is performed element by element. The values must be the same type.