/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | MVETailPredication.cpp | 240 if (!match(BECount, m_Add(m_Value(TripCount), m_AllOnes()))) in isTailPredicate() 250 if (!match(Induction, m_Add(m_Instruction(BroadcastSplat), in isTailPredicate() 287 if (!match(InLoop, m_Add(m_Instruction(LHS), m_SpecificInt(Lanes)))) in isTailPredicate()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 782 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 785 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1067 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1097 if (match(&I, m_Add(m_UMin(m_Value(X), m_APInt(NotC)), m_APInt(C))) && in foldToUnsignedSaturatedAdd() 1306 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B)))) || in visitAdd() 1661 match(Result, m_Add(m_Instruction(I), m_Zero())) && in OptimizePointerDifference() 1723 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_AllOnes())))) in visitSub() 1727 if (match(Op1, m_OneUse(m_Add(m_Value(X), m_One())))) in visitSub() 1775 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub()
|
D | InstCombineAndOrXor.cpp | 939 m_ICmp(Pred, m_Add(m_Value(X), m_Power2(I01)), m_Power2(I1))) && in foldSignedTruncationCheck() 1689 if (!match(Op0, m_OneUse(m_Add(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp() 2222 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddC))) && in foldOrOfICmps() 2223 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddC))) && in foldOrOfICmps() 2339 if (match(LHS0, m_Add(m_Specific(RHS0), m_ConstantInt(AddC)))) in foldOrOfICmps() 3070 if (match(Op0, m_Add(m_Value(X), m_Constant(C)))) in visitXor() 3107 if (RHSC->isSignMask() && match(Op0, m_Add(m_Value(X), m_APInt(C)))) { in visitXor()
|
D | InstCombineShifts.cpp | 206 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput() 396 if (match(Op0, m_Constant()) && match(Op1, m_Add(m_Value(A), m_Constant(C)))) in commonShiftTransforms()
|
D | InstCombineSelect.cpp | 715 match(TrueVal, m_Add(m_Specific(B), m_SpecificInt(-*C))))) in canonicalizeSaturatedSubtract() 719 match(TrueVal, m_Add(m_Specific(A), m_SpecificInt(-*C))))) in canonicalizeSaturatedSubtract() 747 match(TVal, m_Add(m_Value(X), m_APInt(C))) && X == Cmp0 && in canonicalizeSaturatedAdd() 1246 m_Add(m_Specific(X), in canonicalizeClampLike()
|
D | InstCombineCompares.cpp | 1450 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant() 3284 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())), in foldICmpWithLowBitMaskedVal() 4045 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in foldICmpBinOp() 4309 if (!match(Op0, m_OneUse(m_c_And(m_Add(m_Value(A), m_AllOnes()), in foldICmpEquality() 5376 m_Add(m_Shl(m_One(), m_Value(Y)), in foldICmpWithHighBitMask() 5665 if (match(Op0, m_Add(m_Value(X), m_APInt(C))) && Op1 == X) in visitICmpInst() 5669 if (match(Op1, m_Add(m_Value(X), m_APInt(C))) && Op0 == X) in visitICmpInst()
|
D | InstCombineMulDivRem.cpp | 246 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul() 268 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
|
D | InstructionCombining.cpp | 2646 if (match(Cond, m_Add(m_Value(Op0), m_ConstantInt(AddRHS)))) { in visitSwitchInst()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 422 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd() 423 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd()
|
D | NaryReassociate.cpp | 501 return match(V, m_Add(m_Value(Op1), m_Value(Op2))); in matchTernaryOp()
|
D | GuardWidening.cpp | 631 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
|
D | SeparateConstOffsetFromGEP.cpp | 1172 if (match(I, m_Add(m_SExt(m_Value(LHS)), m_SExt(m_Value(RHS)))) || in reuniteExts()
|
D | JumpThreading.cpp | 858 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) { in ComputeValueKnownInPredecessorsImpl()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | LazyValueInfo.cpp | 974 if (match(SI->getFalseValue(), m_Add(m_Specific(A), in solveBlockValueSelect() 982 if (match(SI->getTrueValue(), m_Add(m_Specific(A), in solveBlockValueSelect() 1223 if (LHS != Val && !match(LHS, m_Add(m_Specific(Val), m_ConstantInt()))) { in getValueFromICmpCondition() 1230 match(LHS, m_Add(m_Specific(Val), m_ConstantInt(Offset))); in getValueFromICmpCondition()
|
D | InstructionSimplify.cpp | 776 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst() 798 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst() 1657 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_APInt(C0)), m_APInt(C1)))) in simplifyAndOfICmpsWithAdd() 1730 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_APInt(C0)), m_APInt(C1)))) in simplifyOrOfICmpsWithAdd() 2018 if (match(Op0, m_Add(m_Specific(Op1), m_AllOnes())) && in SimplifyAndInst() 2021 if (match(Op1, m_Add(m_Specific(Op0), m_AllOnes())) && in SimplifyAndInst()
|
D | VectorUtils.cpp | 301 if (match(V, m_Add(m_Value(Val), m_Constant(C)))) in findScalarElement()
|
D | ValueTracking.cpp | 1075 match(I, m_c_BinOp(m_Value(X), m_Add(m_Deferred(X), m_Value(Y))))) { in computeKnownBitsFromOperator() 1880 if (match(V, m_Add(m_Value(X), m_Value(Y)))) { in isKnownToBeAPowerOfTwo() 2266 else if (match(V, m_Add(m_Value(X), m_Value(Y)))) { in isKnownNonZero()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 784 inline BinaryOp_match<LHS, RHS, Instruction::Add> m_Add(const LHS &L, in m_Add() function 1658 auto AddExpr = m_Add(m_Value(AddLHS), m_Value(AddRHS)); in match()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1258 if (match(U, m_Add(m_Specific(A), m_Specific(B)))) { in matchUAddWithOverflowConstantEdgeCases() 1334 if (match(U, m_Add(m_Specific(A), m_APInt(AddC))) && in combineToUSubWithOverflow() 3628 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in matchScaledValue()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ |
D | README.txt | 2139 if (match(Op0, m_Add(m_Value(A), m_Value(B))) && 2140 match(Op1, m_Add(m_Value(C), m_Value(D))) &&
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 602 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
|