/external/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()
|
/external/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()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 779 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 782 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1105 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1135 if (match(&I, m_Add(m_UMin(m_Value(X), m_APInt(NotC)), m_APInt(C))) && in foldToUnsignedSaturatedAdd() 1339 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B)))) || in visitAdd() 1733 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub() 1789 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_AllOnes())))) in visitSub() 2058 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC))) && in visitSub()
|
D | InstCombineAndOrXor.cpp | 879 m_ICmp(Pred, m_Add(m_Value(X), m_Power2(I01)), m_Power2(I1))) && in foldSignedTruncationCheck() 1658 if (!match(Op0, m_OneUse(m_Add(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp() 1789 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC)))) { in visitAnd() 2308 if (match(LHS0, m_Add(m_Value(AddOpnd), m_ConstantInt(LAddC))) && in foldOrOfICmps() 2309 match(RHS0, m_Add(m_Specific(AddOpnd), m_ConstantInt(RAddC))) && in foldOrOfICmps() 2429 if (match(LHS0, m_Add(m_Specific(RHS0), m_ConstantInt(AddC)))) in foldOrOfICmps() 3195 if (match(Op0, m_Add(m_Value(X), m_Constant(C)))) in visitXor() 3237 if (RHSC->isSignMask() && match(Op0, m_Add(m_Value(X), m_APInt(C)))) in visitXor()
|
D | InstCombineShifts.cpp | 207 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput() 399 if (match(Op0, m_Constant()) && match(Op1, m_Add(m_Value(A), m_Constant(C)))) in commonShiftTransforms()
|
D | InstCombineCompares.cpp | 1453 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant() 3351 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())), in foldICmpWithLowBitMaskedVal() 4117 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in foldICmpBinOp() 4379 if (!match(Op0, m_OneUse(m_c_And(m_Add(m_Value(A), m_AllOnes()), in foldICmpEquality() 5479 m_Add(m_Shl(m_One(), m_Value(Y)), in foldICmpWithHighBitMask() 5796 if (match(Op0, m_Add(m_Value(X), m_APInt(C))) && Op1 == X) in visitICmpInst() 5800 if (match(Op1, m_Add(m_Value(X), m_APInt(C))) && Op0 == X) in visitICmpInst()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 987 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 990 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1523 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub() 1574 if (match(Op1, m_Add(m_Specific(Op0), m_Value(Y))) || in visitSub() 1575 match(Op1, m_Add(m_Value(Y), m_Specific(Op0)))) in visitSub()
|
/external/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 386 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd() 387 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 | 531 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
|
/external/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()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 435 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd() 436 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd()
|
D | NaryReassociate.cpp | 497 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()
|
/external/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()
|
/external/llvm/lib/Analysis/ |
D | LazyValueInfo.cpp | 978 if (match(SI->getFalseValue(), m_Add(m_Specific(A), in solveBlockValueSelect() 986 if (match(SI->getTrueValue(), m_Add(m_Specific(A), in solveBlockValueSelect() 1186 match(ICI->getOperand(0), m_Add(m_Specific(Val), in getValueFromFromCondition()
|
D | VectorUtils.cpp | 272 if (match(V, m_Add(m_Value(Val), m_Constant(Con)))) in findScalarElement()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | LazyValueInfo.cpp | 901 if (match(SI->getFalseValue(), m_Add(m_Specific(A), in solveBlockValueSelect() 909 if (match(SI->getTrueValue(), m_Add(m_Specific(A), in solveBlockValueSelect() 1086 if (match(LHS, m_Add(m_Specific(Val), m_APInt(Offset)))) in matchICmpOperand()
|
/external/llvm-project/llvm/unittests/IR/ |
D | PatternMatch.cpp | 484 EXPECT_TRUE(m_Add(m_One(), m_Zero()).match(X)); in TEST_F() 485 EXPECT_FALSE(m_Add(m_Zero(), m_One()).match(X)); in TEST_F() 487 EXPECT_FALSE(m_Unless(m_Add(m_One(), m_Zero())).match(X)); in TEST_F() 488 EXPECT_TRUE(m_Unless(m_Add(m_Zero(), m_One())).match(X)); in TEST_F()
|