/external/llvm/lib/Transforms/Scalar/ |
D | NaryReassociate.cpp | 214 if (LHS->hasOneUse() && match(LHS, m_Add(m_Value(A), m_Value(B)))) { in tryReassociateAdd()
|
D | StraightLineStrengthReduce.cpp | 411 if (match(LHS, m_Add(m_Value(B), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForMul()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 1007 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 1010 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1556 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub() 1595 if (match(Op1, m_Add(m_Specific(Op0), m_Value(Y))) || in visitSub() 1596 match(Op1, m_Add(m_Value(Y), m_Specific(Op0)))) in visitSub()
|
D | InstCombineMulDivRem.cpp | 246 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul() 272 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
|
D | InstCombineCompares.cpp | 2757 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst() 3692 if (match(Op0, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op1 == X) in visitICmpInst() 3696 if (match(Op1, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op0 == X) in visitICmpInst()
|
D | InstCombineAndOrXor.cpp | 1753 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddCst))) && in FoldOrOfICmps() 1754 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddCst))) && in FoldOrOfICmps() 1856 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps()
|
D | InstCombineVectorOps.cpp | 104 if (match(V, m_Add(m_Value(Val), m_Constant(Con)))) { in FindScalarElement()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 691 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst() 713 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst() 1501 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyAndOfICmps() 1660 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyOrOfICmps() 1798 match(A, m_Add(m_Value(V1), m_Value(V2)))) { in SimplifyOrInst() 1809 match(B, m_Add(m_Value(V1), m_Value(V2)))) { in SimplifyOrInst()
|
D | LazyValueInfo.cpp | 852 match(ICI->getOperand(0), m_Add(m_Specific(Val), in getValueFromFromCondition()
|
D | ValueTracking.cpp | 1584 if (match(V, m_Add(m_Value(X), m_Value(Y)))) { in isKnownToBeAPowerOfTwo() 1790 else if (match(V, m_Add(m_Value(X), m_Value(Y)))) { in isKnownNonZero()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 434 inline BinaryOp_match<LHS, RHS, Instruction::Add> m_Add(const LHS &L, in m_Add() function 1129 auto AddExpr = m_Add(m_Value(AddLHS), m_Value(AddRHS)); in match()
|
/external/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))) &&
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 2159 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in MatchScaledValue()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 430 if(match(I->getOperand(0), m_Add(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
|