Home
last modified time | relevance | path

Searched refs:m_Add (Results 1 – 25 of 63) sorted by relevance

123

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVETailPredication.cpp240 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/
DInstCombineAddSub.cpp782 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()
DInstCombineAndOrXor.cpp939 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()
DInstCombineShifts.cpp206 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()
DInstCombineSelect.cpp715 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()
DInstCombineCompares.cpp1450 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/
DInstCombineAddSub.cpp779 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()
DInstCombineAndOrXor.cpp879 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()
DInstCombineShifts.cpp207 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()
DInstCombineCompares.cpp1453 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/
DInstCombineAddSub.cpp987 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/
DStraightLineStrengthReduce.cpp386 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()
DNaryReassociate.cpp501 return match(V, m_Add(m_Value(Op1), m_Value(Op2))); in matchTernaryOp()
DGuardWidening.cpp531 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/
DStraightLineStrengthReduce.cpp422 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()
DNaryReassociate.cpp501 return match(V, m_Add(m_Value(Op1), m_Value(Op2))); in matchTernaryOp()
DGuardWidening.cpp631 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp435 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()
DNaryReassociate.cpp497 return match(V, m_Add(m_Value(Op1), m_Value(Op2))); in matchTernaryOp()
DGuardWidening.cpp631 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLazyValueInfo.cpp974 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/
DLazyValueInfo.cpp978 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()
DVectorUtils.cpp272 if (match(V, m_Add(m_Value(Val), m_Constant(Con)))) in findScalarElement()
/external/llvm-project/llvm/lib/Analysis/
DLazyValueInfo.cpp901 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/
DPatternMatch.cpp484 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()

123