Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1007 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()
1543 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub()
1594 if (match(Op1, m_Add(m_Specific(Op0), m_Value(Y))) || in visitSub()
1595 match(Op1, m_Add(m_Value(Y), m_Specific(Op0)))) in visitSub()
DInstCombineMulDivRem.cpp257 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul()
283 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
DInstCombineCompares.cpp2851 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst()
3618 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in visitICmpInst()
3827 if (match(Op0, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op1 == X) in visitICmpInst()
3831 if (match(Op1, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op0 == X) in visitICmpInst()
DInstCombineAndOrXor.cpp1842 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddCst))) && in FoldOrOfICmps()
1843 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddCst))) && in FoldOrOfICmps()
1945 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp415 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd()
416 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd()
DNaryReassociate.cpp532 return match(V, m_Add(m_Value(Op1), m_Value(Op2))); in matchTernaryOp()
DSeparateConstOffsetFromGEP.cpp1123 if (match(I, m_Add(m_SExt(m_Value(LHS)), m_SExt(m_Value(RHS)))) || in reuniteExts()
/external/llvm/lib/Analysis/
DVectorUtils.cpp405 if (match(V, m_Add(m_Value(Val), m_Constant(Con)))) in findScalarElement()
DInstructionSimplify.cpp690 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst()
712 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst()
1515 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyAndOfICmps()
1674 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyOrOfICmps()
1812 match(A, m_Add(m_Value(V1), m_Value(V2)))) { in SimplifyOrInst()
1823 match(B, m_Add(m_Value(V1), m_Value(V2)))) { in SimplifyOrInst()
DValueTracking.cpp1087 if (match(I->getOperand(0), m_Add(m_Specific(I->getOperand(1)), in computeKnownBitsFromOperator()
1089 match(I->getOperand(1), m_Add(m_Specific(I->getOperand(0)), in computeKnownBitsFromOperator()
1771 if (match(V, m_Add(m_Value(X), m_Value(Y)))) { in isKnownToBeAPowerOfTwo()
1994 else if (match(V, m_Add(m_Value(X), m_Value(Y)))) { in isKnownNonZero()
DLazyValueInfo.cpp913 match(ICI->getOperand(0), m_Add(m_Specific(Val), in getValueFromFromCondition()
/external/llvm/include/llvm/IR/
DPatternMatch.h434 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/
DREADME.txt2139 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/
DCodeGenPrepare.cpp2641 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in matchScaledValue()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp455 if(match(I->getOperand(0), m_Add(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()