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);
LLVM Value Representation
| Name | Description |
|---|---|
| Builder | Common base class shared among various IRBuilders. |
| RK | These are the kinds of recurrences that we support. |
| Left | LLVM Value Representation |
| Right | LLVM Value Representation |