/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/ |
D | AggressiveInstCombine.cpp | 81 auto Sub = m_Sub(m_SpecificInt(Width), m_Value(R1)); in foldGuardedRotateToFunnelShift() 303 if (match(AndOp0, m_Sub(m_Value(Root), m_Value(SubOp1))) && in tryToRecognizePopCount()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 879 if (match(Op0, m_Sub(m_Constant(Op00C), m_Value(X)))) in foldAddWithConstant() 885 if (match(Op0, m_OneUse(m_Sub(m_Value(X), m_Value(Y)))) && in foldAddWithConstant() 1142 m_ZExtOrSelf(m_Sub(m_Constant(C), m_ZExtOrSelf(m_Value(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() 1771 if (match(Op1, m_Sub(m_Constant(C2), m_Value(X)))) in visitSub() 1845 if (match(Op0, m_Sub(m_Specific(Op1), m_Value(Y)))) in visitSub() 1964 if (match(Op1, m_Sub(m_Value(Y), m_Value(Z)))) in visitSub()
|
D | InstCombineShifts.cpp | 1040 match(Op1, m_Sub(m_SpecificInt(BitWidth - 1), m_Value(X)))) in visitShl() 1197 m_ZExtOrSelf(m_Sub(m_Constant(C1), in foldVariableSignZeroExtensionOfVariableHighBitExtract() 1199 m_ZExtOrSelf(m_Sub(m_Constant(C2), in foldVariableSignZeroExtensionOfVariableHighBitExtract() 1218 m_Sub(m_Constant(C0), m_ZExtOrSelf(m_Specific(NBits))))) || in foldVariableSignZeroExtensionOfVariableHighBitExtract()
|
D | InstCombineSelect.cpp | 713 if (match(TrueVal, m_Sub(m_Specific(B), m_Specific(A))) || in canonicalizeSaturatedSubtract() 717 else if (!match(TrueVal, m_Sub(m_Specific(A), m_Specific(B))) && in canonicalizeSaturatedSubtract() 1018 if (match(LHS, m_Sub(m_Value(), m_Zero())) || in canonicalizeMinMaxWithConstant() 1019 match(RHS, m_Sub(m_Value(), m_Zero()))) in canonicalizeMinMaxWithConstant() 2303 if (match(SA1, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(SA0))))) in foldSelectRotate() 2305 else if (match(SA0, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(SA1))))) in foldSelectRotate()
|
D | InstCombineMulDivRem.cpp | 244 if (match(Op0, m_Sub(m_Value(Y), m_Value(X)))) in visitMul() 786 if (match(Op0, m_Sub(m_Value(X), m_Value(Z)))) // (X - Z) / Y; Y = Op1 in commonIDivTransforms()
|
D | InstCombineAndOrXor.cpp | 1107 if (!match(ZeroCmpOp, m_Sub(m_Value(Base), m_Value(Offset)))) in foldUnsignedUnderflowCheck() 1693 !match(Op0, m_OneUse(m_Sub(m_Constant(C), m_Specific(Op1))))) in narrowMaskedBinOp() 3045 if (match(NotVal, m_Sub(m_Value(X), m_Value(Y)))) in visitXor() 3102 if (RHSC->isSignMask() && match(Op0, m_Sub(m_APInt(C), m_Value(X)))) { in visitXor()
|
D | InstCombineCasts.cpp | 529 if (match(R, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(L))))) in narrowRotate()
|
D | InstCombineCompares.cpp | 4839 if (match(U, m_Sub(m_Specific(Op1), m_Specific(Op0)))) in swapMayExposeCSEOpportunities() 4841 else if (match(U, m_Sub(m_Specific(Op0), m_Specific(Op1)))) in swapMayExposeCSEOpportunities()
|
D | InstructionCombining.cpp | 1996 if (match(V, m_Sub(m_PtrToInt(m_Value(Y)), in visitGetElementPtrInst()
|
/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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | DivRemPairs.cpp | 53 if (!match(&I, m_Sub(m_Value(Dividend), m_Value(XroundedDownToMultipleOfY)))) in matchExpandedRem()
|
D | SeparateConstOffsetFromGEP.cpp | 1173 match(I, m_Sub(m_SExt(m_Value(LHS)), m_SExt(m_Value(RHS))))) { in reuniteExts()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 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() 820 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst() 1428 if (match(Y, m_Sub(m_Value(A), m_Value(B)))) { in simplifyUnsignedRangeCheck() 4092 match(Ops[1], m_Sub(m_Value(P), m_PtrToInt(m_Specific(Ops[0]))))) in SimplifyGEPInst() 4099 m_AShr(m_Sub(m_Value(P), m_PtrToInt(m_Specific(Ops[0]))), in SimplifyGEPInst() 4108 m_SDiv(m_Sub(m_Value(P), m_PtrToInt(m_Specific(Ops[0]))), in SimplifyGEPInst() 4129 m_Sub(m_Zero(), m_PtrToInt(m_Specific(StrippedBasePtr))))) { in SimplifyGEPInst()
|
D | ValueTracking.cpp | 4921 if ((!NeedNSW && match(X, m_Sub(m_ZeroInt(), m_Specific(Y)))) || in isKnownNegation() 4926 if ((!NeedNSW && match(Y, m_Sub(m_ZeroInt(), m_Specific(X)))) || in isKnownNegation() 4932 return (!NeedNSW && (match(X, m_Sub(m_Value(A), m_Value(B))) && in isKnownNegation() 4933 match(Y, m_Sub(m_Specific(B), m_Specific(A))))) || in isKnownNegation()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 796 inline BinaryOp_match<LHS, RHS, Instruction::Sub> m_Sub(const LHS &L, in m_Sub() function 1897 return m_Sub(m_ZeroInt(), V);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1327 if (match(U, m_Sub(m_Specific(A), m_Specific(B)))) { in combineToUSubWithOverflow()
|