Home
last modified time | relevance | path

Searched refs:m_APInt (Results 1 – 24 of 24) sorted by relevance

/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp204 match(InnerShift->getOperand(1), m_APInt(C1)); in foldShiftedShift()
352 if (!match(Op1, m_APInt(Op1C))) in FoldShiftByConstant()
510 if (match(Op0BO->getOperand(1), m_APInt(Op0C))) { in FoldShiftByConstant()
528 match(Op0BO->getOperand(0), m_APInt(Op0C))) { in FoldShiftByConstant()
554 match(TBO->getOperand(1), m_APInt(C)) && in FoldShiftByConstant()
573 match(FBO->getOperand(1), m_APInt(C)) && in FoldShiftByConstant()
605 if (match(Op1, m_APInt(ShAmtAPInt))) { in visitShl()
648 if (match(Op0, m_Shl(m_Value(X), m_APInt(ShOp1)))) { in visitShl()
709 if (match(Op1, m_APInt(ShAmtAPInt))) { in visitLShr()
797 if (match(Op0, m_LShr(m_Value(X), m_APInt(ShOp1)))) { in visitLShr()
[all …]
H A DInstCombineAddSub.cpp788 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
791 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand()
811 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
817 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
852 if (!match(Op1, m_APInt(C))) in foldAddWithConstant()
895 if (match(Op0, m_AShr(m_Shl(m_Value(X), m_APInt(C2)), m_APInt(C3))) && in foldAddWithConstant()
910 if (match(E, m_Mul(m_Value(Op), m_APInt(AI)))) { in MatchMul()
914 if (match(E, m_Shl(m_Value(Op), m_APInt(AI)))) { in MatchMul()
929 if (match(E, m_SRem(m_Value(Op), m_APInt(AI)))) { in MatchRem()
934 if (match(E, m_URem(m_Value(Op), m_APInt(AI)))) { in MatchRem()
[all …]
H A DInstCombineMulDivRem.cpp105 if (match(C, m_APInt(IVal)) && IVal->isPowerOf2()) in getLogBase2()
120 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2()) in getLogBase2()
158 match(C1, m_APInt(IVal))) { in visitMul()
180 if (match(NewCst, m_APInt(V)) && *V != V->getBitWidth() - 1) in visitMul()
609 if (match(Op1, m_APInt(C2))) { in commonIDivTransforms()
614 if ((IsSigned && match(Op0, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
615 (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
645 if ((IsSigned && match(Op0, m_NSWShl(m_Value(X), m_APInt(C1))) && in commonIDivTransforms()
881 if (match(Op0, m_LShr(m_Value(X), m_APInt(C1))) && match(Op1, m_APInt(C2))) { in visitUDiv()
981 if (match(Op1, m_APInt(Op1C))) { in visitSDiv()
[all …]
H A DInstCombineCompares.cpp1396 match(Y, m_APInt(C))) { in foldICmpWithDominatingICmp()
1475 if (!match(Y, m_APInt(XorC))) in foldICmpXorConstant()
2341 if (!match(X, m_APInt(C2))) in foldICmpSubConstant()
2650 if (match(BOp1, m_APInt(BOC))) { in foldICmpBinOpEqualityWithConstant()
2709 if (match(BOp1, m_APInt(BOC))) { in foldICmpBinOpEqualityWithConstant()
4441 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits()
4463 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits()
4484 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits()
4499 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits()
4844 if (match(Op1, m_APInt(C))) { in visitICmpInst()
[all …]
H A DInstCombineSimplifyDemanded.cpp48 if (!match(Op, m_APInt(C))) in ShrinkDemandedConstant()
326 if (match(RHS, m_APInt(C)) && CTZ >= C->getActiveBits()) in SimplifyDemandedUseBits()
335 if (match(RHS, m_APInt(C)) && in SimplifyDemandedUseBits()
469 if (match(I->getOperand(1), m_APInt(SA))) { in SimplifyDemandedUseBits()
471 if (match(I->getOperand(0), m_Shr(m_Value(), m_APInt(ShrAmt)))) in SimplifyDemandedUseBits()
500 if (match(I->getOperand(1), m_APInt(SA))) { in SimplifyDemandedUseBits()
539 if (match(I->getOperand(1), m_APInt(SA))) { in SimplifyDemandedUseBits()
584 if (match(I->getOperand(1), m_APInt(SA))) { in SimplifyDemandedUseBits()
696 if (!match(I->getOperand(2), m_APInt(SA))) in SimplifyDemandedUseBits()
H A DInstCombineSelect.cpp127 if (!match(Sel.getTrueValue(), m_APInt(SelTC)) || in foldSelectICmpAnd()
128 !match(Sel.getFalseValue(), m_APInt(SelFC))) in foldSelectICmpAnd()
433 bool OOpIsAPInt = match(OOp, m_APInt(OOpC)); in foldSelectIntoOp()
464 bool OOpIsAPInt = match(OOp, m_APInt(OOpC)); in foldSelectIntoOp()
752 if (!Cmp.hasOneUse() || !match(CmpRHS, m_APInt(CmpC))) in adjustMinMax()
1019 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in foldSelectInstWithICmp()
1023 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in foldSelectInstWithICmp()
1027 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in foldSelectInstWithICmp()
1031 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in foldSelectInstWithICmp()
1119 if (match(B, m_APInt(CB)) && match(C, m_APInt(CC))) { in foldSPFofSPF()
H A DInstCombineAndOrXor.cpp102 } else if (match(OldRHS, m_APInt(C))) { in SimplifyBSwap()
815 if (!match(LHS->getOperand(1), m_APInt(C1)) || in foldAndOrOfEqualityCmpsWithConstants()
816 !match(RHS->getOperand(1), m_APInt(C2))) in foldAndOrOfEqualityCmpsWithConstants()
1559 if (match(Op1, m_APInt(C))) { in visitAnd()
1570 if (match(Op0, m_OneUse(m_Xor(m_Value(X), m_APInt(XorC))))) { in visitAnd()
1579 if (match(Op0, m_OneUse(m_Or(m_Value(X), m_APInt(OrC))))) { in visitAnd()
2795 if (match(Op1, m_APInt(RHSC))) { in visitXor()
2798 if (RHSC->isSignMask() && match(Op0, m_Sub(m_APInt(C), m_Value(X)))) { in visitXor()
2803 if (RHSC->isSignMask() && match(Op0, m_Add(m_Value(X), m_APInt(C)))) { in visitXor()
2810 if (match(Op0, m_Or(m_Value(X), m_APInt(C))) && in visitXor()
[all …]
H A DInstCombineCasts.cpp380 if (match(I->getOperand(1), m_APInt(Amt))) { in canEvaluateTruncated()
392 if (match(I->getOperand(1), m_APInt(Amt))) { in canEvaluateTruncated()
410 if (match(I->getOperand(1), m_APInt(Amt))) { in canEvaluateTruncated()
740 if (match(Src, m_OneUse(m_LShr(m_Value(X), m_APInt(C))))) { in visitTrunc()
746 if (match(Src, m_OneUse(m_c_Or(m_LShr(m_Value(X), m_APInt(C)), in visitTrunc()
853 if (match(ICI->getOperand(1), m_APInt(Op1CV))) { in transformZExtICmp()
1035 if (match(I->getOperand(1), m_APInt(Amt))) { in canEvaluateZExtd()
1048 if (match(I->getOperand(1), m_APInt(Amt))) { in canEvaluateZExtd()
H A DInstructionCombining.cpp212 if (!match(B, m_APInt(BVal)) || !match(C, m_APInt(CVal))) in MaintainNoSignedWrap()
597 if (match(V, m_APInt(CInt)) && !CInt->isMinSignedValue()) in tryFactorization()
H A DInstCombineCalls.cpp1986 if (match(II->getArgOperand(2), m_APInt(SA))) { in visitCallInst()
2105 match(Arg1, m_APInt(Val)) && in visitCallInst()
2107 match(Other->getArgOperand(1), m_APInt(Val2))) { in visitCallInst()
H A DInstCombineVectorOps.cpp1278 if (match(BO1, m_APInt(C)) && MaskedValueIsZero(BO0, *C, DL)) in getAlternateBinop()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1000 if (match(Y, m_APInt(C))) { in isDivZero()
1339 if (match(Op1, m_APInt(ShRAmt)) && in SimplifyLShrInst()
1565 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_APInt(C0)), m_APInt(C1)))) in simplifyAndOfICmpsWithAdd()
1638 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_APInt(C0)), m_APInt(C1)))) in simplifyOrOfICmpsWithAdd()
1819 if (match(Op1, m_APInt(Mask))) { in SimplifyAndInst()
1887 if (match(Op1, m_APInt(Mask)) && in SimplifyAndInst()
2504 if (match(BO.getOperand(1), m_APInt(C))) in setLimitsForBinOp()
2510 if (match(BO.getOperand(1), m_APInt(C))) in setLimitsForBinOp()
2714 if (!match(RHS, m_APInt(C))) in simplifyICmpWithConstant()
3069 if (!match(Op1, m_APInt(C))) in simplifyICmpWithAbsNabs()
[all …]
H A DDemandedBits.cpp159 } else if (match(II->getOperand(2), m_APInt(SA))) { in determineLiveOperandBits()
186 if (match(UserI->getOperand(1), m_APInt(ShiftAmtC))) { in determineLiveOperandBits()
203 if (match(UserI->getOperand(1), m_APInt(ShiftAmtC))) { in determineLiveOperandBits()
217 if (match(UserI->getOperand(1), m_APInt(ShiftAmtC))) { in determineLiveOperandBits()
H A DValueTracking.cpp1512 if (!match(I->getOperand(2), m_APInt(SA))) in computeKnownBitsFromOperator()
1614 if (match(V, m_APInt(C))) { in computeKnownBits()
2246 if (!match(RHS, m_APInt(CLow))) in isSignedMinMaxClamp()
2253 if (!match(RHS2, m_APInt(CHigh))) in isSignedMinMaxClamp()
2389 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBitsImpl()
2400 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBitsImpl()
3857 if (match(Inst->getOperand(1), m_APInt(V))) in isSafeToSpeculativelyExecute()
4736 if (!match(CmpRHS, m_APInt(C1))) in matchMinMax()
4762 match(FalseVal, m_APInt(C2)) && ~(*C1) == *C2) in matchMinMax()
4768 match(TrueVal, m_APInt(C2)) && ~(*C1) == *C2) in matchMinMax()
[all …]
H A DCmpInstAnalysis.cpp73 if (!match(RHS, m_APInt(C))) in decomposeBitTestICmp()
H A DIVDescriptors.cpp99 if (match(J, m_c_And(m_Instruction(I), m_APInt(M)))) { in lookThroughAnd()
H A DScalarEvolution.cpp5880 !match(SU->getValue(), m_Select(m_Value(Condition), m_APInt(TrueVal), in getRangeViaFactoring()
5881 m_APInt(FalseVal)))) { in getRangeViaFactoring()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp765 if (!(match(V0, m_APInt(C0)) && match(V1, m_APInt(C1)) && C0 == C1)) in AreSymmetrical()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp804 m_AShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C))) || in strengthenRightShift()
806 m_LShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C)))) { in strengthenRightShift()
H A DSimplifyCFG.cpp539 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
562 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
593 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp129 if (match(V0, m_APInt(C))) in XorOpnd()
132 if (match(V1, m_APInt(C))) { in XorOpnd()
1302 if (match(V, m_APInt(C))) { in OptimizeXor()
H A DIndVarSimplify.cpp1782 m_APInt(NarrowDefRHS))) || in calculatePostIncRange()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstantFold.cpp947 if (match(C1, m_APInt(CV)) || match(C2, m_APInt(CV))) in ConstantFoldBinaryInstruction()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DPatternMatch.h176 inline apint_match m_APInt(const APInt *&Res) { return Res; } in m_APInt() function