llvm::matchSelectPattern

matchSelectPattern overloads

Synopses

Declared in <llvm/Analysis/ValueTracking.h>

Const overload of matchSelectPattern.

SelectPatternResult
matchSelectPattern(
    Value const* V,
    Value const*& LHS,
    Value const*& RHS);
» more...

Pattern match integer [SU]MIN, [SU]MAX and ABS idioms, returning the kind and providing the out parameter results if we successfully match.

SelectPatternResult
matchSelectPattern(
    Value* V,
    Value*& LHS,
    Value*& RHS,
    Instruction::CastOps* CastOp = nullptr,
    unsigned int Depth = 0);
» more...

Return Value

Matched select pattern result.

Parameters

NameDescription
VSelect (or equivalent) value to match.
LHSOutput left-hand operand of the matched idiom.
RHSOutput right-hand operand of the matched idiom.
CastOpOptional output cast needed to unify operand types.
DepthCurrent recursion depth for this query.