Home
last modified time | relevance | path

Searched refs:m_ConstantInt (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenExtract.cpp107 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
108 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY()
109 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY()
114 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
115 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY()
116 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY()
122 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY()
123 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY()
131 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
132 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp410 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
413 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
428 return match(A, m_c_Add(m_Value(B), m_ConstantInt(C))); in matchesAdd()
433 return match(A, m_c_Or(m_Value(B), m_ConstantInt(C))); in matchesOr()
508 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
512 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
H A DLowerMatrixIntrinsics.cpp787 m_Value(TA), m_ConstantInt(R), m_ConstantInt(C)))) in sinkTranspose()
809 m_Value(TAMA), m_Value(TAMB), m_ConstantInt(R), in sinkTranspose()
810 m_ConstantInt(K), m_ConstantInt(C)))) { in sinkTranspose()
888 m_Value(A), m_Value(B), m_ConstantInt(R), in liftTranspose()
889 m_ConstantInt(K), m_ConstantInt(C))) && in liftTranspose()
907 m_Value(AT), m_ConstantInt(R), m_ConstantInt(C))) && in liftTranspose()
909 m_Value(BT), m_ConstantInt(), m_ConstantInt()))) { in liftTranspose()
H A DGuardWidening.cpp736 m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in mergeChecks()
738 m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in mergeChecks()
846 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
852 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
H A DConstraintElimination.cpp525 if (match(V, m_NSWMul(m_Value(Op0), m_ConstantInt(CI))) && canUseSExt(CI)) { in decompose()
533 if (match(V, m_NSWShl(m_Value(Op0), m_ConstantInt(CI)))) { in decompose()
580 if (match(V, m_Add(m_Value(Op0), m_ConstantInt(CI))) && CI->isNegative() && in decompose()
589 if (match(V, m_DisjointOr(m_Value(Op0), m_ConstantInt(CI)))) in decompose()
592 if (match(V, m_NUWShl(m_Value(Op1), m_ConstantInt(CI))) && canUseSExt(CI)) { in decompose()
600 if (match(V, m_NUWMul(m_Value(Op1), m_ConstantInt(CI))) && canUseSExt(CI) && in decompose()
H A DLoopDeletion.cpp163 m_Br(m_ConstantInt(Cond), Taken, NotTaken))) in isLoopNeverExecuted()
H A DInductiveRangeCheckElimination.cpp328 if (match(RHS, m_ConstantInt<0>())) { in parseIvAgaisntLimit()
336 if (match(RHS, m_ConstantInt<-1>())) { in parseIvAgaisntLimit()
H A DDeadStoreElimination.cpp1216 if (match(I, m_Intrinsic<Intrinsic::lifetime_end>(m_ConstantInt(Len), in getLocForTerminator()
H A DJumpThreading.cpp819 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) { in computeValueKnownInPredecessorsImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp75 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()
1300 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoSplat()
1338 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoIdentityShuffle()
1394 match(InsElt1->getOperand(2), m_ConstantInt(IdxC1)) && in hoistInsEltConst()
1396 match(InsElt2.getOperand(2), m_ConstantInt(IdxC2)) && IdxC1 != IdxC2) { in hoistInsEltConst()
1419 !match(InsElt.getOperand(2), m_ConstantInt(InsEltIndex))) in foldConstantInsEltIntoShuffle()
1473 if (!match(InsElt.getOperand(2), m_ConstantInt(InsertIdx[0])) || in foldConstantInsEltIntoShuffle()
1475 !match(IEI->getOperand(2), m_ConstantInt(InsertIdx[1])) || in foldConstantInsEltIntoShuffle()
[all …]
H A DInstCombineSimplifyDemanded.cpp353 match(I->getOperand(1), m_ConstantInt(XorRHS)) && in SimplifyDemandedUseBits()
354 match(LHSInst->getOperand(1), m_ConstantInt(AndRHS)) && in SimplifyDemandedUseBits()
992 m_PtrAdd(m_Value(InnerPtr), m_ConstantInt(GEPIndex)), in SimplifyDemandedUseBits()
993 m_ConstantInt(PtrMaskImmediate)))) { in SimplifyDemandedUseBits()
H A DInstructionCombining.cpp2798 m_OneUse(m_CombineOr(m_Mul(m_Value(), m_ConstantInt()), in visitGetElementPtrInst()
2799 m_Shl(m_Value(), m_ConstantInt())))))) { in visitGetElementPtrInst()
3031 m_Value(Idx1), m_ConstantInt(C))))))) { in visitGetElementPtrInst()
3748 if (match(Cond, m_Add(m_Value(Op0), m_ConstantInt(AddRHS)))) { in visitSwitchInst()
3760 if (match(Cond, m_Sub(m_ConstantInt(SubLHS), m_Value(Op0)))) { in visitSwitchInst()
3772 if (match(Cond, m_Shl(m_Value(Op0), m_ConstantInt(ShiftAmt))) && in visitSwitchInst()
H A DInstCombineAndOrXor.cpp1540 m_Value(ClassVal0), m_ConstantInt(ClassMask0)))); in foldLogicOfIsFPClass()
1543 m_Value(ClassVal1), m_ConstantInt(ClassMask1)))); in foldLogicOfIsFPClass()
3822 if (Op0->hasOneUse() && !match(Op1, m_ConstantInt()) && in visitOr()
3823 match(Op0, m_Or(m_Value(A), m_ConstantInt(CI)))) { in visitOr()
4804 if (match(Op1, m_ConstantInt(C3)) && in visitXor()
4805 match(Op0, m_LShr(m_Xor(m_Value(X), m_ConstantInt(C1)), in visitXor()
4806 m_ConstantInt(C2))) && in visitXor()
H A DInstCombineCompares.cpp1300 if (Pred == ICmpInst::ICMP_UGT && match(Op1, m_ConstantInt(CI)) && in foldICmpWithConstant()
1301 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant()
3178 if (!match(EqualVal, m_ConstantInt(Equal))) in matchThreeWayIntCompare()
3183 m_ConstantInt(Less), m_ConstantInt(Greater)))) in matchThreeWayIntCompare()
5584 if (match(B, m_ConstantInt(C1)) && match(D, m_ConstantInt(C2)) && in foldICmpEquality()
5700 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality()
5717 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), m_ConstantInt(ShAmt))))) && in foldICmpEquality()
5718 match(Op1, m_ConstantInt(Cst1)) && in foldICmpEquality()
H A DInstCombineCasts.cpp412 m_ConstantInt(ShiftVal)))) || in foldVecTruncToExtElt()
861 if (match(Src, m_OneUse(m_ExtractElt(m_Value(VecOp), m_ConstantInt(Cst))))) { in visitTrunc()
2733 m_Value(Y), m_ConstantInt(IndexC)))) && in visitBitCast()
H A DInstCombineCalls.cpp3094 m_Cmp(Pred, m_And(m_Value(A), m_ConstantInt(AlignMask)), in visitCallInst()
3099 match(A, m_Add(m_Value(A), m_ConstantInt(Offset))); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp588 if (!match(I0, m_ExtractElt(m_Value(V0), m_ConstantInt(C0))) || in foldExtractExtract()
589 !match(I1, m_ExtractElt(m_Value(V1), m_ConstantInt(C1))) || in foldExtractExtract()
603 m_InsertElt(m_Value(), m_Value(), m_ConstantInt(InsertIndex))); in foldExtractExtract()
639 m_ConstantInt(Index)))) in foldInsExtFNeg()
935 m_ConstantInt(Index0))) && in scalarizeBinopOrCmp()
939 m_ConstantInt(Index1))) && in scalarizeBinopOrCmp()
1054 if (!match(I0, m_OneUse(m_ExtractElt(m_Value(X), m_ConstantInt(Index0)))) || in foldExtractedCmps()
1055 !match(I1, m_OneUse(m_ExtractElt(m_Specific(X), m_ConstantInt(Index1))))) in foldExtractedCmps()
1222 if (match(Idx, m_And(m_Value(IdxBase), m_ConstantInt(CI)))) { in canScalarizeAccess()
1224 } else if (match(Idx, m_URem(m_Value(IdxBase), m_ConstantInt(CI)))) { in canScalarizeAccess()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h168 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
837 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function
990 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function
1755 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp969 m_ConstantInt(C))) || in isAlwaysUniform()
971 m_ConstantInt(C)))) { in isAlwaysUniform()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp571 m_ConstantInt(MulConst)), in tryToRecognizeTableBasedCttz()
572 m_ConstantInt(ShiftConst))))) in tryToRecognizeTableBasedCttz()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIntrinsicInst.cpp640 if (match(VLParam, m_Mul(m_VScale(), m_ConstantInt(VScaleFactor)))) in canIgnoreVectorLengthParam()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp679 if (match(UI, m_LShr(m_Value(), m_ConstantInt(Shift))) && in getMemCmpOneBlock()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp681 } else if (match(LHS, m_Shl(m_V, m_ConstantInt(ShAmt))) && in computeKnownBitsFromCmp()
690 } else if (match(LHS, m_Shr(m_V, m_ConstantInt(ShAmt))) && in computeKnownBitsFromCmp()
4780 m_Value(LHS), m_ConstantInt(ClassVal)))) { in computeKnownFPClassFromCond()
5022 m_Value(TestedValue), m_ConstantInt(ClassVal)))) { in computeKnownFPClass()
9829 if (match(B, m_ConstantInt())) { in findValuesAffectedByCondition()
9833 if (match(A, m_BitwiseLogic(m_Value(X), m_ConstantInt())) || in findValuesAffectedByCondition()
9834 match(A, m_Shift(m_Value(X), m_ConstantInt()))) in findValuesAffectedByCondition()
9843 if (match(B, m_ConstantInt())) { in findValuesAffectedByCondition()
9846 if (match(A, m_AddLike(m_Value(X), m_ConstantInt()))) in findValuesAffectedByCondition()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp353 PatternMatch::match(RHS, PatternMatch::m_ConstantInt(C)) && in isSSATMinMaxPattern()
363 PatternMatch::match(MinRHS, PatternMatch::m_ConstantInt(MinC)) && in isSSATMinMaxPattern()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1027 m_ConstantInt<AArch64SVEPredPattern::all>())); in isAllActivePredicate()
1538 m_ConstantInt<AArch64SVEPredPattern::all>()))) in instCombineSVEVectorBinOp()
1553 m_ConstantInt<AArch64SVEPredPattern::all>()))) in instCombineSVEAllActive()

12