Specific patterns of select instructions we can match.
Declared in <llvm/Analysis/ValueTracking.h>
enum SelectPatternFlavor;
| Name | Description |
|---|---|
SPF_UNKNOWN | |
SPF_SMIN | |
SPF_UMIN | Signed minimum |
SPF_SMAX | Unsigned minimum |
SPF_UMAX | Signed maximum |
SPF_FMINNUM | Unsigned maximum |
SPF_FMAXNUM | Floating point minnum |
SPF_ABS | Floating point maxnum |
SPF_NABS | Absolute value |
| Name | Description |
|---|---|
getInverseMinMaxFlavor | Return the inverse minimum/maximum flavor of the specified flavor. For example, signed minimum is the inverse of signed maximum. |
getMinMaxIntrinsic | Convert given SPF to equivalent min/max intrinsic. Caller must ensure SPF is an integer min or max pattern. |
getMinMaxLimit | Return the minimum or maximum constant value for the specified integer min/max flavor and type. |
getMinMaxPred | Return the canonical comparison predicate for the specified minimum/maximum flavor. |