15#ifndef LLVM_TRANSFORM_VECTORIZE_VPLANPATTERNMATCH_H
16#define LLVM_TRANSFORM_VECTORIZE_VPLANPATTERNMATCH_H
22template <
typename Val,
typename Pattern>
bool match(Val *V,
const Pattern &
P) {
43template <
typename Val = VPUser,
typename Pattern>
60 template <
typename ITy>
bool match(ITy *V)
const {
102template <
typename Pred,
unsigned BitW
idth = 0>
struct int_pred_ty {
111 VPV = VPI->getOperand(0);
115 assert(!IRV->getType()->isVectorTy() &&
"Unexpected vector live-in");
122 return P.isValue(CI->getValue());
137template <
unsigned Bitw
idth = 0>
189 assert(!IRV->getType()->isVectorTy() &&
"Unexpected vector live-in");
193 Res = &CI->getValue();
206 const APInt *APConst;
228 template <
typename ITy>
bool match(ITy *V)
const {
229 return L.match(V) ||
R.match(V);
239 template <
typename ITy>
bool match(ITy *V)
const {
240 return L.match(V) &&
R.match(V);
245template <
typename LTy,
typename RTy>
251template <
typename LTy,
typename RTy>
262template <
typename Ops_t,
unsigned Opcode,
bool Commutative,
263 typename... RecipeTys>
268 static_assert(std::tuple_size<Ops_t>::value ==
sizeof...(Ops) &&
269 "number of operands in constructor doesn't match Ops_t");
270 static_assert((!Commutative || std::tuple_size<Ops_t>::value == 2) &&
271 "only binary ops can be commutative");
275 auto *DefR = V->getDefiningRecipe();
276 return DefR &&
match(DefR);
284 if (std::tuple_size_v<Ops_t> == 0) {
286 return VPI && VPI->getOpcode() == Opcode;
289 if ((!matchRecipeAndOpcode<RecipeTys>(R) && ...))
292 if (R->getNumOperands() != std::tuple_size_v<Ops_t>) {
296 (RepR && std::tuple_size_v<Ops_t> ==
297 RepR->getNumOperands() - RepR->isPredicated())) &&
298 "non-variadic recipe with matched opcode does not have the "
299 "expected number of operands");
303 auto IdxSeq = std::make_index_sequence<std::tuple_size<Ops_t>::value>();
304 if (all_of_tuple_elements(IdxSeq, [R](
auto Op,
unsigned Idx) {
305 return Op.match(R->getOperand(Idx));
309 return Commutative &&
310 all_of_tuple_elements(IdxSeq, [R](
auto Op,
unsigned Idx) {
311 return Op.match(R->getOperand(R->getNumOperands() - Idx - 1));
316 template <
typename RecipeTy>
317 static bool matchRecipeAndOpcode(
const VPRecipeBase *R) {
320 if constexpr (std::is_same_v<RecipeTy, VPScalarIVStepsRecipe> ||
321 std::is_same_v<RecipeTy, VPCanonicalIVPHIRecipe> ||
322 std::is_same_v<RecipeTy, VPDerivedIVRecipe> ||
323 std::is_same_v<RecipeTy, VPVectorEndPointerRecipe>)
326 return DefR && DefR->getOpcode() == Opcode;
331 template <
typename Fn, std::size_t... Is>
332 bool all_of_tuple_elements(std::index_sequence<Is...>, Fn
P)
const {
333 return (
P(std::get<Is>(
Ops), Is) && ...);
337template <
unsigned Opcode,
typename... OpTys>
343template <
unsigned Opcode,
typename... OpTys>
348template <
unsigned Opcode,
typename... OpTys>
352template <
unsigned Opcode,
typename... OpTys>
364template <
typename Op0_t>
374template <
typename Op0_t>
385template <
typename Op0_t,
typename Op1_t>
391template <
typename Op0_t>
397template <
typename Op0_t>
403template <
typename Op0_t>
409template <
typename Op0_t,
typename Op1_t>
415template <
typename Op0_t,
typename Op1_t>
421template <
typename Op0_t>
427template <
typename Op0_t>
435template <
typename Op0_t>
441template <
typename Op0_t,
typename Op1_t,
typename Op2_t>
451template <
typename Op0_t,
typename Op1_t>
461template <
typename Op0_t>
467template <
typename Op0_t>
473template <
typename Op0_t>
479template <
typename Op0_t>
489template <
unsigned Opcode,
typename Op0_t>
494template <
typename Op0_t>
499template <
typename Op0_t>
505template <
typename Op0_t>
510template <
typename Op0_t>
515template <
typename Op0_t>
522template <
typename Op0_t>
528template <
unsigned Opcode,
typename Op0_t,
typename Op1_t>
534template <
unsigned Opcode,
typename Op0_t,
typename Op1_t>
540template <
typename Op0_t,
typename Op1_t>
546template <
typename Op0_t,
typename Op1_t>
552template <
typename Op0_t,
typename Op1_t>
558template <
typename Op0_t,
typename Op1_t>
564template <
typename Op0_t,
typename Op1_t>
570template <
typename Op0_t,
typename Op1_t>
577template <
typename Op0_t,
typename Op1_t>
587template <
typename Op0_t,
typename Op1_t>
593template <
typename Op0_t,
typename Op1_t>
602template <
typename Op0_t,
typename Op1_t,
unsigned... Opcodes>
604 static_assert((
sizeof...(Opcodes) == 1 ||
sizeof...(Opcodes) == 2) &&
605 "Expected one or two opcodes");
607 ((Opcodes == Instruction::ICmp || Opcodes == Instruction::FCmp) && ...) &&
608 "Expected a compare instruction opcode");
619 auto *DefR = V->getDefiningRecipe();
620 return DefR &&
match(DefR);
635template <
typename Op0_t,
typename Op1_t,
unsigned... Opcodes>
652template <
typename Op0_t,
typename Op1_t>
658template <
typename Op0_t,
typename Op1_t>
659inline Cmp_match<Op0_t, Op1_t, Instruction::ICmp>
664template <
typename Op0_t,
typename Op1_t>
665inline SpecificCmp_match<Op0_t, Op1_t, Instruction::ICmp>
671template <
typename Op0_t,
typename Op1_t>
672inline Cmp_match<Op0_t, Op1_t, Instruction::ICmp, Instruction::FCmp>
678template <
typename Op0_t,
typename Op1_t>
679inline Cmp_match<Op0_t, Op1_t, Instruction::ICmp, Instruction::FCmp>
685template <
typename Op0_t,
typename Op1_t>
686inline SpecificCmp_match<Op0_t, Op1_t, Instruction::ICmp, Instruction::FCmp>
689 MatchPred, Op0, Op1);
692template <
typename Op0_t,
typename Op1_t>
700template <
typename Op0_t,
typename Op1_t>
704 Recipe_match<std::tuple<Op0_t, Op1_t>, Instruction::GetElementPtr,
713template <
typename Op0_t,
typename Op1_t,
typename Op2_t>
720template <
typename Op0_t>
723 Instruction::Xor, int_pred_ty<is_all_ones>, Op0_t>>
729template <
typename Op0_t,
typename Op1_t>
739template <
typename Op0_t,
typename Op1_t>
745template <
typename Op0_t,
typename Op1_t,
typename Op2_t>
749template <
typename Op0_t,
typename Op1_t,
typename Op2_t>
755template <
typename Op0_t,
typename Op1_t,
typename Op2_t>
759template <
typename Op0_t,
typename Op1_t,
typename Op2_t>
765template <
typename Addr_t,
typename Mask_t>
struct Load_match {
771 template <
typename OpTy>
bool match(
const OpTy *V)
const {
773 if (!Load || !
Addr.match(Load->getAddr()) || !Load->isMasked() ||
774 !
Mask.match(Load->getMask()))
781template <
typename Addr_t,
typename Mask_t>
783 const Mask_t &Mask) {
787template <
typename Addr_t,
typename Val_t,
typename Mask_t>
struct Store_match {
795 template <
typename OpTy>
bool match(
const OpTy *V)
const {
797 if (!Store || !
Addr.match(Store->getAddr()) ||
798 !
Val.match(Store->getStoredValue()) || !Store->isMasked() ||
799 !
Mask.match(Store->getMask()))
806template <
typename Addr_t,
typename Val_t,
typename Mask_t>
807inline Store_match<Addr_t, Val_t, Mask_t>
812template <
typename Op0_t,
typename Op1_t>
817template <
typename Op0_t,
typename Op1_t>
831 template <
typename OpTy>
bool match(OpTy *V)
const {
833 return Val.match(R->getOperand(
OpI));
835 return Val.match(R->getOperand(
OpI));
837 if (R->getOpcode() == Instruction::Call)
838 return Val.match(R->getOperand(
OpI));
840 if (R->getOpcode() == Instruction::Call)
841 return Val.match(R->getOperand(
OpI));
847template <
unsigned OpI,
typename Opnd_t>
858 template <
typename OpTy>
bool match(OpTy *V)
const {
860 return R->getVectorIntrinsicID() ==
ID;
862 return R->getCalledScalarFunction()->getIntrinsicID() ==
ID;
864 auto MatchCalleeIntrinsic = [&](
VPValue *CalleeOp) {
868 return F->getIntrinsicID() ==
ID;
871 if (R->getOpcode() == Instruction::Call) {
873 return MatchCalleeIntrinsic(
874 R->getOperand(R->getNumOperands() - 1 - R->isPredicated()));
877 if (R->getOpcode() == Instruction::Call)
878 return MatchCalleeIntrinsic(R->getOperand(R->getNumOperands() - 1));
887template <
typename T0 = void,
typename T1 = void,
typename T2 = void,
897template <
typename T0,
typename T1,
typename T2>
902template <
typename T0,
typename T1,
typename T2,
typename T3>
919template <Intrinsic::ID IntrID,
typename T0>
924template <Intrinsic::ID IntrID,
typename T0,
typename T1>
930template <Intrinsic::ID IntrID,
typename T0,
typename T1,
typename T2>
944 template <
typename ITy>
bool match(ITy *V)
const {
956 template <
typename OpTy>
bool match(OpTy *V) {
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
const AbstractManglingParser< Derived, Alloc >::OperatorInfo AbstractManglingParser< Derived, Alloc >::Ops[]
MachineInstr unsigned OpIdx
This file contains the declarations of the Vectorization Plan base classes:
Class for arbitrary precision integers.
std::optional< uint64_t > tryZExtValue() const
Get zero extended value if possible.
static bool isSameValue(const APInt &I1, const APInt &I2)
Determine if two APInts have the same value, after zero-extending one of them (if needed!...
An abstraction over a floating-point predicate, and a pack of an integer predicate with samesign info...
static LLVM_ABI std::optional< CmpPredicate > getMatching(CmpPredicate A, CmpPredicate B)
Compares two CmpPredicates taking samesign into account and returns the canonicalized CmpPredicate if...
A recipe for converting the input value IV value to the corresponding value of an IV with different s...
This is a concrete Recipe that models a single VPlan-level instruction.
static unsigned getNumOperandsForOpcode(unsigned Opcode)
Return the number of operands determined by the opcode of the VPInstruction.
VPRecipeBase is a base class modeling a sequence of one or more output IR instructions.
VPReplicateRecipe replicates a given instruction producing multiple scalar copies of the original sca...
A recipe for handling phi nodes of integer and floating-point inductions, producing their scalar valu...
VPSingleDef is a base class for recipes for modeling a sequence of one or more output IR that define ...
This class augments VPValue with operands which provide the inverse def-use edges from VPValue's user...
This is the base class of the VPlan Def/Use graph, used for modeling the data flow into,...
A recipe to compute a pointer to the last element of each part of a widened memory access for widened...
VPWidenCastRecipe is a recipe to create vector cast instructions.
A recipe for handling GEP instructions.
VPWidenRecipe is a recipe for producing a widened instruction using the opcode and operands of the re...
@ C
The default llvm calling convention, compatible with C.
class_match< ConstantInt > m_ConstantInt()
Match an arbitrary ConstantInt and ignore it.
auto m_LogicalOr()
Matches L || R where L and R are arbitrary values.
class_match< CmpInst > m_Cmp()
Matches any compare instruction and ignore it.
auto m_LogicalAnd()
Matches L && R where L and R are arbitrary values.
VPInstruction_match< VPInstruction::ExtractLastLane, VPInstruction_match< VPInstruction::ExtractLastPart, Op0_t > > m_ExtractLastLaneOfLastPart(const Op0_t &Op0)
AllRecipe_match< Instruction::Select, Op0_t, Op1_t, Op2_t > m_Select(const Op0_t &Op0, const Op1_t &Op1, const Op2_t &Op2)
VPInstruction_match< Instruction::Freeze, Op0_t > m_Freeze(const Op0_t &Op0)
AllRecipe_commutative_match< Instruction::And, Op0_t, Op1_t > m_c_BinaryAnd(const Op0_t &Op0, const Op1_t &Op1)
Match a binary AND operation.
AllRecipe_match< Instruction::ZExt, Op0_t > m_ZExt(const Op0_t &Op0)
AllRecipe_match< Instruction::Or, Op0_t, Op1_t > m_BinaryOr(const Op0_t &Op0, const Op1_t &Op1)
Match a binary OR operation.
int_pred_ty< is_specific_int, Bitwidth > specific_intval
Store_match< Addr_t, Val_t, Mask_t > m_MaskedStore(const Addr_t &Addr, const Val_t &Val, const Mask_t &Mask)
Match a (possibly reversed) masked store.
int_pred_ty< is_zero_int > m_ZeroInt()
Match an integer 0 or a vector with all elements equal to 0.
SpecificCmp_match< Op0_t, Op1_t, Instruction::ICmp, Instruction::FCmp > m_SpecificCmp(CmpPredicate MatchPred, const Op0_t &Op0, const Op1_t &Op1)
match_combine_or< VPInstruction_match< VPInstruction::Not, Op0_t >, AllRecipe_commutative_match< Instruction::Xor, int_pred_ty< is_all_ones >, Op0_t > > m_Not(const Op0_t &Op0)
VPInstruction_match< VPInstruction::AnyOf > m_AnyOf()
int_pred_ty< is_all_ones > m_AllOnes()
Match an integer or vector with all bits set.
AllRecipe_commutative_match< Opcode, Op0_t, Op1_t > m_c_Binary(const Op0_t &Op0, const Op1_t &Op1)
AllRecipe_commutative_match< Instruction::Add, Op0_t, Op1_t > m_c_Add(const Op0_t &Op0, const Op1_t &Op1)
AllRecipe_commutative_match< Instruction::Or, Op0_t, Op1_t > m_c_BinaryOr(const Op0_t &Op0, const Op1_t &Op1)
VPInstruction_match< VPInstruction::StepVector > m_StepVector()
match_combine_or< AllRecipe_match< Instruction::ZExt, Op0_t >, AllRecipe_match< Instruction::SExt, Op0_t > > m_ZExtOrSExt(const Op0_t &Op0)
match_combine_and< LTy, RTy > m_CombineAnd(const LTy &L, const RTy &R)
Combine two pattern matchers matching L && R.
SpecificCmp_match< Op0_t, Op1_t, Instruction::ICmp > m_SpecificICmp(CmpPredicate MatchPred, const Op0_t &Op0, const Op1_t &Op1)
VPScalarIVSteps_match< Op0_t, Op1_t, Op2_t > m_ScalarIVSteps(const Op0_t &Op0, const Op1_t &Op1, const Op2_t &Op2)
match_combine_or< LTy, RTy > m_CombineOr(const LTy &L, const RTy &R)
Combine two pattern matchers matching L || R.
AllRecipe_match< Instruction::Add, Op0_t, Op1_t > m_Add(const Op0_t &Op0, const Op1_t &Op1)
GEPLikeRecipe_match< Op0_t, Op1_t > m_GetElementPtr(const Op0_t &Op0, const Op1_t &Op1)
Recipe_match< std::tuple< OpTys... >, Opcode, false, VPInstruction > VPInstruction_match
VPInstruction_match< VPInstruction::BranchOnTwoConds > m_BranchOnTwoConds()
AllRecipe_match< Opcode, Op0_t, Op1_t > m_Binary(const Op0_t &Op0, const Op1_t &Op1)
VPInstruction_match< VPInstruction::LastActiveLane, Op0_t > m_LastActiveLane(const Op0_t &Op0)
AllRecipe_match< Opcode, Op0_t > m_Unary(const Op0_t &Op0)
Load_match< Addr_t, Mask_t > m_MaskedLoad(const Addr_t &Addr, const Mask_t &Mask)
Match a (possibly reversed) masked load.
match_combine_or< AllRecipe_match< Instruction::Trunc, Op0_t >, Op0_t > m_TruncOrSelf(const Op0_t &Op0)
AllRecipe_commutative_match< Instruction::Mul, Op0_t, Op1_t > m_c_Mul(const Op0_t &Op0, const Op1_t &Op1)
Cmp_match< Op0_t, Op1_t, Instruction::ICmp > m_ICmp(const Op0_t &Op0, const Op1_t &Op1)
AllRecipe_match< Instruction::Mul, Op0_t, Op1_t > m_Mul(const Op0_t &Op0, const Op1_t &Op1)
specificval_ty m_Specific(const VPValue *VPV)
match_combine_or< Recipe_match< std::tuple< Op0_t, Op1_t >, Instruction::GetElementPtr, false, VPReplicateRecipe, VPWidenGEPRecipe >, match_combine_or< VPInstruction_match< VPInstruction::PtrAdd, Op0_t, Op1_t >, VPInstruction_match< VPInstruction::WidePtrAdd, Op0_t, Op1_t > > > GEPLikeRecipe_match
VPInstruction_match< Instruction::ExtractElement, Op0_t, Op1_t > m_ExtractElement(const Op0_t &Op0, const Op1_t &Op1)
specific_intval< 1 > m_False()
VPDerivedIV_match< Op0_t, Op1_t, Op2_t > m_DerivedIV(const Op0_t &Op0, const Op1_t &Op1, const Op2_t &Op2)
VPMatchFunctor< Val, Pattern > match_fn(const Pattern &P)
A match functor that can be used as a UnaryPredicate in functional algorithms like all_of.
VPInstruction_match< VPInstruction::ExtractLastLane, Op0_t > m_ExtractLastLane(const Op0_t &Op0)
specific_intval< 0 > m_SpecificInt(uint64_t V)
VPInstruction_match< VPInstruction::ActiveLaneMask, Op0_t, Op1_t, Op2_t > m_ActiveLaneMask(const Op0_t &Op0, const Op1_t &Op1, const Op2_t &Op2)
live_in_vpvalue m_LiveIn()
VPInstruction_match< VPInstruction::BranchOnCount > m_BranchOnCount()
Recipe_match< std::tuple< Op0_t, Op1_t, Op2_t >, 0, false, VPDerivedIVRecipe > VPDerivedIV_match
AllRecipe_match< Instruction::Sub, Op0_t, Op1_t > m_Sub(const Op0_t &Op0, const Op1_t &Op1)
AllRecipe_match< Instruction::SExt, Op0_t > m_SExt(const Op0_t &Op0)
specific_intval< 1 > m_True()
IntrinsicID_match m_Intrinsic()
Match intrinsic calls like this: m_Intrinsic<Intrinsic::fabs>(m_VPValue(X), ...)
Recipe_match< std::tuple< OpTys... >, Opcode, true, VPWidenRecipe, VPReplicateRecipe, VPInstruction > AllRecipe_commutative_match
deferredval_ty m_Deferred(VPValue *const &V)
Like m_Specific(), but works if the specific value to match is determined as part of the same match()...
VectorEndPointerRecipe_match< Op0_t, Op1_t > m_VecEndPtr(const Op0_t &Op0, const Op1_t &Op1)
VPInstruction_match< VPInstruction::ExtractLastPart, Op0_t > m_ExtractLastPart(const Op0_t &Op0)
VPInstruction_match< VPInstruction::Broadcast, Op0_t > m_Broadcast(const Op0_t &Op0)
bool match(Val *V, const Pattern &P)
class_match< VPValue > m_VPValue()
Match an arbitrary VPValue and ignore it.
OneUse_match< T > m_OneUse(const T &SubPattern)
VPInstruction_match< VPInstruction::ExplicitVectorLength, Op0_t > m_EVL(const Op0_t &Op0)
VPInstruction_match< VPInstruction::BuildVector > m_BuildVector()
BuildVector is matches only its opcode, w/o matching its operands as the number of operands is not fi...
AllRecipe_match< Instruction::Trunc, Op0_t > m_Trunc(const Op0_t &Op0)
VPInstruction_match< VPInstruction::ExtractPenultimateElement, Op0_t > m_ExtractPenultimateElement(const Op0_t &Op0)
Recipe_match< std::tuple< Op0_t, Op1_t >, 0, false, VPVectorEndPointerRecipe > VectorEndPointerRecipe_match
match_combine_or< AllRecipe_match< Instruction::ZExt, Op0_t >, Op0_t > m_ZExtOrSelf(const Op0_t &Op0)
VPInstruction_match< VPInstruction::FirstActiveLane, Op0_t > m_FirstActiveLane(const Op0_t &Op0)
Argument_match< Opnd_t > m_Argument(const Opnd_t &Op)
Match a call argument.
bind_ty< VPInstruction > m_VPInstruction(VPInstruction *&V)
Match a VPInstruction, capturing if we match.
AllRecipe_match< Instruction::UDiv, Op0_t, Op1_t > m_UDiv(const Op0_t &Op0, const Op1_t &Op1)
Recipe_match< std::tuple< Op0_t, Op1_t, Op2_t >, 0, false, VPScalarIVStepsRecipe > VPScalarIVSteps_match
int_pred_ty< is_one > m_One()
Match an integer 1 or a vector with all elements equal to 1.
Recipe_match< std::tuple< OpTys... >, Opcode, false, VPWidenRecipe, VPReplicateRecipe, VPWidenCastRecipe, VPInstruction > AllRecipe_match
VPInstruction_match< VPInstruction::BranchOnCond > m_BranchOnCond()
VPInstruction_match< VPInstruction::ExtractLane, Op0_t, Op1_t > m_ExtractLane(const Op0_t &Op0, const Op1_t &Op1)
bind_apint m_APInt(const APInt *&C)
VPInstruction_match< VPInstruction::Reverse, Op0_t > m_Reverse(const Op0_t &Op0)
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
bool isa(const From &Val)
isa<X> - Return true if the parameter to the template is an instance of one of the template type argu...
DWARFExpression::Operation Op
constexpr unsigned BitWidth
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
decltype(auto) cast(const From &Val)
cast<X> - Return the argument parameter cast to the specified type.
Implement std::hash so that hash_code can be used in STL containers.
Intrinsic matches are combinations of ID matchers, and argument matchers.
Match a call argument at a given argument index.
unsigned OpI
Call argument index to match.
Argument_match(unsigned OpIdx, const Opnd_t &V)
bool match(OpTy *V) const
Cmp_match is a variant of BinaryRecipe_match that also binds the comparison predicate.
Cmp_match(CmpPredicate &Pred, const Op0_t &Op0, const Op1_t &Op1)
Cmp_match(const Op0_t &Op0, const Op1_t &Op1)
bool match(const VPValue *V) const
bool match(const VPRecipeBase *V) const
IntrinsicID_match(Intrinsic::ID IntrID)
bool match(OpTy *V) const
Load_match(Addr_t Addr, Mask_t Mask)
bool match(const OpTy *V) const
OneUse_match(const SubPattern_t &SP)
bool match(const VPSingleDefRecipe *R) const
Recipe_match(OpTy... Ops)
std::tuple< OpTys... > Ops
bool match(const VPValue *V) const
bool match(const VPRecipeBase *R) const
SpecificCmp_match is a variant of Cmp_match that matches the comparison predicate,...
SpecificCmp_match(CmpPredicate Pred, const Op0_t &LHS, const Op1_t &RHS)
const CmpPredicate Predicate
bool match(const VPValue *V) const
Store_match(Addr_t Addr, Val_t Val, Mask_t Mask)
bool match(const OpTy *V) const
VPMatchFunctor(const Pattern &P)
bool operator()(Val *V) const
bool match(VPValue *VPV) const
bind_apint(const APInt *&Res)
bool match(VPValue *VPV) const
bind_const_int(uint64_t &Res)
Stores a reference to the VPValue *, not the VPValue * itself, thus can be used in commutative matche...
deferredval_ty(VPValue *const &V)
bool match(VPValue *const V) const
Match an integer constant or vector of constants if Pred::isValue returns true for the APInt.
bool match(VPValue *VPV) const
bool isValue(const APInt &C) const
bool isValue(const APInt &C) const
Match a specified integer value or vector of all elements of that value.
bool isValue(const APInt &C) const
is_specific_int(APInt Val)
bool isValue(const APInt &C) const
match_combine_and< typename m_Intrinsic_Ty< T0, T1 >::Ty, Argument_match< T2 > > Ty
match_combine_and< typename m_Intrinsic_Ty< T0 >::Ty, Argument_match< T1 > > Ty
match_combine_and< IntrinsicID_match, Argument_match< T0 > > Ty
Intrinsic matches are combinations of ID matchers, and argument matchers.
match_combine_and< typename m_Intrinsic_Ty< T0, T1, T2 >::Ty, Argument_match< T3 > > Ty
match_combine_and(const LTy &Left, const RTy &Right)
llvm::VPlanPatternMatch::match_combine_or< Recipe_match< std::tuple< Op0_t, Op1_t >, Instruction::GetElementPtr, false, VPReplicateRecipe, VPWidenGEPRecipe >, match_combine_or< VPInstruction_match< VPInstruction::PtrAdd, Op0_t, Op1_t >, VPInstruction_match< VPInstruction::WidePtrAdd, Op0_t, Op1_t > > >::L Recipe_match< std::tuple< Op0_t, Op1_t >, Instruction::GetElementPtr, false, VPReplicateRecipe, VPWidenGEPRecipe > L
llvm::VPlanPatternMatch::match_combine_or< Recipe_match< std::tuple< Op0_t, Op1_t >, Instruction::GetElementPtr, false, VPReplicateRecipe, VPWidenGEPRecipe >, match_combine_or< VPInstruction_match< VPInstruction::PtrAdd, Op0_t, Op1_t >, VPInstruction_match< VPInstruction::WidePtrAdd, Op0_t, Op1_t > > >::R match_combine_or< VPInstruction_match< VPInstruction::PtrAdd, Op0_t, Op1_t >, VPInstruction_match< VPInstruction::WidePtrAdd, Op0_t, Op1_t > > R
match_combine_or(const LTy &Left, const RTy &Right)
Match a specified VPValue.
specificval_ty(const VPValue *V)
bool match(VPValue *VPV) const