| /src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| InstCombineAddSub.cpp | 785 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) 788 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { 791 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { 794 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { 808 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) 814 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) 816 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { 836 if (match(Op1, m_APInt(C1)) && 837 match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_APInt(C2))))) && 901 if (!match(Op1, m_APInt(C)) [all...] |
| InstCombineShifts.cpp | 438 if (!match(InnerShift->getOperand(1), m_APInt(InnerShiftConst))) 540 match(InnerShift->getOperand(1), m_APInt(C1)); 667 if (!match(Op1, m_APInt(Op1C))) 702 match(TI->getOperand(0), m_Shift(m_Value(), m_APInt(TrShiftAmt)))) { 762 m_APInt(CC)))) { 794 m_APInt(CC)))) { 811 if (match(Op0BO->getOperand(1), m_APInt(Op0C))) { 829 match(Op0BO->getOperand(0), m_APInt(Op0C))) { 855 match(TBO->getOperand(1), m_APInt(C)) && 874 match(FBO->getOperand(1), m_APInt(C)) & [all...] |
| InstCombineSimplifyDemanded.cpp | 38 if (!match(Op, m_APInt(C))) 277 if (match(I->getOperand(1), m_APInt(C)) && !C->isAllOnesValue()) { 322 if (match(RHS, m_APInt(C)) && CTZ >= C->getActiveBits()) 331 if (match(RHS, m_APInt(C)) && 355 if (!match(I->getOperand(OpNo), m_APInt(SelC))) 365 if (!match(I->getOperand(0), m_ICmp(Pred, m_Value(X), m_APInt(CmpC))) || 532 if (match(I->getOperand(1), m_APInt(SA))) { 534 if (match(I->getOperand(0), m_Shr(m_Value(), m_APInt(ShrAmt)))) 590 if (match(I->getOperand(1), m_APInt(SA))) { 631 if (match(I->getOperand(1), m_APInt(SA))) [all...] |
| InstCombineSelect.cpp | 128 if (!match(Sel.getTrueValue(), m_APInt(SelTC)) || 129 !match(Sel.getFalseValue(), m_APInt(SelFC))) 452 bool OOpIsAPInt = match(OOp, m_APInt(OOpC)); 484 bool OOpIsAPInt = match(OOp, m_APInt(OOpC)); 698 if (match(T, m_And(m_Value(X), m_APInt(NotC))) && 699 match(F, m_OneUse(m_Or(m_Specific(X), m_APInt(C)))) && *NotC == ~(*C)) { 707 if (match(F, m_And(m_Value(X), m_APInt(NotC))) && 708 match(T, m_OneUse(m_Or(m_Specific(X), m_APInt(C)))) && *NotC == ~(*C)) { 755 (match(A, m_APInt(C)) && 759 !(match(B, m_APInt(C)) & [all...] |
| InstCombineMulDivRem.cpp | 174 match(C1, m_APInt(IVal))) { 196 if (match(NewCst, m_APInt(V)) && *V != V->getBitWidth() - 1) 360 if (match(Op0, m_LShr(m_Value(X), m_APInt(C))) && *C == C->getBitWidth() - 1) 362 if (match(Op1, m_LShr(m_Value(X), m_APInt(C))) && *C == C->getBitWidth() - 1) 738 if (match(Op1, m_APInt(C2))) { 743 if ((IsSigned && match(Op0, m_SDiv(m_Value(X), m_APInt(C1)))) || 744 (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_APInt(C1))))) { 751 if ((IsSigned && match(Op0, m_NSWMul(m_Value(X), m_APInt(C1)))) || 752 (!IsSigned && match(Op0, m_NUWMul(m_Value(X), m_APInt(C1))))) { 774 if ((IsSigned && match(Op0, m_NSWShl(m_Value(X), m_APInt(C1))) & [all...] |
| InstCombineCompares.cpp | 1472 if (match(DomCond, m_ICmp(DomPred, m_Specific(X), m_APInt(DomC))) && 1473 match(Y, m_APInt(C))) { 1555 match(X, m_Shr(m_Value(ShOp), m_APInt(ShAmtC))) && 1574 if (!match(Y, m_APInt(XorC))) 1651 if (match(Shift->getOperand(1), m_APInt(C3))) { 1735 if (!match(And, m_And(m_Value(X), m_APInt(C2)))) 1866 if (And->hasOneUse() && C.isNullValue() && match(Y, m_APInt(C2))) { 1897 if (match(OrOp1, m_APInt(MaskC)) && Cmp.isEquality()) { 1953 if (!match(Mul->getOperand(1), m_APInt(MulC))) 2051 if (Cmp.isEquality() && match(Shl->getOperand(0), m_APInt(ShiftVal)) [all...] |
| InstCombineAndOrXor.cpp | 103 } else if (match(OldRHS, m_APInt(C))) { 751 if (!match(LHS->getOperand(1), m_APInt(C1)) || 752 !match(RHS->getOperand(1), m_APInt(C2))) 912 if (match(ICmp, m_ICmp(Pred, m_And(m_Value(X), m_APInt(Mask)), m_Zero())) && 1096 if (match(X, m_OneUse(m_LShr(m_Value(Y), m_APInt(Shift)))) && 1825 if (match(Op1, m_APInt(C))) { 1827 if (match(Op0, m_OneUse(m_Xor(m_Value(X), m_APInt(XorC))))) { 1836 if (match(Op0, m_OneUse(m_Or(m_Value(X), m_APInt(OrC))))) { 1870 if (match(Op0, m_OneUse(m_SExt(m_AShr(m_Value(X), m_APInt(ShiftC)))))) { 1881 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC)))) [all...] |
| InstCombineCalls.cpp | 744 if (!match(I1, m_APInt(C1)) || !I0->hasOneUse()) 750 if (match(I0, m_SMin(m_Value(X), m_APInt(C0))) && *C0 == *C1 + 1) 754 if (match(I0, m_SMax(m_Value(X), m_APInt(C0))) && *C1 == *C0 + 1) 758 if (match(I0, m_UMin(m_Value(X), m_APInt(C0))) && *C0 == *C1 + 1) 762 if (match(I0, m_UMax(m_Value(X), m_APInt(C0))) && *C1 == *C0 + 1) 933 if (match(IIOperand, m_SRem(m_Value(X), m_APInt(C))) && *C == 2) 1158 bool HasNWAdd = IsSigned ? match(Arg0, m_NSWAdd(m_Value(X), m_APInt(C0))) 1159 : match(Arg0, m_NUWAdd(m_Value(X), m_APInt(C0))); 1160 if (HasNWAdd && match(Arg1, m_APInt(C1))) { 1254 match(Arg1, m_APInt(Val)) & [all...] |
| InstCombineNegator.cpp | 192 if (match(I->getOperand(1), m_APInt(Op1Val)) && *Op1Val == BitWidth - 1) {
|
| InstCombineCasts.cpp | 944 if (match(Cmp->getOperand(1), m_APInt(Op1CV))) { 1126 if (match(I->getOperand(1), m_APInt(Amt))) { 1139 if (match(I->getOperand(1), m_APInt(Amt))) {
|
| InstructionCombining.cpp | 269 if (!match(B, m_APInt(BVal)) || !match(C, m_APInt(CVal))) 684 if (match(V, m_APInt(CInt))) {
|
| /src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| ValueTracking.cpp | 580 if (!match(RHS, m_APInt(C))) 1216 if (match(I->getOperand(0), m_APInt(C))) 1228 if (match(I->getOperand(0), m_APInt(C))) 1571 if (!match(I->getOperand(2), m_APInt(SA))) 1837 if (match(V, m_APInt(C))) { 2209 !match(Start, m_APInt(StartC)) || StartC->isNullValue()) 2217 (BO->hasNoSignedWrap() && match(Step, m_APInt(StepC)) && 2221 match(Step, m_APInt(StepC)) && !StepC->isNullValue(); 2653 return match(OBO, m_Mul(m_Specific(V1), m_APInt(C))) && 2667 return match(OBO, m_Shl(m_Specific(V1), m_APInt(C))) & [all...] |
| CmpInstAnalysis.cpp | 72 if (!match(RHS, m_APInt(C)))
|
| DemandedBits.cpp | 159 } else if (match(II->getOperand(2), m_APInt(SA))) { 209 if (match(UserI->getOperand(1), m_APInt(ShiftAmtC))) { 226 if (match(UserI->getOperand(1), m_APInt(ShiftAmtC))) { 240 if (match(UserI->getOperand(1), m_APInt(ShiftAmtC))) {
|
| InstructionSimplify.cpp | 1010 if (match(X, m_APInt(C)) && !C->isMinSignedValue()) { 1020 if (match(Y, m_APInt(C))) { 1378 if (match(Op1, m_APInt(ShRAmt)) && 1379 match(Op0, m_c_Or(m_NUWShl(m_Value(X), m_APInt(ShLAmt)), m_Value(Y))) && 1598 if (!match(Cmp0->getOperand(1), m_APInt(C0)) || 1599 !match(Cmp1->getOperand(1), m_APInt(C1))) 1671 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_APInt(C0)), m_APInt(C1)))) 1737 if (match(Cmp0->getOperand(1), m_APInt(C))) 1807 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_APInt(C0)), m_APInt(C1))) [all...] |
| LazyValueInfo.cpp | 1035 if (match(LHS, m_Add(m_Specific(Val), m_APInt(C)))) { 1042 if (match(Val, m_Add(m_Specific(LHS), m_APInt(C)))) { 1107 if (match(LHS, m_And(m_Specific(Val), m_APInt(Mask))) && 1108 match(RHS, m_APInt(C))) { 1140 if (WO->getLHS() != Val || !match(WO->getRHS(), m_APInt(C)))
|
| IVDescriptors.cpp | 100 if (match(J, m_c_And(m_Instruction(I), m_APInt(M)))) {
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/AggressiveInstCombine/ |
| AggressiveInstCombine.cpp | 241 if (!match(V, m_LShr(m_Value(Candidate), m_APInt(BitIndex))))
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| Reassociate.cpp | 130 if (match(V0, m_APInt(C))) 133 if (match(V1, m_APInt(C))) { 1428 if (match(V, m_APInt(C))) {
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| SimplifyIndVar.cpp | 802 m_AShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C))) || 804 m_LShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C)))) { 1988 m_APInt(NarrowDefRHS))) ||
|
| Local.cpp | 2936 if (match(V, m_LogicalShift(m_Value(X), m_APInt(C)))) { 2968 if (match(V, m_And(m_Value(X), m_APInt(C)))) { 3055 if (match(V, m_FShl(m_Value(X), m_Value(Y), m_APInt(C))) || 3056 match(V, m_FShr(m_Value(X), m_Value(Y), m_APInt(C)))) {
|
| SimplifyLibCalls.cpp | 191 if (match(Size, m_Select(m_Value(), m_APInt(X), m_APInt(Y)))) {
|
| SimplifyCFG.cpp | 576 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { 599 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { 630 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) {
|
| /src/external/apache2/llvm/dist/llvm/lib/IR/ |
| ConstantFold.cpp | 1167 if (match(C1, m_APInt(CV)) || match(C2, m_APInt(CV)))
|
| Constants.cpp | 2774 if (match(C, m_APInt(IVal)) && IVal->isPowerOf2()) 2792 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2())
|