Searched refs:m_Neg (Results 1 – 16 of 16) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 647 if (match(Op1, m_Mul(m_Value(A), m_Neg(m_Value(B)))) || in visitSub() 648 match(Op1, m_Mul(m_Neg(m_Value(A)), m_Value(B)))) in visitSub()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 1207 if (match(LHS, m_Neg(m_Value(A)))) { in visitAdd() 1209 if (match(RHS, m_Neg(m_Value(B)))) in visitAdd() 1217 if (match(RHS, m_Neg(m_Value(B)))) in visitAdd() 1775 if (match(Op1, m_c_Mul(m_Value(A), m_Neg(m_Value(B))))) in visitSub()
|
D | InstCombineMulDivRem.cpp | 235 if (match(Op0, m_Neg(m_Value(X))) && match(Op1, m_Constant(Op1C))) in visitMul() 239 if (match(Op0, m_Neg(m_Value(X))) && match(Op1, m_Neg(m_Value(Y)))) { in visitMul()
|
D | InstCombineSelect.cpp | 854 bool CmpUsesNegatedOp = match(Cmp.getOperand(0), m_Neg(m_Specific(TVal))) || in canonicalizeAbsNabs() 855 match(Cmp.getOperand(0), m_Neg(m_Specific(FVal))); in canonicalizeAbsNabs() 860 bool RHSCanonicalized = match(RHS, m_Neg(m_Specific(LHS))); in canonicalizeAbsNabs()
|
D | InstructionCombining.cpp | 1744 if (match(V, m_Neg(m_PtrToInt(m_Value())))) { in visitGetElementPtrInst()
|
D | InstCombineCompares.cpp | 3239 if (match(BO0, m_Neg(m_Value(X)))) in foldICmpBinOp()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 877 template <typename LHS> inline neg_match<LHS> m_Neg(const LHS &L) { return L; } in m_Neg() function 1298 auto RHS = m_LShr(m_Neg(m_Value(OpR)), m_SpecificInt(ShiftWidth));
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 1631 if (match(Op1, m_Mul(m_Value(A), m_Neg(m_Value(B)))) || in visitSub() 1632 match(Op1, m_Mul(m_Neg(m_Value(A)), m_Value(B)))) in visitSub()
|
D | InstructionCombining.cpp | 1589 if (match(V, m_Neg(m_PtrToInt(m_Value())))) { in visitGetElementPtrInst()
|
D | InstCombineCompares.cpp | 3965 if (match(BO0, m_Neg(m_Value(X)))) in visitICmpInst()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 1539 if (match(X, m_Neg(m_Specific(Y))) || match(Y, m_Neg(m_Specific(X)))) in isKnownToBeAPowerOfTwo() 3805 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) || in matchSelectPattern() 3806 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) { in matchSelectPattern()
|
D | InstructionSimplify.cpp | 1606 if (match(Op0, m_Neg(m_Specific(Op1))) || in SimplifyAndInst() 1607 match(Op1, m_Neg(m_Specific(Op0)))) { in SimplifyAndInst() 2741 if (!CmpInst::isUnsigned(Pred) && match(LHS, m_Neg(m_ZExt(m_Value())))) { in SimplifyICmpInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 1684 m_Neg(const ValTy &V) { 1757 auto RHS = m_LShr(m_Neg(m_Value(OpR)), m_SpecificInt(ShiftWidth));
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PatternMatch.h | 636 inline neg_match<LHS> m_Neg(const LHS &L) { return L; } in m_Neg() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 1716 if (match(X, m_Neg(m_Specific(Y))) || match(Y, m_Neg(m_Specific(X)))) in isKnownToBeAPowerOfTwo() 4649 if (match(CmpLHS, m_Neg(m_Specific(FalseVal)))) in matchSelectPattern() 4667 if (match(CmpLHS, m_Neg(m_Specific(TrueVal)))) in matchSelectPattern()
|
D | InstructionSimplify.cpp | 1824 if (match(Op0, m_Neg(m_Specific(Op1))) || in SimplifyAndInst() 1825 match(Op1, m_Neg(m_Specific(Op0)))) { in SimplifyAndInst() 2797 if (!CmpInst::isUnsigned(Pred) && match(LHS, m_Neg(m_ZExt(m_Value())))) { in simplifyICmpWithBinOp()
|