Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp75 m_Sub(m_SpecificInt(Width), m_Deferred(ShAmt))))))) { in foldGuardedFunnelShift()
82 m_OneUse(m_c_Or(m_Shl(m_Value(ShVal0), m_Sub(m_SpecificInt(Width), in foldGuardedFunnelShift()
305 if ((match(Op0, m_Mul(m_Value(MulOp0), m_SpecificInt(Mask01)))) && in tryToRecognizePopCount()
306 match(Op1, m_SpecificInt(MaskShift))) { in tryToRecognizePopCount()
309 if (match(MulOp0, m_And(m_c_Add(m_LShr(m_Value(ShiftOp0), m_SpecificInt(4)), in tryToRecognizePopCount()
311 m_SpecificInt(Mask0F)))) { in tryToRecognizePopCount()
315 m_c_Add(m_And(m_Value(AndOp0), m_SpecificInt(Mask33)), in tryToRecognizePopCount()
316 m_And(m_LShr(m_Deferred(AndOp0), m_SpecificInt(2)), in tryToRecognizePopCount()
317 m_SpecificInt(Mask33))))) { in tryToRecognizePopCount()
321 match(SubOp1, m_And(m_LShr(m_Specific(Root), m_SpecificInt(1)), in tryToRecognizePopCount()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp934 match(TrueVal, m_Add(m_Specific(B), m_SpecificInt(-*C))))) in canonicalizeSaturatedSubtract()
938 match(TrueVal, m_Add(m_Specific(A), m_SpecificInt(-*C))))) in canonicalizeSaturatedSubtract()
1087 m_Xor(m_Value(Ctlz), m_SpecificInt(BitWidth - 1)))) in foldSelectCtlzToCttz()
1093 if (TrueVal != Ctlz && !match(TrueVal, m_SpecificInt(BitWidth))) in foldSelectCtlzToCttz()
1157 if (match(ValueOnZero, m_SpecificInt(SizeOfInBits))) { in foldSelectCttzCtlz()
1643 if (CmpC->isMinValue() && match(TVal, m_SpecificInt(*CmpC + 1))) in foldSelectInstWithICmpConst()
1646 if (CmpC->isMaxValue() && match(TVal, m_SpecificInt(*CmpC - 1))) in foldSelectInstWithICmpConst()
1982 return match(Min, m_SpecificInt(MinVal)) && in foldOverflowingAddSubSelect()
1983 match(Max, m_SpecificInt(MaxVal)); in foldOverflowingAddSubSelect()
2325 if (match(SA1, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(SA0))))) in foldSelectFunnelShift()
[all …]
H A DInstCombineAndOrXor.cpp876 m_SpecificInt(1))) || in foldIsPowerOf2OrZero()
904 m_SpecificInt(2))) && in foldIsPowerOf2()
912 m_SpecificInt(1))) && in foldIsPowerOf2()
2788 if (match(R, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(L))))) { in matchFunnelShift()
2808 if (match(L, m_And(m_Value(X), m_SpecificInt(Mask))) && in matchFunnelShift()
2809 match(R, m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask)))) in matchFunnelShift()
2813 if (match(R, m_And(m_Neg(m_Specific(L)), m_SpecificInt(Mask)))) in matchFunnelShift()
2818 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in matchFunnelShift()
2821 m_SpecificInt(Mask)))) in matchFunnelShift()
2824 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in matchFunnelShift()
[all …]
H A DInstCombineCasts.cpp478 if (match(R, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(L))))) in narrowFunnelShift()
490 if (match(L, m_And(m_Value(X), m_SpecificInt(Mask))) && in narrowFunnelShift()
491 match(R, m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask)))) in narrowFunnelShift()
495 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in narrowFunnelShift()
496 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in narrowFunnelShift()
1500 m_SpecificInt(SrcBitSize - 1))))) { in visitSExt()
H A DInstCombineAddSub.cpp1041 if (matchesSquareSum</*FP*/ false>(I, m_SpecificInt(1), A, B)) { in foldSquareSumInt()
1419 if (!match(&I, m_c_Add(m_Shl(m_Value(CrossSum), m_SpecificInt(HalfBits)), in foldBoxMultiply()
1428 if (!match(XLo, m_And(m_Value(X), m_SpecificInt(HalfMask))) || in foldBoxMultiply()
1429 !match(YLo, m_And(m_Value(Y), m_SpecificInt(HalfMask)))) in foldBoxMultiply()
1435 m_c_Add(m_c_Mul(m_LShr(m_Specific(Y), m_SpecificInt(HalfBits)), in foldBoxMultiply()
1437 m_c_Mul(m_LShr(m_Specific(X), m_SpecificInt(HalfBits)), in foldBoxMultiply()
2618 if (match(Op0, m_SpecificInt(BitWidth)) && in visitSub()
H A DInstCombineSimplifyDemanded.cpp999 !match(I->getOperand(0), m_SpecificInt(LHSKnown.One))) { in SimplifyDemandedUseBits()
1006 !match(I->getOperand(1), m_SpecificInt(RHSKnown.One))) { in SimplifyDemandedUseBits()
1497 m_ExtractElt(m_Value(Vec), m_SpecificInt(IdxNo))) && in SimplifyDemandedVectorElts()
H A DInstCombineShifts.cpp501 if (match(Op1, m_Or(m_Value(), m_SpecificInt(BitWidth - 1)))) in commonShiftTransforms()
1219 if (match(Op1, m_Sub(m_SpecificInt(BitWidth - 1), m_Value(X)))) in visitShl()
1378 if (match(Op0, m_OneUse(m_SRem(m_Value(X), m_SpecificInt(2))))) { in visitLShr()
H A DInstCombineMulDivRem.cpp1123 match(Op0, m_NSWAdd(m_NSWMul(m_Value(X), m_SpecificInt(*C2)), in commonIDivTransforms()
1129 match(Op0, m_NUWAdd(m_NUWMul(m_Value(X), m_SpecificInt(*C2)), in commonIDivTransforms()
H A DInstCombineCompares.cpp1902 m_Select(m_Value(B), m_SpecificInt(*TC), m_SpecificInt(*FC))) && in foldICmpAndConstant()
5416 if (match(Op0, m_AShr(m_Trunc(m_Value(A)), m_SpecificInt(BitWidth - 1))) && in foldICmpEquality()
5417 match(Op1, m_Trunc(m_LShr(m_Specific(A), m_SpecificInt(BitWidth)))) && in foldICmpEquality()
H A DInstructionCombining.cpp2599 m_SpecificInt(countr_zero(TyAllocSize)))))) || in visitGetElementPtrInst()
2601 m_Exact(m_IDiv(m_Value(V), m_SpecificInt(TyAllocSize))))) { in visitGetElementPtrInst()
H A DInstCombineVectorOps.cpp1337 if (!match(Scalar, m_ExtractElt(m_Specific(X), m_SpecificInt(IdxC)))) in foldInsEltIntoIdentityShuffle()
H A DInstCombineCalls.cpp1996 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h862 inline specific_intval<false> m_SpecificInt(APInt V) { in m_SpecificInt() function
866 inline specific_intval<false> m_SpecificInt(uint64_t V) { in m_SpecificInt() function
867 return m_SpecificInt(APInt(64, V)); in m_SpecificInt()
2551 auto LHS = m_AShr(m_Value(OpL), m_SpecificInt(ShiftWidth));
2552 auto RHS = m_LShr(m_Neg(m_Value(OpR)), m_SpecificInt(ShiftWidth));
2639 m_SpecificInt(1).match(GEP->idx_begin()->get()))
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1457 match(Op1, m_SpecificInt(Ty->getScalarSizeInBits() - 1))) in simplifyShlInst()
2212 match(Op1, m_Xor(m_Specific(A), m_SpecificInt(~*C1)))) in simplifyAndInst()
2486 match(Op1, m_Xor(m_Specific(A), m_SpecificInt(~*C1)))) in simplifyOrInst()
4643 if (match(Y, m_SpecificInt(LimitC))) in simplifySelectWithICmpCond()
5035 m_SpecificInt(TyAllocSize))) && in simplifyGEPInst()
6804 if (ScaledOne.isNonNegative() && match(Op1, m_SpecificInt(ScaledOne))) in simplifyIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp285 match(I->getOperand(2), m_SpecificInt(Size)) && !I->isVolatile(); in isSupportedMemset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1661 m_Value(IndexBase), m_SpecificInt(1)))) { in instCombineLD1GatherIndex()
1691 m_Value(IndexBase), m_SpecificInt(1)))) { in instCombineST1ScatterIndex()
2217 m_c_Add(m_Instruction(Ex2), m_SpecificInt(1)))))) in isExtPartOfAvgExpr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp7889 m_SpecificInt(HalfValBitSize)))))) in splitMergedValStore()
8153 match(UI, m_Shr(m_Specific(X), m_SpecificInt(CmpC.logBase2())))) { in optimizeBranch()
8166 (match(UI, m_Add(m_Specific(X), m_SpecificInt(-CmpC))) || in optimizeBranch()
8167 match(UI, m_Sub(m_Specific(X), m_SpecificInt(CmpC))))) { in optimizeBranch()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp634 m_ExtractElt(m_Value(SrcVec), m_SpecificInt(Index)))))) in foldInsExtFNeg()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp1343 m_Value(), m_SpecificInt(1)))))); in lowerDotProduct()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp33750 match(Op.get(), m_AShr(m_Shl(m_Value(), m_SpecificInt(32)), in shouldSinkOperands()
33751 m_SpecificInt(32)))) { in shouldSinkOperands()
33756 m_And(m_Value(), m_SpecificInt(UINT64_C(0xffffffff))))) { in shouldSinkOperands()