/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 95 if (!BO->isCommutative() && !match(BO, m_BinOp(m_Value(Y), m_Specific(X)))) in foldSelectBinOpIdentity() 97 if (!match(BO, m_c_BinOp(m_Value(Y), m_Specific(X)))) in foldSelectBinOpIdentity() 521 if (!match(Cmp->getOperand(0), m_c_And(m_Specific(X), m_Value(Y)))) in foldSelectICmpAndAnd() 563 match(FalseVal, m_AShr(m_Specific(X), m_Specific(Y))) && in foldSelectICmpLshrAshr() 564 match(CmpLHS, m_Specific(X))) { in foldSelectICmpLshrAshr() 634 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr() 636 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr() 713 if (match(TrueVal, m_Sub(m_Specific(B), m_Specific(A))) || in canonicalizeSaturatedSubtract() 715 match(TrueVal, m_Add(m_Specific(B), m_SpecificInt(-*C))))) in canonicalizeSaturatedSubtract() 717 else if (!match(TrueVal, m_Sub(m_Specific(A), m_Specific(B))) && in canonicalizeSaturatedSubtract() [all …]
|
D | InstCombineAndOrXor.cpp | 994 } else if (match(X0, m_Trunc(m_Specific(X1)))) { in foldSignedTruncationCheck() 1035 match(Cmp1, m_ICmp(Pred1, m_Intrinsic<Intrinsic::ctpop>(m_Specific(X)), in foldIsPowerOf2() 1043 match(Cmp1, m_ICmp(Pred1, m_Intrinsic<Intrinsic::ctpop>(m_Specific(X)), in foldIsPowerOf2() 1072 m_c_ICmp(UnsignedPred, m_Specific(ZeroCmpOp), m_Value(A))) && in foldUnsignedUnderflowCheck() 1073 match(ZeroCmpOp, m_c_Add(m_Specific(A), m_Value(B))) && in foldUnsignedUnderflowCheck() 1111 m_c_ICmp(UnsignedPred, m_Specific(Base), m_Specific(Offset))) || in foldUnsignedUnderflowCheck() 1227 match(LHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1231 match(RHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1639 match(Op1, m_Not(m_c_Or(m_Specific(A), m_Specific(B))))) in foldOrToXor() 1647 match(Op1, m_c_And(m_Not(m_Specific(A)), m_Specific(B)))) in foldOrToXor() [all …]
|
D | InstCombineAddSub.cpp | 1168 if (!match(Select, m_Select(m_ICmp(Pred, m_Specific(X), m_APInt(Thr)), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1187 m_ZExtOrSelf(m_Specific(NBits))))) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1360 if (match(FV, m_Zero()) && match(TV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd() 1364 if (match(TV, m_Zero()) && match(FV, m_Sub(m_Value(N), m_Specific(A)))) in visitAdd() 1445 match(Op1, m_OneUse(m_c_FMul(m_Value(Y), m_Specific(Z))))) || in factorizeFAddFSub() 1447 match(Op1, m_OneUse(m_c_FMul(m_Value(Y), m_Specific(Z)))))) in factorizeFAddFSub() 1450 match(Op1, m_OneUse(m_FDiv(m_Value(Y), m_Specific(Z))))) in factorizeFAddFSub() 1841 if (match(Op1, m_c_Add(m_Specific(Op0), m_Value(Y)))) in visitSub() 1845 if (match(Op0, m_Sub(m_Specific(Op1), m_Value(Y)))) in visitSub() 1853 match(Op0, m_c_Or(m_Specific(A), m_Specific(B)))) in visitSub() [all …]
|
D | InstCombineMulDivRem.cpp | 540 if (match(Op0, m_OneUse(m_c_FMul(m_Specific(Op1), m_Value(Y)))) && in visitFMul() 545 if (match(Op1, m_OneUse(m_c_FMul(m_Specific(Op0), m_Value(Y)))) && in visitFMul() 787 if ((IsSigned && match(Z, m_SRem(m_Specific(X), m_Specific(Op1)))) || in commonIDivTransforms() 788 (!IsSigned && match(Z, m_URem(m_Specific(X), m_Specific(Op1))))) in commonIDivTransforms() 793 if (IsSigned && match(Op0, m_NSWShl(m_Specific(Op1), m_Value(Y)))) in commonIDivTransforms() 795 if (!IsSigned && match(Op0, m_NUWShl(m_Specific(Op1), m_Value(Y)))) in commonIDivTransforms() 799 if (match(Op1, m_c_Mul(m_Specific(Op0), m_Value(Y)))) { in commonIDivTransforms() 1006 if (match(Op1, m_NUWMul(m_Specific(A), m_Value(X))) || in visitUDiv() 1007 match(Op1, m_NUWMul(m_Value(X), m_Specific(A)))) in visitUDiv() 1009 if (match(Op1, m_NUWMul(m_Specific(B), m_Value(X))) || in visitUDiv() [all …]
|
D | InstCombineShifts.cpp | 773 m_Specific(Op1)))) { in FoldShiftByConstant() 792 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant() 808 m_Specific(Op1)))) { in FoldShiftByConstant() 960 if (match(Op0, m_Shr(m_Value(X), m_Specific(Op1)))) { in visitShl() 1013 if (match(Op0, m_OneUse(m_Shr(m_Value(X), m_Specific(Op1))))) { in visitShl() 1167 if (match(Op0, m_OneUse(m_Shl(m_Value(X), m_Specific(Op1))))) { in visitLShr() 1218 m_Sub(m_Constant(C0), m_ZExtOrSelf(m_Specific(NBits))))) || in foldVariableSignZeroExtensionOfVariableHighBitExtract() 1267 if (match(Op0, m_Shl(m_ZExt(m_Value(X)), m_Specific(Op1))) && in visitAShr()
|
D | InstCombineCompares.cpp | 1487 if (match(DomCond, m_ICmp(DomPred, m_Specific(X), m_APInt(DomC))) && in foldICmpWithDominatingICmp() 1793 match(LShr, m_LShr(m_Specific(A), m_Value(B)))) { in foldICmpAndConstConst() 3717 if (match(Op0, m_OneUse(m_c_Add(m_Specific(Op1), m_Value(X)))) && in foldICmpBinOp() 3721 if (match(Op1, m_OneUse(m_c_Add(m_Specific(Op0), m_Value(X)))) && in foldICmpBinOp() 4045 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in foldICmpBinOp() 4076 if (match(X, m_c_SMin(m_Specific(Op0), m_Value())) || in foldICmpWithMinMax() 4077 match(X, m_c_SMax(m_Specific(Op0), m_Value())) || in foldICmpWithMinMax() 4078 match(X, m_c_UMin(m_Specific(Op0), m_Value())) || in foldICmpWithMinMax() 4079 match(X, m_c_UMax(m_Specific(Op0), m_Value()))) { in foldICmpWithMinMax() 4085 if (match(Op0, m_c_SMin(m_Specific(X), m_Value(Y)))) { in foldICmpWithMinMax() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 551 return (match(L1, m_Load(m_Specific(LHS))) && in isMinMaxWithLoads() 552 match(L2, m_Load(m_Specific(RHS)))) || in isMinMaxWithLoads() 553 (match(L1, m_Load(m_Specific(RHS))) && in isMinMaxWithLoads() 554 match(L2, m_Load(m_Specific(LHS)))); in isMinMaxWithLoads()
|
D | InstructionCombining.cpp | 1449 match(RHS, m_ShuffleVector(m_Value(R0), m_Value(R1), m_Specific(Mask))) && in foldVectorBinop() 1484 match(RHS, m_ShuffleVector(m_Value(V2), m_Undef(), m_Specific(Mask))) && in foldVectorBinop() 1495 match(RHS, m_ShuffleVector(m_Specific(V2), m_Specific(V1), in foldVectorBinop() 1496 m_Specific(Mask)))) { in foldVectorBinop() 1997 m_PtrToInt(m_Specific(GEP.getOperand(0)))))) in visitGetElementPtrInst() 2533 m_CombineOr(m_Specific(Op), in tryToMoveFreeBeforeNullTest() 2534 m_Specific(Op->stripPointerCasts())), in tryToMoveFreeBeforeNullTest()
|
D | InstCombineCasts.cpp | 516 !match(Or1, m_OneUse(m_LogicalShift(m_Specific(ShVal), m_Value(ShAmt1))))) in narrowRotate() 529 if (match(R, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(L))))) in narrowRotate() 537 match(R, m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask)))) in narrowRotate() 542 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in narrowRotate() 1217 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt()
|
D | InstCombineVectorOps.cpp | 830 if (!match(Op0, m_InsertElement(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat() 866 if (!match(Scalar, m_ExtractElement(m_Specific(X), m_SpecificInt(IdxC)))) in foldInsEltIntoIdentityShuffle() 1463 if (match(Op0, m_BinOp(m_Specific(Op1), m_Constant(C)))) in foldSelectShuffleWith1Binop() 1465 else if (match(Op1, m_BinOp(m_Specific(Op0), m_Constant(C)))) in foldSelectShuffleWith1Binop()
|
D | InstCombineCalls.cpp | 2270 match(Src1, m_FAbs(m_Specific(X)))) { in visitCallInst() 3987 m_Value(), m_Specific(II->getArgOperand(1))))) in visitCallInst() 4061 if (match(Next, m_Intrinsic<Intrinsic::assume>(m_Specific(IIOperand)))) in visitCallInst()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 102 if (!match(Cond, m_c_BinOp(m_c_ICmp(Pred1, m_Specific(TrueVal), in foldSelectWithBinaryOp() 103 m_Specific(FalseVal)), in foldSelectWithBinaryOp() 638 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst() 639 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst() 644 if (match(Op0, m_Not(m_Specific(Op1))) || in SimplifyAddInst() 645 match(Op1, m_Not(m_Specific(Op0)))) in SimplifyAddInst() 890 m_Exact(m_IDiv(m_Value(X), m_Specific(Op1)))) || // (X / Y) * Y in SimplifyMulInst() 891 match(Op1, m_Exact(m_IDiv(m_Value(X), m_Specific(Op0)))))) // Y * (X / Y) in SimplifyMulInst() 1061 if (match(Op0, m_c_Mul(m_Value(X), m_Specific(Op1)))) { in simplifyDiv() 1068 if ((IsSigned && match(X, m_SDiv(m_Value(), m_Specific(Op1)))) || in simplifyDiv() [all …]
|
D | ValueTracking.cpp | 202 match(RHS, m_c_And(m_Specific(M), m_Value()))) in haveNoCommonBitsSet() 205 match(LHS, m_c_And(m_Specific(M), m_Value()))) in haveNoCommonBitsSet() 589 auto m_V = m_CombineOr(m_Specific(V), m_PtrToInt(m_Specific(V))); in isKnownNonZeroFromAssume() 681 if (match(Arg, m_Not(m_Specific(V))) && in computeKnownBitsFromAssume() 697 auto m_V = m_CombineOr(m_Specific(V), m_PtrToInt(m_Specific(V))); in computeKnownBitsFromAssume() 1172 if (match(RHS, m_Neg(m_Specific(LHS))) && in computeKnownBitsFromOperator() 1873 if (match(X, m_Neg(m_Specific(Y))) || match(Y, m_Neg(m_Specific(X)))) in isKnownToBeAPowerOfTwo() 1884 if (match(X, m_And(m_Specific(Y), m_Value())) || in isKnownToBeAPowerOfTwo() 1885 match(X, m_And(m_Value(), m_Specific(Y)))) in isKnownToBeAPowerOfTwo() 1888 if (match(Y, m_And(m_Specific(X), m_Value())) || in isKnownToBeAPowerOfTwo() [all …]
|
D | LazyValueInfo.cpp | 974 if (match(SI->getFalseValue(), m_Add(m_Specific(A), in solveBlockValueSelect() 982 if (match(SI->getTrueValue(), m_Add(m_Specific(A), in solveBlockValueSelect() 1223 if (LHS != Val && !match(LHS, m_Add(m_Specific(Val), m_ConstantInt()))) { in getValueFromICmpCondition() 1230 match(LHS, m_Add(m_Specific(Val), m_ConstantInt(Offset))); in getValueFromICmpCondition()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULowerKernelAttributes.cpp | 191 auto SubExpr = m_Sub(m_Specific(GridSize), in processUse() 192 m_Mul(GroupIDIntrin, m_Specific(ZextGroupSize))); in processUse() 196 m_Select(m_ICmp(Pred, SubExpr, m_Specific(ZextGroupSize)), in processUse() 198 m_Specific(ZextGroupSize))) && in processUse()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 170 if (match(Cond, m_ICmp(Pred, m_Specific(B), m_ZeroInt())) && in matchSelectWithOptionalNotCond() 171 Pred == ICmpInst::ICMP_SLT && match(A, m_Neg(m_Specific(B)))) { in matchSelectWithOptionalNotCond() 176 if (match(Cond, m_ICmp(Pred, m_Specific(A), m_ZeroInt())) && in matchSelectWithOptionalNotCond() 177 Pred == ICmpInst::ICMP_SLT && match(B, m_Neg(m_Specific(A)))) { in matchSelectWithOptionalNotCond() 183 if (!match(Cond, m_ICmp(Pred, m_Specific(A), m_Specific(B)))) { in matchSelectWithOptionalNotCond() 187 if (!match(Cond, m_ICmp(Pred, m_Specific(B), m_Specific(A)))) in matchSelectWithOptionalNotCond() 383 match(CondR, m_Cmp(PredR, m_Specific(X), m_Specific(Y))) && in isEqualImpl()
|
D | DivRemPairs.cpp | 61 m_c_Mul(m_CombineAnd(m_IDiv(m_Specific(Dividend), m_Value(Divisor)), in matchExpandedRem()
|
D | GuardWidening.cpp | 509 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in widenCondCommon()
|
D | StructurizeCFG.cpp | 420 if (I->getParent() == Parent && match(I, m_Not(m_Specific(Condition)))) in invert()
|
D | IndVarSimplify.cpp | 1836 if (!match(Condition, m_ICmp(Pred, m_Specific(NarrowDefLHS), in calculatePostIncRange()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/ |
D | AggressiveInstCombine.cpp | 127 if (!match(TermI, m_Br(m_ICmp(Pred, m_Specific(RotAmt), m_ZeroInt()), in foldGuardedRotateToFunnelShift() 304 match(SubOp1, m_And(m_LShr(m_Specific(Root), m_SpecificInt(1)), in tryToRecognizePopCount()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonLoopIdiomRecognition.cpp | 695 if (match(A, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 698 } else if (match(B, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 757 if (!match(U, m_Xor(m_Specific(SelI), m_Value(R))) && in matchLeftShift() 758 !match(U, m_Xor(m_Value(R), m_Specific(SelI)))) in matchLeftShift() 769 if (!match(T, m_Shl(m_Value(Q), m_Specific(CIV))) && in matchLeftShift() 770 !match(T, m_Shl(m_ZExt(m_Value(Q)), m_ZExt(m_Specific(CIV))))) in matchLeftShift() 832 if (!match(FalseV, m_Xor(m_Specific(TrueV), m_Value(Q))) && in matchRightShift() 833 !match(FalseV, m_Xor(m_Value(Q), m_Specific(TrueV)))) in matchRightShift() 843 if (!match(TrueV, m_Xor(m_Specific(FalseV), m_Value(Q))) && in matchRightShift() 844 !match(TrueV, m_Xor(m_Value(Q), m_Specific(FalseV)))) in matchRightShift()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 774 m_AShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C))) || in strengthenRightShift() 776 m_LShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C)))) { in strengthenRightShift()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1258 if (match(U, m_Add(m_Specific(A), m_Specific(B)))) { in matchUAddWithOverflowConstantEdgeCases() 1327 if (match(U, m_Sub(m_Specific(A), m_Specific(B)))) { in combineToUSubWithOverflow() 1334 if (match(U, m_Add(m_Specific(A), m_APInt(AddC))) && in combineToUSubWithOverflow() 1478 if (!match(DomCond, m_ICmp(DomPred, m_Specific(CmpOp0), m_Specific(CmpOp1)))) in foldICmpWithDominatingICmp()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 612 inline specificval_ty m_Specific(const Value *V) { return V; } in m_Specific() function
|