llvm::SelectPatternFlavor

Specific patterns of select instructions we can match.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

enum SelectPatternFlavor;

Members

NameDescription
SPF_UNKNOWN Unknown or unmatched select pattern.
SPF_SMIN Signed minimum
SPF_UMIN Unsigned minimum
SPF_SMAX Signed maximum
SPF_UMAX Unsigned maximum
SPF_FMINNUM Floating point minnum
SPF_FMAXNUM Floating point maxnum
SPF_ABS Absolute value
SPF_NABS Negated absolute value

Non-Member Functions

NameDescription
getInverseMinMaxFlavorReturn the inverse minimum/maximum flavor of the specified flavor. For example, signed minimum is the inverse of signed maximum.
getMinMaxIntrinsicConvert given SPF to equivalent min/max intrinsic. Caller must ensure SPF is an integer min or max pattern.
getMinMaxLimitReturn the minimum or maximum constant value for the specified integer min/max flavor and type.
getMinMaxPredReturn the canonical comparison predicate for the specified minimum/maximum flavor.