| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonGenExtract.cpp | 96 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 97 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 98 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 103 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 104 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 105 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 111 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 112 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 120 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 121 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | StraightLineStrengthReduce.cpp | 414 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 417 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 432 return match(A, m_c_Add(m_Value(B), m_ConstantInt(C))); in matchesAdd() 437 return match(A, m_c_Or(m_Value(B), m_ConstantInt(C))); in matchesOr() 512 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex() 516 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
|
| H A D | LowerMatrixIntrinsics.cpp | 884 m_Value(TA), m_ConstantInt(R), m_ConstantInt(C)))) in sinkTranspose() 909 m_Value(TAMA), m_Value(TAMB), m_ConstantInt(R), in sinkTranspose() 910 m_ConstantInt(K), m_ConstantInt(C)))) { in sinkTranspose() 991 m_Value(A), m_Value(B), m_ConstantInt(R), in liftTranspose() 992 m_ConstantInt(K), m_ConstantInt(C))) && in liftTranspose() 1011 m_Value(AT), m_ConstantInt(R), m_ConstantInt(C))) && in liftTranspose() 1013 m_Value(BT), m_ConstantInt(), m_ConstantInt()))) { in liftTranspose()
|
| H A D | GuardWidening.cpp | 735 m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in mergeChecks() 737 m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in mergeChecks() 845 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks() 851 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
|
| H A D | ConstraintElimination.cpp | 557 if (match(V, m_NSWMul(m_Value(Op0), m_ConstantInt(CI))) && canUseSExt(CI)) { in decompose() 566 if (match(V, m_NSWShl(m_Value(Op0), m_ConstantInt(CI)))) { in decompose() 626 if (match(V, m_Add(m_Value(Op0), m_ConstantInt(CI))) && CI->isNegative() && in decompose() 637 if (match(V, m_DisjointOr(m_Value(Op0), m_ConstantInt(CI)))) { in decompose() 643 if (match(V, m_NUWShl(m_Value(Op1), m_ConstantInt(CI))) && canUseSExt(CI)) { in decompose() 652 if (match(V, m_NUWMul(m_Value(Op1), m_ConstantInt(CI))) && canUseSExt(CI) && in decompose()
|
| H A D | InductiveRangeCheckElimination.cpp | 322 if (match(RHS, m_ConstantInt<0>())) { in parseIvAgaisntLimit() 330 if (match(RHS, m_ConstantInt<-1>())) { in parseIvAgaisntLimit()
|
| H A D | LoopDeletion.cpp | 163 m_Br(m_ConstantInt(Cond), Taken, NotTaken))) in isLoopNeverExecuted()
|
| H A D | DeadStoreElimination.cpp | 1365 if (match(I, m_Intrinsic<Intrinsic::lifetime_end>(m_ConstantInt(Len), in getLocForTerminator()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 75 if (match(V, m_InsertElt(m_Value(), m_Value(), m_ConstantInt()))) in cheapToScalarize() 187 !match(Ext.getIndexOperand(), m_ConstantInt(ExtIndexC))) in foldBitcastExtElt() 244 m_ConstantInt(InsIndexC)))) in foldBitcastExtElt() 1378 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoSplat() 1416 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoIdentityShuffle() 1472 match(InsElt1->getOperand(2), m_ConstantInt(IdxC1)) && in hoistInsEltConst() 1474 match(InsElt2.getOperand(2), m_ConstantInt(IdxC2)) && IdxC1 != IdxC2) { in hoistInsEltConst() 1497 !match(InsElt.getOperand(2), m_ConstantInt(InsEltIndex))) in foldConstantInsEltIntoShuffle() 1551 if (!match(InsElt.getOperand(2), m_ConstantInt(InsertIdx[0])) || in foldConstantInsEltIntoShuffle() 1553 !match(IEI->getOperand(2), m_ConstantInt(InsertIdx[1])) || in foldConstantInsEltIntoShuffle() [all …]
|
| H A D | InstCombineSimplifyDemanded.cpp | 360 match(I->getOperand(1), m_ConstantInt(XorRHS)) && in SimplifyDemandedUseBits() 361 match(LHSInst->getOperand(1), m_ConstantInt(AndRHS)) && in SimplifyDemandedUseBits() 995 m_PtrAdd(m_Value(InnerPtr), m_ConstantInt(GEPIndex)), in SimplifyDemandedUseBits() 996 m_ConstantInt(PtrMaskImmediate)))) { in SimplifyDemandedUseBits()
|
| H A D | InstCombineCasts.cpp | 422 m_ConstantInt(ShiftVal)))) || in foldVecTruncToExtElt() 478 if (!match(Src, m_OneUse(m_ExtractElt(m_Value(VecOp), m_ConstantInt(Cst)))) && in foldVecExtTruncToExtElt() 480 m_OneUse(m_LShr(m_ExtractElt(m_Value(VecOp), m_ConstantInt(Cst)), in foldVecExtTruncToExtElt() 2814 m_Value(Y), m_ConstantInt(IndexC)))) && in visitBitCast()
|
| H A D | InstCombineAndOrXor.cpp | 1585 m_Value(ClassVal0), m_ConstantInt(ClassMask0)))); in foldLogicOfIsFPClass() 1588 m_Value(ClassVal1), m_ConstantInt(ClassMask1)))); in foldLogicOfIsFPClass() 4059 if (Op0->hasOneUse() && !match(Op1, m_ConstantInt()) && in visitOr() 4060 match(Op0, m_Or(m_Value(A), m_ConstantInt(CI)))) { in visitOr() 5083 if (match(Op1, m_ConstantInt(C3)) && in visitXor() 5084 match(Op0, m_LShr(m_Xor(m_Value(X), m_ConstantInt(C1)), in visitXor() 5085 m_ConstantInt(C2))) && in visitXor()
|
| H A D | InstructionCombining.cpp | 2955 m_OneUse(m_CombineOr(m_Mul(m_Value(), m_ConstantInt()), in shouldCanonicalizeGEPToPtrAdd() 2956 m_Shl(m_Value(), m_ConstantInt()))))) in shouldCanonicalizeGEPToPtrAdd() 3349 m_Value(Idx1), m_ConstantInt(C))))))) { in visitGetElementPtrInst() 4138 if (match(Cond, m_Add(m_Value(Op0), m_ConstantInt(AddRHS)))) { in visitSwitchInst() 4150 if (match(Cond, m_Sub(m_ConstantInt(SubLHS), m_Value(Op0)))) { in visitSwitchInst() 4162 if (match(Cond, m_Shl(m_Value(Op0), m_ConstantInt(ShiftAmt))) && in visitSwitchInst()
|
| H A D | InstCombineCompares.cpp | 1336 if (Pred == ICmpInst::ICMP_UGT && match(Op1, m_ConstantInt(CI)) && in foldICmpWithConstant() 1337 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant() 3326 if (!match(EqualVal, m_ConstantInt(Equal))) in matchThreeWayIntCompare() 3331 m_ConstantInt(Less), m_ConstantInt(Greater)))) in matchThreeWayIntCompare() 5988 if (match(B, m_ConstantInt(C1)) && match(D, m_ConstantInt(C2)) && in foldICmpEquality() 6104 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality() 6121 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), m_ConstantInt(ShAmt))))) && in foldICmpEquality() 6122 match(Op1, m_ConstantInt(Cst1)) && in foldICmpEquality()
|
| H A D | InstCombineCalls.cpp | 3394 m_And(m_Value(A), m_ConstantInt(AlignMask)), in visitCallInst() 3398 match(A, m_Add(m_Value(A), m_ConstantInt(Offset))); in visitCallInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VectorCombine.cpp | 630 if (!match(I0, m_ExtractElt(m_Value(V0), m_ConstantInt(C0))) || in foldExtractExtract() 631 !match(I1, m_ExtractElt(m_Value(V1), m_ConstantInt(C1))) || in foldExtractExtract() 645 m_InsertElt(m_Value(), m_Value(), m_ConstantInt(InsertIndex))); in foldExtractExtract() 681 m_ConstantInt(Index)))) in foldInsExtFNeg() 761 m_OneUse(m_BinOp(SclBinOp)), m_ConstantInt(Index)))) in foldInsExtBinop() 1128 m_ConstantInt(InsIdx)))) { in scalarizeOpOrCmp() 1287 if (!match(I0, m_ExtractElt(m_Value(X), m_ConstantInt(Index0))) || in foldExtractedCmps() 1288 !match(I1, m_ExtractElt(m_Specific(X), m_ConstantInt(Index1)))) in foldExtractedCmps() 1581 if (match(Idx, m_And(m_Value(IdxBase), m_ConstantInt(CI)))) { in canScalarizeAccess() 1583 } else if (match(Idx, m_URem(m_Value(IdxBase), m_ConstantInt(CI)))) { in canScalarizeAccess() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SelectOptimize.cpp | 807 if (match(I, m_Shr(m_Value(Val), m_ConstantInt(Shift))) && in collectSelectGroups() 814 match(CmpI->getOperand(1), m_ConstantInt<-1>())) || in collectSelectGroups() 820 match(CmpI->getOperand(1), m_ConstantInt<-1>()))) { in collectSelectGroups() 837 m_c_BinOp(m_Value(), m_OneUse(m_Shr(m_Value(X), m_ConstantInt(Shift)))); in collectSelectGroups()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInterleavedAccess.cpp | 379 if (match(V, m_CombineOr(m_ConstantInt(C), in isMultipleOfN() 380 m_c_Mul(m_Value(), m_ConstantInt(C)))) && in isMultipleOfN()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 168 inline class_match<ConstantInt> m_ConstantInt() { in m_ConstantInt() function 347 template <int64_t Val> inline constantint_match<Val> m_ConstantInt() { in m_ConstantInt() function 851 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function 1037 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function 1858 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 579 m_ConstantInt(MulConst)), in tryToRecognizeTableBasedCttz() 580 m_ConstantInt(ShiftConst))))) in tryToRecognizeTableBasedCttz()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.cpp | 1040 m_ConstantInt(C))) || in isAlwaysUniform() 1042 m_ConstantInt(C)))) { in isAlwaysUniform()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | IntrinsicInst.cpp | 615 if (match(VLParam, m_Mul(m_VScale(), m_ConstantInt(VScaleFactor)))) in canIgnoreVectorLengthParam()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 2701 if (match(II.getOperand(0), m_ConstantInt<AArch64SVEPredPattern::all>())) in instCombinePTrue() 6054 m_ConstantInt(ElementIndex))) && in isOperandOfVmullHighP64() 6096 if (match(Op, m_Shl(m_VScale(), m_ConstantInt())) || in shouldSinkVScale() 6097 match(Op, m_Mul(m_VScale(), m_ConstantInt()))) { in shouldSinkVScale() 6101 if (match(Op, m_Shl(m_ZExt(m_VScale()), m_ConstantInt())) || in shouldSinkVScale() 6102 match(Op, m_Mul(m_ZExt(m_VScale()), m_ConstantInt()))) { in shouldSinkVScale()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 726 } else if (match(LHS, m_Shl(m_V, m_ConstantInt(ShAmt))) && in computeKnownBitsFromCmp() 735 } else if (match(LHS, m_Shr(m_V, m_ConstantInt(ShAmt))) && in computeKnownBitsFromCmp() 4593 m_Specific(V), m_ConstantInt(ClassVal)))) { in computeKnownFPClassFromCond() 4840 m_Value(TestedValue), m_ConstantInt(ClassVal)))) { in computeKnownFPClass() 10130 bool HasRHSC = match(B, m_ConstantInt()); in findValuesAffectedByCondition() 10139 if (match(A, m_Shift(m_Value(X), m_ConstantInt()))) in findValuesAffectedByCondition() 10152 if (match(A, m_AddLike(m_Value(X), m_ConstantInt()))) in findValuesAffectedByCondition()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.cpp | 373 PatternMatch::match(RHS, PatternMatch::m_ConstantInt(C)) && in isSSATMinMaxPattern() 383 PatternMatch::match(MinRHS, PatternMatch::m_ConstantInt(MinC)) && in isSSATMinMaxPattern()
|