/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 1286 if (match(Op1, m_SExt(m_Value())) || match(Op1, m_Not(m_Value()))) { in foldBoolSextMaskToSelect() 1299 if (match(Op0, m_Not(m_SExt(m_Value(X)))) && in foldBoolSextMaskToSelect() 1445 match(Op1, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd() 1451 match(Op0, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd() 1481 if (match(Op0, m_Or(m_Not(m_Specific(Op1)), m_Value(A))) || in visitAnd() 1482 match(Op0, m_Or(m_Value(A), m_Not(m_Specific(Op1))))) in visitAnd() 1484 if (match(Op1, m_Or(m_Not(m_Specific(Op0)), m_Value(A))) || in visitAnd() 1485 match(Op1, m_Or(m_Value(A), m_Not(m_Specific(Op0))))) in visitAnd() 1502 match(Op1, m_Xor(m_Not(m_Specific(A)), m_Specific(B)))) in visitAnd() 1506 if (match(Op0, m_Xor(m_Not(m_Value(A)), m_Value(B))) && in visitAnd() [all …]
|
D | InstCombineSelect.cpp | 719 if (match(V, m_Not(m_Value(NotV)))) { in FoldSPFofSPF() 952 if (match(TrueVal, m_Not(m_Specific(CondVal)))) in visitSelectInst() 954 if (match(FalseVal, m_Not(m_Specific(CondVal)))) in visitSelectInst() 1158 (LHS->hasNUses(2) && match(LHS, m_Not(m_Value()))) || in visitSelectInst() 1159 (RHS->hasNUses(2) && match(RHS, m_Not(m_Value()))) || in visitSelectInst() 1160 (SI.hasOneUse() && match(*SI.user_begin(), m_Not(m_Value()))); in visitSelectInst()
|
D | InstCombineAddSub.cpp | 1148 if (match(LHS, m_Not(m_Value(X)))) // ~X + C --> (C-1) - X in visitAdd() 1513 if (match(Op1, m_Not(m_Value(X)))) in visitSub()
|
D | InstCombineCompares.cpp | 4092 if (match(Op0, m_And(m_Value(A), m_Not(m_Value(B)))) && in visitICmpInst() 4101 if (match(Op0, m_Not(m_Value(A)))) { in visitICmpInst() 4102 if (match(Op1, m_Not(m_Value(B)))) in visitICmpInst()
|
D | InstCombineCasts.cpp | 958 match(SrcI, m_Not(m_Value(X))) && (!X->hasOneUse() || !isa<CmpInst>(X))) { in visitZExt()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 1148 if (match(I.getOperand(0), m_OneUse(m_Not(m_Value(A)))) && in matchDeMorgansLaws() 1149 match(I.getOperand(1), m_OneUse(m_Not(m_Value(B)))) && in matchDeMorgansLaws() 1292 m_Not(m_c_And(m_Deferred(A), m_Deferred(B)))))) in foldAndToXor() 1300 if (match(&I, m_BinOp(m_c_Or(m_Value(A), m_Not(m_Value(B))), in foldAndToXor() 1301 m_c_Or(m_Not(m_Deferred(A)), m_Deferred(B))))) in foldAndToXor() 1319 match(Op1, m_Not(m_c_Or(m_Specific(A), m_Specific(B))))) in foldOrToXor() 1326 if (match(Op0, m_c_And(m_Value(A), m_Not(m_Value(B)))) && in foldOrToXor() 1327 match(Op1, m_c_And(m_Not(m_Specific(A)), m_Specific(B)))) in foldOrToXor() 1577 if (match(Op1, m_c_Xor(m_Not(m_Value(A)), m_Value(B))) && in visitAnd() 1585 if (match(Op0, m_c_Xor(m_Not(m_Value(A)), m_Value(B))) && in visitAnd() [all …]
|
D | InstCombineAddSub.cpp | 942 if (match(Op0, m_Not(m_Value(X)))) in foldAddWithConstant() 1225 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B))))) in visitAdd() 1614 if (match(Op0, m_Not(m_Value(X))) && match(Op1, m_Not(m_Value(Y)))) in visitSub() 1644 if (match(Op1, m_Not(m_Value(X)))) in visitSub()
|
D | InstCombineSelect.cpp | 1111 if (match(V, m_Not(m_Value(NotV)))) { in foldSPFofSPF() 1582 if (match(TrueVal, m_Not(m_Specific(CondVal)))) in visitSelectInst() 1584 if (match(FalseVal, m_Not(m_Specific(CondVal)))) in visitSelectInst() 1802 if (match(LHS, m_Not(m_Value(A))) && match(RHS, m_Not(m_Value(B))) && in visitSelectInst()
|
D | InstCombineCompares.cpp | 4806 if (match(Op0, m_And(m_Value(A), m_Not(m_Value(B)))) && in visitICmpInst() 4814 if (match(Op0, m_Not(m_Value(A)))) { in visitICmpInst() 4815 if (match(Op1, m_Not(m_Value(B)))) in visitICmpInst()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 1167 match(Op1, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd() 1173 match(Op0, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd() 1205 if (match(Op0, m_Or(m_Not(m_Specific(Op1)), m_Value(A))) || in visitAnd() 1206 match(Op0, m_Or(m_Value(A), m_Not(m_Specific(Op1))))) in visitAnd() 1208 if (match(Op1, m_Or(m_Not(m_Specific(Op0)), m_Value(A))) || in visitAnd() 1209 match(Op1, m_Or(m_Value(A), m_Not(m_Specific(Op0))))) in visitAnd() 1445 if (match(D, m_Not(m_SExt(m_Specific(Cond))))) in MatchSelectFromAndOr() 1447 if (match(D, m_SExt(m_Not(m_Specific(Cond))))) in MatchSelectFromAndOr() 1451 if (match(B, m_Not(m_SExt(m_Specific(Cond))))) in MatchSelectFromAndOr() 1453 if (match(B, m_SExt(m_Not(m_Specific(Cond))))) in MatchSelectFromAndOr() [all …]
|
D | InstCombineAddSub.cpp | 232 if (match(LHS, m_Not(m_Value(X)))) // ~X + C --> (C-1) - X in visitAdd() 558 if (match(Op1, m_Not(m_Value(X)))) in visitSub()
|
D | InstCombineCompares.cpp | 2446 if (match(Op0, m_Not(m_Value(A)))) { in visitICmpInst() 2447 if (match(Op1, m_Not(m_Value(B)))) in visitICmpInst()
|
D | InstCombineCasts.cpp | 879 match(SrcI, m_Not(m_Value(X))) && in visitZExt()
|
D | InstructionCombining.cpp | 1189 if (match(&BI, m_Br(m_Not(m_Value(X)), TrueDest, FalseDest)) && in visitBranchInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | AssumptionCache.cpp | 72 match(I, m_Not(m_Value(Op)))) { in updateAffectedValues() 91 if (match(V, m_Not(m_Value(A)))) { in updateAffectedValues()
|
D | ValueTracking.cpp | 195 if (match(LHS, m_c_And(m_Not(m_Value(M)), m_Value())) && in haveNoCommonBitsSet() 198 if (match(RHS, m_c_And(m_Not(m_Value(M)), m_Value())) && in haveNoCommonBitsSet() 600 if (match(Arg, m_Not(m_Specific(V))) && in computeKnownBitsFromAssume() 640 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_c_And(m_V, m_Value(B))), in computeKnownBitsFromAssume() 668 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_c_Or(m_V, m_Value(B))), in computeKnownBitsFromAssume() 699 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_c_Xor(m_V, m_Value(B))), in computeKnownBitsFromAssume() 730 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_Shl(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume() 757 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_Shr(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume() 4414 if ((CmpLHS == A && CmpRHS == C) || (match(C, m_Not(m_Specific(CmpLHS))) && in matchMinMaxOfMinMax() 4415 match(A, m_Not(m_Specific(CmpRHS))))) in matchMinMaxOfMinMax() [all …]
|
D | InstructionSimplify.cpp | 599 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyAddInst() 600 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyAddInst() 1793 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyAndInst() 1794 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyAndInst() 1926 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyOrInst() 1927 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyOrInst() 1939 if (match(Op0, m_Not(m_c_And(m_Specific(Op1), m_Value())))) in SimplifyOrInst() 1943 if (match(Op1, m_Not(m_c_And(m_Specific(Op1), m_Value())))) in SimplifyOrInst() 1952 (match(Op0, m_c_And(m_Specific(A), m_Not(m_Specific(B)))) || in SimplifyOrInst() 1953 match(Op0, m_c_And(m_Not(m_Specific(A)), m_Specific(B))))) in SimplifyOrInst() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 573 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyAddInst() 574 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyAddInst() 1185 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyAndInst() 1186 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyAndInst() 1274 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyOrInst() 1275 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyOrInst() 1290 if (match(Op0, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst() 1295 if (match(Op1, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst() 1364 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyXorInst() 1365 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyXorInst()
|
/external/llvm/lib/Transforms/Scalar/ |
D | StructurizeCFG.cpp | 390 if (match(Condition, m_Not(m_Value(Condition)))) in invert() 398 if (I->getParent() == Parent && match(I, m_Not(m_Specific(Condition)))) in invert()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | StructurizeCFG.cpp | 405 if (match(Condition, m_Not(m_Value(NotCondition)))) in invert() 413 if (I->getParent() == Parent && match(I, m_Not(m_Specific(Condition)))) in invert()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 556 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyAddInst() 557 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyAddInst() 1590 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyAndInst() 1591 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyAndInst() 1764 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyOrInst() 1765 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyOrInst() 1780 if (match(Op0, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst() 1785 if (match(Op1, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst() 1893 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyXorInst() 1894 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyXorInst()
|
D | ValueTracking.cpp | 587 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_c_And(m_V, m_Value(B))), in computeKnownBitsFromAssume() 615 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_c_Or(m_V, m_Value(B))), in computeKnownBitsFromAssume() 646 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_c_Xor(m_V, m_Value(B))), in computeKnownBitsFromAssume() 674 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_Shl(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume() 698 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_CombineOr( in computeKnownBitsFromAssume() 3825 (match(TrueVal, m_Not(m_Specific(CmpLHS))) || in matchSelectPattern() 3826 match(CmpLHS, m_Not(m_Specific(TrueVal))))) { in matchSelectPattern()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PatternMatch.h | 607 inline not_match<LHS> m_Not(const LHS &L) { return L; } in m_Not() function
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 854 template <typename LHS> inline not_match<LHS> m_Not(const LHS &L) { return L; } in m_Not() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 1691 m_Not(const ValTy &V) {
|