Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp87 m_Sub(m_SpecificInt(Width), m_Deferred(ShAmt))))))) { in foldGuardedFunnelShift()
94 m_OneUse(m_c_Or(m_Shl(m_Value(ShVal0), m_Sub(m_SpecificInt(Width), in foldGuardedFunnelShift()
316 if ((match(Op0, m_Mul(m_Value(MulOp0), m_SpecificInt(Mask01)))) && in tryToRecognizePopCount()
317 match(Op1, m_SpecificInt(MaskShift))) { in tryToRecognizePopCount()
320 if (match(MulOp0, m_And(m_c_Add(m_LShr(m_Value(ShiftOp0), m_SpecificInt(4)), in tryToRecognizePopCount()
322 m_SpecificInt(Mask0F)))) { in tryToRecognizePopCount()
326 m_c_Add(m_And(m_Value(AndOp0), m_SpecificInt(Mask33)), in tryToRecognizePopCount()
327 m_And(m_LShr(m_Deferred(AndOp0), m_SpecificInt(2)), in tryToRecognizePopCount()
328 m_SpecificInt(Mask33))))) { in tryToRecognizePopCount()
333 match(SubOp1, m_And(m_LShr(m_Specific(Root), m_SpecificInt(1)), in tryToRecognizePopCount()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DEVLIndVarSimplify.cpp188 m_Value(RemTC), m_SpecificInt(VF), in run()
189 /*Scalable=*/m_SpecificInt(1)); in run()
H A DVPlanUtils.cpp67 m_SpecificInt(1), in isHeaderMask()
H A DVPlanTransforms.cpp1094 if (match(Def, m_c_Mul(m_VPValue(A), m_SpecificInt(1)))) in simplifyRecipe()
1119 m_DerivedIV(m_SpecificInt(0), m_VPValue(A), m_SpecificInt(1))) || in simplifyRecipe()
1121 m_DerivedIV(m_SpecificInt(0), m_SpecificInt(0), m_VPValue()))) && in simplifyRecipe()
1127 m_VPValue(X), m_SpecificInt(1)))) { in simplifyRecipe()
H A DVPlanUnroll.cpp238 if (match(VPI->getOperand(2), m_SpecificInt(1))) { in unrollHeaderPHIByUF()
H A DVPlanPatternMatch.h131 inline specific_intval<0> m_SpecificInt(uint64_t V) { in m_SpecificInt() function
H A DLoopVectorize.cpp9728 m_SpecificInt(0))); in preparePlanForMainVectorLoop()
9766 m_SpecificInt(0)) && in preparePlanForEpilogueVectorLoop()
9769 match(Inc, m_SpecificInt(0)); in preparePlanForEpilogueVectorLoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp972 match(TrueVal, m_Add(m_Specific(B), m_SpecificInt(-*C))))) in canonicalizeSaturatedSubtract()
976 match(TrueVal, m_Add(m_Specific(A), m_SpecificInt(-*C))))) in canonicalizeSaturatedSubtract()
1158 m_Xor(m_Value(Ctlz), m_SpecificInt(BitWidth - 1)))) in foldSelectCtlzToCttz()
1164 if (TrueVal != Ctlz && !match(TrueVal, m_SpecificInt(BitWidth))) in foldSelectCtlzToCttz()
1230 if (match(ValueOnZero, m_SpecificInt(SizeOfInBits))) { in foldSelectCttzCtlz()
1771 if (CmpC->isMinValue() && match(TVal, m_SpecificInt(*CmpC + 1))) in foldSelectInstWithICmpConst()
1774 if (CmpC->isMaxValue() && match(TVal, m_SpecificInt(*CmpC - 1))) in foldSelectInstWithICmpConst()
1777 if (CmpC->isMinSignedValue() && match(TVal, m_SpecificInt(*CmpC + 1))) in foldSelectInstWithICmpConst()
1780 if (CmpC->isMaxSignedValue() && match(TVal, m_SpecificInt(*CmpC - 1))) in foldSelectInstWithICmpConst()
1853 if (!match(CmpRHS, m_SpecificInt(C)) || !match(TValRHS, m_SpecificInt(C))) in foldSelectWithExtremeEqCond()
[all …]
H A DInstCombineAndOrXor.cpp942 m_SpecificInt(1))) || in foldIsPowerOf2OrZero()
981 m_SpecificInt(2)))) { in foldIsPowerOf2()
993 m_SpecificInt(1)))) { in foldIsPowerOf2()
1801 m_SpecificInt(Op0->getType()->getScalarSizeInBits() - 1)))) && in foldCastedBitwiseLogic()
2955 if (match(R, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(L))))) { in convertOrOfShiftsToFunnelShift()
2975 if (match(L, m_And(m_Value(X), m_SpecificInt(Mask))) && in convertOrOfShiftsToFunnelShift()
2976 match(R, m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask)))) in convertOrOfShiftsToFunnelShift()
2980 if (match(R, m_And(m_Neg(m_Specific(L)), m_SpecificInt(Mask)))) in convertOrOfShiftsToFunnelShift()
2985 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in convertOrOfShiftsToFunnelShift()
2987 m_And(m_Neg(m_ZExt(m_And(m_Specific(X), m_SpecificInt(Mask)))), in convertOrOfShiftsToFunnelShift()
[all …]
H A DInstCombineAddSub.cpp998 if (match(Op0, m_OneUse(m_UMax(m_Value(X), m_SpecificInt(-*C))))) in foldAddWithConstant()
1060 if (matchesSquareSum</*FP*/ false>(I, m_SpecificInt(1), A, B)) { in foldSquareSumInt()
1382 m_ZExtOrSelf(m_Sub(m_SpecificInt(XTy->getScalarSizeInBits()), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1496 if (!match(&I, m_c_Add(m_Shl(m_Value(CrossSum), m_SpecificInt(HalfBits)), in foldBoxMultiply()
1505 if (!match(XLo, m_And(m_Value(X), m_SpecificInt(HalfMask))) || in foldBoxMultiply()
1506 !match(YLo, m_And(m_Value(Y), m_SpecificInt(HalfMask)))) in foldBoxMultiply()
1512 m_c_Add(m_c_Mul(m_LShr(m_Specific(Y), m_SpecificInt(HalfBits)), in foldBoxMultiply()
1514 m_c_Mul(m_LShr(m_Specific(X), m_SpecificInt(HalfBits)), in foldBoxMultiply()
2807 if (match(Op0, m_SpecificInt(BitWidth)) && in visitSub()
H A DInstCombineCasts.cpp561 if (match(R, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(L))))) in narrowFunnelShift()
573 if (match(L, m_And(m_Value(X), m_SpecificInt(Mask))) && in narrowFunnelShift()
574 match(R, m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask)))) in narrowFunnelShift()
578 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in narrowFunnelShift()
579 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in narrowFunnelShift()
818 if (match(Src, m_Shr(m_Value(X), m_SpecificInt(SrcWidth - 1)))) { in visitTrunc()
1589 m_SpecificInt(SrcBitSize - 1))))) { in visitSExt()
H A DInstCombineShifts.cpp512 if (match(Op1, m_Or(m_Value(), m_SpecificInt(BitWidth - 1)))) in commonShiftTransforms()
520 match(Op1, m_SpecificInt(Ty->getScalarSizeInBits() - 1))) { in commonShiftTransforms()
1262 if (match(Op1, m_Sub(m_SpecificInt(BitWidth - 1), m_Value(X)))) in visitShl()
1484 if (match(Op0, m_OneUse(m_SRem(m_Value(X), m_SpecificInt(2))))) { in visitLShr()
H A DInstCombineSimplifyDemanded.cpp1056 !match(I->getOperand(0), m_SpecificInt(LHSKnown.One))) { in SimplifyDemandedUseBits()
1063 !match(I->getOperand(1), m_SpecificInt(RHSKnown.One))) { in SimplifyDemandedUseBits()
1557 m_ExtractElt(m_Value(Vec), m_SpecificInt(IdxNo))) && in SimplifyDemandedVectorElts()
H A DInstCombineMulDivRem.cpp1393 match(Op0, m_NSWAddLike(m_NSWMul(m_Value(X), m_SpecificInt(*C2)), in commonIDivTransforms()
1399 match(Op0, m_NUWAddLike(m_NUWMul(m_Value(X), m_SpecificInt(*C2)), in commonIDivTransforms()
H A DInstCombineCalls.cpp2105 match(I1, m_OneUse(m_And(m_Value(Y), m_SpecificInt(*RHSC))))) in visitCallInst()
2355 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
H A DInstructionCombining.cpp3235 m_SpecificInt(countr_zero(TyAllocSize))))) || in visitGetElementPtrInst()
3237 m_IDiv(m_Value(V), m_SpecificInt(TyAllocSize)))) { in visitGetElementPtrInst()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h1110 inline SpecificInt_match m_SpecificInt(APInt V) {
1113 inline SpecificInt_match m_SpecificInt(uint64_t V) {
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h1019 inline specific_intval<false> m_SpecificInt(const APInt &V) { in m_SpecificInt() function
1023 inline specific_intval64<false> m_SpecificInt(uint64_t V) { in m_SpecificInt() function
2993 auto LHS = m_AShr(m_Value(Op), m_SpecificInt(ShiftWidth));
2994 auto RHS = m_LShr(m_Neg(m_Deferred(Op)), m_SpecificInt(ShiftWidth));
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp680 m_SpecificInt(CI->getType()->getIntegerBitWidth() - 1)))) { in getMemCmpOneBlock()
H A DCodeGenPrepare.cpp8395 m_SpecificInt(HalfValBitSize)))))) in splitMergedValStore()
8662 match(UI, m_Shr(m_Specific(X), m_SpecificInt(CmpC.logBase2())))) { in optimizeBranch()
8675 (match(UI, m_Add(m_Specific(X), m_SpecificInt(-CmpC))) || in optimizeBranch()
8676 match(UI, m_Sub(m_Specific(X), m_SpecificInt(CmpC))) || in optimizeBranch()
8677 match(UI, m_Xor(m_Specific(X), m_SpecificInt(CmpC))))) { in optimizeBranch()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1425 match(Op1, m_SpecificInt(Ty->getScalarSizeInBits() - 1))) in simplifyShlInst()
2176 match(Op1, m_Xor(m_Specific(A), m_SpecificInt(~*C1)))) in simplifyAndInst()
2448 match(Op1, m_Xor(m_Specific(A), m_SpecificInt(~*C1)))) in simplifyOrInst()
4683 if (match(Y, m_SpecificInt(LimitC))) in simplifySelectWithICmpCond()
5087 m_SpecificInt(TyAllocSize))) && in simplifyGEPInst()
6892 if (ScaledOne.isNonNegative() && match(Op1, m_SpecificInt(ScaledOne))) in simplifyIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp383 match(I->getOperand(2), m_SpecificInt(Size)) && !I->isVolatile(); in isSupportedMemset()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp4335 sd_match(N1, m_Sra(m_Value(A), m_SpecificInt(BitWidth - 1))) && in visitSUB()
4846 m_Mul(m_Or(m_Sra(m_Value(X), m_SpecificInt(BitWidth - 1)), m_One()), in visitMUL()
7236 if (!sd_match(N, m_And(m_OneUse(m_Xor(m_Value(X), m_SpecificInt(SignMask))), in foldAndToUsubsat()
7238 m_SpecificInt(BitWidth - 1))))) && in foldAndToUsubsat()
7239 !sd_match(N, m_And(m_OneUse(m_Add(m_Value(X), m_SpecificInt(SignMask))), in foldAndToUsubsat()
7241 m_SpecificInt(BitWidth - 1)))))) in foldAndToUsubsat()
8277 m_OneUse(m_Shl(m_AnyExt(m_Value(Hi)), m_SpecificInt(BW / 2)))) && in visitORCommutative()
8821 m_Xor(m_Specific(InnerPos), m_SpecificInt(EltBits - 1))) && in MatchFunnelPosNeg()
8830 m_Xor(m_Specific(InnerNeg), m_SpecificInt(EltBits - 1))) && in MatchFunnelPosNeg()
8840 m_Xor(m_Specific(InnerNeg), m_SpecificInt(EltBits - 1))) && in MatchFunnelPosNeg()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp2449 m_Value(IndexBase), m_SpecificInt(1)))) { in instCombineLD1GatherIndex()
2477 m_Value(IndexBase), m_SpecificInt(1)))) { in instCombineST1ScatterIndex()
3032 m_c_Add(m_Instruction(Ex2), m_SpecificInt(1)))))) in isExtPartOfAvgExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp1544 m_Value(), m_SpecificInt(1)))))); in lowerDotProduct()

12