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
ValueValue for the condition to select between the values
thenValue
ValueResult value if
ifCondition
evaluates to 1elseValue
ValueResult 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.