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
ifConditionValueValue for the condition to select between the values
thenValueValueResult value if
ifConditionevaluates to 1elseValueValueResult value if
ifConditionevaluates 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.