Returns a Min/Max operation corresponding to MinMaxRecurrenceKind. The Builder's fast-math-flags must be set to propagate the expected values.
Declared in <llvm/Transforms/Utils/LoopUtils.h>
Value*
createMinMaxOp(
IRBuilderBase& Builder,
RecurKind RK,
Value* Left,
Value* Right);
The created min/max operation.
| Name | Description |
|---|---|
| Builder | IR builder used to create the min/max operation. |
| RK | Recurrence kind selecting the min/max variant. |
| Left | Left-hand operand. |
| Right | Right-hand operand. |