llvm::SelectPatternFlavor

Specific patterns of select instructions we can match.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

enum SelectPatternFlavor;

Members

NameDescription
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

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.