/external/llvm/unittests/IR/ |
D | PatternMatch.cpp | 61 EXPECT_TRUE(m_OneUse(m_Value(V)).match(One)); in TEST_F() 64 EXPECT_FALSE(m_OneUse(m_Value()).match(Two)); in TEST_F() 65 EXPECT_FALSE(m_OneUse(m_Value()).match(Leaf)); in TEST_F() 75 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 81 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 87 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 91 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 95 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 101 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 114 EXPECT_TRUE(m_OrdFMax(m_Value(MatchL), m_Value(MatchR)) in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | PatternMatch.cpp | 61 EXPECT_TRUE(m_OneUse(m_Value(V)).match(One)); in TEST_F() 64 EXPECT_FALSE(m_OneUse(m_Value()).match(Two)); in TEST_F() 65 EXPECT_FALSE(m_OneUse(m_Value()).match(Leaf)); in TEST_F() 95 EXPECT_TRUE(match(IRB.CreateAnd(X, X), m_And(m_Value(tX), m_Deferred(tX)))); in TEST_F() 101 match(IRB.CreateAnd(X, Y), m_c_And(m_Value(tX), m_Deferred(tX)))); in TEST_F() 107 Pattern, m_c_And(m_Value(tX), m_c_And(m_Deferred(tX), m_Value(tY))))); in TEST_F() 125 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 131 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 137 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 141 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 91 if (!match(OldLHS, m_BSwap(m_Value(NewLHS)))) in SimplifyBSwap() 97 if (match(OldRHS, m_BSwap(m_Value(NewRHS)))) { in SimplifyBSwap() 338 if (!match(L1, m_And(m_Value(L11), m_Value(L12)))) { in getMaskedTypeForICmpPair() 345 if (!match(L2, m_And(m_Value(L21), m_Value(L22)))) { in getMaskedTypeForICmpPair() 373 if (!match(R1, m_And(m_Value(R11), m_Value(R12)))) { in getMaskedTypeForICmpPair() 399 if (!match(R2, m_And(m_Value(R11), m_Value(R12)))) { in getMaskedTypeForICmpPair() 881 if (match(LHS->getOperand(0), m_And(m_Value(A), m_Value(B))) && in foldAndOrOfICmpsOfAndWithPow2() 882 match(RHS->getOperand(0), m_And(m_Value(C), m_Value(D)))) { in foldAndOrOfICmpsOfAndWithPow2() 968 if (match(RHS0, m_Trunc(m_Value(V))) && in foldAndOfICmps() 972 } else if (match(LHS0, m_Trunc(m_Value(V))) && in foldAndOfICmps() [all …]
|
D | InstCombineMulDivRem.cpp | 62 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero() 156 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul() 171 if (match(&I, m_Mul(m_Value(NewOp), m_Constant(C1)))) { in visitMul() 202 if (match(Op0, m_Sub(m_Value(Y), m_Value(X)))) in visitMul() 204 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul() 223 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul() 227 if (!match(Mul, m_Mul(m_Value(), m_Value()))) in visitMul() 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() 291 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul() [all …]
|
D | InstCombineAddSub.cpp | 877 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 880 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 882 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand() 885 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand() 888 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand() 891 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand() 905 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand() 911 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand() 913 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand() 932 if (match(Op0, m_OneUse(m_Sub(m_Value(X), m_Value(Y)))) && in foldAddWithConstant() [all …]
|
D | InstCombineShifts.cpp | 46 if (match(Op0, m_Constant()) && match(Op1, m_Add(m_Value(A), m_Constant(C)))) in commonShiftTransforms() 56 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms() 136 if ((IsLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in canEvaluateShifted() 137 (!IsLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in canEvaluateShifted() 437 match(Op0BO->getOperand(1), m_Shr(m_Value(V1), in FoldShiftByConstant() 457 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant() 472 match(Op0BO->getOperand(0), m_Shr(m_Value(V1), in FoldShiftByConstant() 491 m_And(m_OneUse(m_Shr(m_Value(V1), m_Value(V2))), in FoldShiftByConstant() 550 if (match(Op0, m_Select(m_Value(Cond), m_OneUse(m_BinOp(TBO)), in FoldShiftByConstant() 551 m_Value(FalseVal)))) { in FoldShiftByConstant() [all …]
|
D | InstCombineCompares.cpp | 1361 match(X, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant() 1427 if (Pred == ICmpInst::ICMP_SLT && match(X, m_Signum(m_Value(V)))) in foldICmpTruncConstant() 1617 if (match(And->getOperand(0), m_OneUse(m_Trunc(m_Value(W)))) && in foldICmpAndConstConst() 1644 if (match(Or, m_Or(m_Value(LShr), m_Value(A))) && in foldICmpAndConstConst() 1645 match(LShr, m_LShr(m_Specific(A), m_Value(B)))) { in foldICmpAndConstConst() 1737 if (Pred == ICmpInst::ICMP_SLT && match(Or, m_Signum(m_Value(V)))) in foldICmpOrConstant() 1755 if (match(Or, m_Or(m_PtrToInt(m_Value(P)), m_PtrToInt(m_Value(Q))))) { in foldICmpOrConstant() 1769 if (match(Or->getOperand(0), m_OneUse(m_Xor(m_Value(X1), m_Value(X2)))) && in foldICmpOrConstant() 1770 match(Or->getOperand(1), m_OneUse(m_Xor(m_Value(X3), m_Value(X4))))) { in foldICmpOrConstant() 1807 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 604 } else if (!match(L1, m_And(m_Value(L11), m_Value(L12)))) { in foldLogOpOfMaskedICmpsHelper() 614 } else if (!match(L2, m_And(m_Value(L21), m_Value(L22)))) { in foldLogOpOfMaskedICmpsHelper() 638 if (!match(R1, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper() 658 if (!match(R2, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper() 924 if (match(Val2, m_Trunc(m_Value(V))) && in FoldAndOfICmps() 928 } else if (match(Val, m_Trunc(m_Value(V))) && in FoldAndOfICmps() 1179 if (match(Op0, m_OneUse(m_Xor(m_ZExt(m_Value(A)), m_ConstantInt(C1)))) && in matchDeMorgansLaws() 1180 match(Op1, m_OneUse(m_Xor(m_ZExt(m_Value(B)), m_Specific(C1))))) { in matchDeMorgansLaws() 1221 if ((match(Op0, m_BitCast(m_Value(BC))) && match(Op1, m_Constant(C)))) { in foldCastedBitwiseLogic() 1286 if (match(Op1, m_SExt(m_Value())) || match(Op1, m_Not(m_Value()))) { in foldBoolSextMaskToSelect() [all …]
|
D | InstCombineAddSub.cpp | 987 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() 992 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand() 995 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand() 998 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand() 1001 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand() 1015 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand() 1021 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand() 1023 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand() 1062 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd() [all …]
|
D | InstCombineMulDivRem.cpp | 40 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero() 201 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul() 216 if (match(&I, m_Mul(m_Value(NewOp), m_Constant(C1)))) { in visitMul() 255 if (match(Op0, m_Sub(m_Value(Y), m_Value(X)))) in visitMul() 257 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() 287 if (!match(Mul, m_Mul(m_Value(), m_Value()))) in visitMul() 297 match(Op0, m_NSWSub(m_Value(), m_Value())) && in visitMul() 298 match(Op1, m_NSWSub(m_Value(), m_Value()))) in visitMul() 353 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul() [all …]
|
D | InstCombineCompares.cpp | 1549 match(LHSI->getOperand(0), m_Signum(m_Value(V)))) in visitICmpInstWithInstAndIntCst() 1791 if (match(Or, m_Or(m_Value(LShr), m_Value(X))) && in visitICmpInstWithInstAndIntCst() 1792 match(LShr, m_LShr(m_Specific(X), m_Value(Y)))) { in visitICmpInstWithInstAndIntCst() 1879 match(LHSI, m_Signum(m_Value(V)))) in visitICmpInstWithInstAndIntCst() 1887 if (match(LHSI, m_Or(m_PtrToInt(m_Value(P)), m_PtrToInt(m_Value(Q))))) { in visitICmpInstWithInstAndIntCst() 1927 if (match(LHSI, m_Shl(m_One(), m_Value(X)))) { in visitICmpInstWithInstAndIntCst() 2766 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) { in ProcessUMulZExtIdiom() 3177 if (match(Op0, m_Select(m_Value(Cond), m_Value(SelectTrue), in visitICmpInst() 3178 m_Value(SelectFalse)))) { in visitICmpInst() 3264 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 115 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd() 210 if (match(LHS, m_Mul(m_Value(W), m_Value(X))) && in visitAdd() 211 match(RHS, m_Mul(m_Value(Y), m_Value(Z)))) { in visitAdd() 232 if (match(LHS, m_Not(m_Value(X)))) // ~X + C --> (C-1) - X in visitAdd() 237 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd() 277 if (match(FV, m_Zero()) && match(TV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd() 281 if (match(TV, m_Zero()) && match(FV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd() 558 if (match(Op1, m_Not(m_Value(X)))) in visitSub() 565 if (match(Op1, m_LShr(m_Value(X), m_ConstantInt(CI))) && in visitSub() 570 if (match(Op1, m_AShr(m_Value(X), m_ConstantInt(CI))) && in visitSub() [all …]
|
D | InstCombineAndOrXor.cpp | 585 if (match(L1, m_And(m_Value(L11), m_Value(L12)))) { in foldLogOpOfMaskedICmpsHelper() 586 if (!match(L2, m_And(m_Value(L21), m_Value(L22)))) in foldLogOpOfMaskedICmpsHelper() 590 if (!match(L2, m_And(m_Value(L11), m_Value(L12)))) in foldLogOpOfMaskedICmpsHelper() 600 if (match(R1, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper() 609 if (!ok && match(R2, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper() 782 if (match(Val2, m_Trunc(m_Value(V))) && in FoldAndOfICmps() 788 else if (match(Val, m_Trunc(m_Value(V))) && in FoldAndOfICmps() 1132 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd() 1166 if (match(Op0, m_Or(m_Value(A), m_Value(B))) && in visitAnd() 1167 match(Op1, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd() [all …]
|
D | InstCombineMulDivRem.cpp | 37 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(PowerOf2), m_Value(A))), in simplifyValueKnownNonZero() 38 m_Value(B))) && in simplifyValueKnownNonZero() 133 match(Op0, m_Add(m_Value(X), m_ConstantInt(C1)))) { in visitMul() 150 if (match(Op0, m_Sub(m_Value(Y), m_Value(X)))) in visitMul() 152 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul() 226 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) in visitMul() 228 if (match(Op1, m_Shl(m_One(), m_Value(Y)))) in visitMul() 412 if (match(Op0, m_Sub(m_Value(X), m_Value(Z)))) { // (X - Z) / Y; Y = Op1 in commonIDivTransforms() 467 if (match(Op1, m_Shl(m_Power2(CI), m_Value(N)))) { in visitUDiv() 479 if (match(Op1, m_Select(m_Value(Cond), m_Power2(C1), m_Power2(C2)))) { in visitUDiv() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/AggressiveInstCombine/ |
D | AggressiveInstCombine.cpp | 90 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain() 94 if (match(V, m_And(m_Value(Op0), m_Value(Op1)))) in matchAndOrChain() 98 if (match(V, m_Or(m_Value(Op0), m_Value(Op1)))) in matchAndOrChain() 106 if (!match(V, m_LShr(m_Value(Candidate), m_ConstantInt(BitIndex)))) in matchAndOrChain() 134 if (match(&I, m_c_And(m_OneUse(m_And(m_Value(), m_Value())), m_Value()))) in foldAnyOrAllBitsSet() 136 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
|
/external/lzma/CS/7zip/Compress/LzmaAlone/Properties/ |
D | Settings.cs | 15 private static Settings m_Value; field in LzmaAlone.Properties.Settings 23 if ((Settings.m_Value == null)) 26 if ((Settings.m_Value == null)) 30 Settings.m_Value = new Settings(); 38 return Settings.m_Value;
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 568 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst() 569 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst() 644 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst() 668 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst() 692 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst() 759 if ((match(Op0, m_IDiv(m_Value(X), m_Value(Y))) && Y == Op1) || // (X / Y) * Y in SimplifyMulInst() 760 (match(Op1, m_IDiv(m_Value(X), m_Value(Y))) && Y == Op0)) { // Y * (X / Y) in SimplifyMulInst() 843 if (match(Op0, m_Mul(m_Value(X), m_Value(Y))) && (X == Op1 || Y == Op1)) { in SimplifyDiv() 857 if ((isSigned && match(Op0, m_SRem(m_Value(), m_Specific(Op1)))) || in SimplifyDiv() 858 (!isSigned && match(Op0, m_URem(m_Value(), m_Specific(Op1))))) in SimplifyDiv() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 100 m_ICmp(Pred2, m_Value(X), m_Value(Y)))) || in foldSelectWithBinaryOp() 593 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst() 594 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst() 607 match(Op0, m_Xor(m_Value(Y), m_SignMask()))) in SimplifyAddInst() 752 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst() 774 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst() 796 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst() 807 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in SimplifySubInst() 808 match(Op1, m_Trunc(m_Value(Y)))) in SimplifySubInst() 819 if (match(Op0, m_PtrToInt(m_Value(X))) && in SimplifySubInst() [all …]
|
D | AssumptionCache.cpp | 70 if (match(I, m_BitCast(m_Value(Op))) || in updateAffectedValues() 71 match(I, m_PtrToInt(m_Value(Op))) || in updateAffectedValues() 72 match(I, m_Not(m_Value(Op)))) { in updateAffectedValues() 83 if (match(Cond, m_ICmp(Pred, m_Value(A), m_Value(B)))) { in updateAffectedValues() 91 if (match(V, m_Not(m_Value(A)))) { in updateAffectedValues() 99 if (match(V, m_BitwiseLogic(m_Value(A), m_Value(B)))) { in updateAffectedValues() 103 } else if (match(V, m_Shift(m_Value(A), m_ConstantInt(C)))) { in updateAffectedValues()
|
D | TargetTransformInfo.cpp | 723 if (m_BinOp(m_Value(L), m_Value(R)).match(I)) in getReductionData() 726 if (m_SMin(m_Value(L), m_Value(R)).match(SI) || in getReductionData() 727 m_SMax(m_Value(L), m_Value(R)).match(SI) || in getReductionData() 728 m_OrdFMin(m_Value(L), m_Value(R)).match(SI) || in getReductionData() 729 m_OrdFMax(m_Value(L), m_Value(R)).match(SI) || in getReductionData() 730 m_UnordFMin(m_Value(L), m_Value(R)).match(SI) || in getReductionData() 731 m_UnordFMax(m_Value(L), m_Value(R)).match(SI)) { in getReductionData() 735 if (m_UMin(m_Value(L), m_Value(R)).match(SI) || in getReductionData() 736 m_UMax(m_Value(L), m_Value(R)).match(SI)) { in getReductionData()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 551 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst() 552 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst() 689 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst() 711 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst() 733 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst() 744 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in SimplifySubInst() 745 match(Op1, m_Trunc(m_Value(Y)))) in SimplifySubInst() 755 if (match(Op0, m_PtrToInt(m_Value(X))) && in SimplifySubInst() 756 match(Op1, m_PtrToInt(m_Value(Y)))) in SimplifySubInst() 844 if (match(Op0, m_NegZero()) && match(Op1, m_FSub(m_NegZero(), m_Value(X)))) in SimplifyFSubInst() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMParallelDSP.cpp | 222 if (match(V, m_Trunc(m_Value(Val)))) { in IsNarrowSequence() 225 } else if (match(V, m_Add(m_Value(LHS), m_Value(RHS)))) { in IsNarrowSequence() 230 } else if (match(V, m_ZExtOrSExt(m_Value(Val)))) { in IsNarrowSequence() 237 if (match(Val, m_Load(m_Value()))) { in IsNarrowSequence() 470 while(match(Acc, m_Add(m_Mul(m_Value(MulOp0), m_Value(MulOp1)), in MatchParallelMACSequences() 471 m_Value(A)))){ in MatchParallelMACSequences() 476 while(match(Acc, m_Add(m_Value(A), in MatchParallelMACSequences() 477 m_Mul(m_Value(MulOp0), m_Value(MulOp1))))) { in MatchParallelMACSequences() 484 if (match(Acc, m_Add(m_Mul(m_Value(MulOp0), m_Value(MulOp1)), m_Value(A)))) in MatchParallelMACSequences()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonGenExtract.cpp | 106 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 113 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 121 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 130 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 137 Match = match(In, m_And(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 144 Match = match(In, m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 151 Match = match(In, m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonGenExtract.cpp | 94 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 101 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 109 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 118 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 125 Match = match(In, m_And(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 132 Match = match(In, m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 139 Match = match(In, m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUtils.cpp | 401 if (m_UMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 403 else if (m_UMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 405 else if (m_SMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 407 else if (m_SMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 409 else if (m_OrdFMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 411 else if (m_OrdFMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 413 else if (m_UnordFMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 415 else if (m_UnordFMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
|