Matches a G_SELECT with the given condition and operand sub‐patterns.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/MIPatternMatch.h>

template<
    typename Src0Ty,
    typename Src1Ty,
    typename Src2Ty>
TernaryOp_match<Src0Ty, Src1Ty, Src2Ty, TargetOpcode::G_SELECT>
m_GISelect(
    Src0Ty const& Src0,
    Src1Ty const& Src1,
    Src2Ty const& Src2);

Return Value

A matcher for a G_SELECT with the given condition and operand sub‐patterns.

Parameters

Name

Description

Src0

Sub‐pattern for the condition operand.

Src1

Sub‐pattern for the true operand.

Src2

Sub‐pattern for the false operand.

Created with MrDocs