Home
last modified time | relevance | path

Searched refs:m_OneUse (Results 1 – 25 of 50) sorted by relevance

12

/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp836 match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_APInt(C2))))) && in foldNoWrapAdd()
846 if (match(Op0, m_OneUse(m_SExt(m_NSWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
853 if (match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
882 if (match(Op0, m_OneUse(m_Sub(m_Value(X), m_Value(Y)))) && in foldAddWithConstant()
982 if (match(Op0, m_OneUse(m_And(m_Value(X), m_APInt(C2)))) && in foldAddWithConstant()
1105 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask()
1169 if (HadTrunc && !match(&I, m_c_BinOp(m_OneUse(m_Value()), m_Value()))) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1344 if (match(LHS, m_OneUse(m_c_Add(m_Value(A), m_Specific(RHS))))) in visitAdd()
1348 if (match(RHS, m_OneUse(m_c_Add(m_Value(A), m_Specific(LHS))))) in visitAdd()
1438 m_OneUse(m_Intrinsic<Intrinsic::usub_sat>(m_Value(A), m_Value(B))), in visitAdd()
[all …]
DInstCombineAndOrXor.cpp1456 if (match(I.getOperand(0), m_OneUse(m_Not(m_Value(A)))) && in matchDeMorgansLaws()
1457 match(I.getOperand(1), m_OneUse(m_Not(m_Value(B)))) && in matchDeMorgansLaws()
1499 if (match(Cast, m_OneUse(m_ZExt(m_Value(X))))) { in foldLogicCastConstant()
1509 if (match(Cast, m_OneUse(m_SExt(m_Value(X))))) { in foldLogicCastConstant()
1658 if (!match(Op0, m_OneUse(m_Add(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1659 !match(Op0, m_OneUse(m_Mul(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1660 !match(Op0, m_OneUse(m_LShr(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1661 !match(Op0, m_OneUse(m_Shl(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1662 !match(Op0, m_OneUse(m_Sub(m_Constant(C), m_Specific(Op1))))) in narrowMaskedBinOp()
1724 if (match(Op0, m_OneUse(m_LogicalShift(m_One(), m_Value(X)))) && in visitAnd()
[all …]
DInstCombineMulDivRem.cpp62 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero()
109 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate()
115 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate()
121 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(1.0), in foldMulSelectToNegate()
131 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(-1.0), in foldMulSelectToNegate()
222 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
261 if (match(&I, m_c_Mul(m_OneUse(m_Neg(m_Value(X))), m_Value(Y)))) in visitMul()
454 if (match(Op0, m_OneUse(m_FDiv(m_Constant(C1), m_Value(X))))) { in visitFMul()
476 if (match(Op0, m_OneUse(m_FAdd(m_Value(X), m_Constant(C1))))) { in visitFMul()
482 if (match(Op0, m_OneUse(m_FSub(m_Constant(C1), m_Value(X))))) { in visitFMul()
[all …]
DInstCombineShifts.cpp100 !match(Sh0, m_c_BinOp(m_OneUse(m_Value()), m_Value()))) in reassociateShiftAmtsOfTwoSameDirectionShifts()
346 match(V, m_OneUse(m_Shift(m_Value(X), m_Constant(C0)))) && in foldShiftOfShiftedLogic()
372 if (match(Op1, m_OneUse(m_SExt(m_Value(Y))))) { in commonShiftTransforms()
755 match(Op0BOOp1, m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant()
787 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant()
845 if (match(Op0, m_Select(m_Value(Cond), m_OneUse(m_BinOp(TBO)), in FoldShiftByConstant()
865 m_OneUse(m_BinOp(FBO))))) { in FoldShiftByConstant()
912 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in visitShl()
947 if (match(Op0, m_OneUse(m_Shr(m_Value(X), m_APInt(ShOp1)))) && in visitShl()
998 if (match(Op0, m_OneUse(m_Shr(m_Value(X), m_Specific(Op1))))) { in visitShl()
[all …]
DInstCombineCasts.cpp535 if (!match(Trunc.getOperand(0), m_OneUse(m_Or(m_BinOp(Or0), m_BinOp(Or1))))) in narrowFunnelShift()
539 if (!match(Or0, m_OneUse(m_LogicalShift(m_Value(ShVal0), m_Value(ShAmt0)))) || in narrowFunnelShift()
540 !match(Or1, m_OneUse(m_LogicalShift(m_Value(ShVal1), m_Value(ShAmt1)))) || in narrowFunnelShift()
559 if (match(R, m_OneUse(m_Sub(m_SpecificInt(Width), m_Specific(L))))) in narrowFunnelShift()
624 if (!match(Trunc.getOperand(0), m_OneUse(m_BinOp(BinOp)))) in narrowBinOp()
798 if (match(Src, m_OneUse(m_LShr(m_Value(X), m_Constant(C))))) { in visitTrunc()
805 if (match(Src, m_OneUse(m_c_Or(m_LShr(m_Value(X), m_Constant(C)), in visitTrunc()
851 if (match(Src, m_OneUse(m_Shr(m_Trunc(m_Value(A)), m_Constant(C))))) { in visitTrunc()
909 if (match(Src, m_OneUse(m_ExtractElt(m_Value(VecOp), m_ConstantInt(Cst))))) { in visitTrunc()
1295 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt()
[all …]
DInstCombineSelect.cpp491 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd()
496 const bool HasShift = match(B, m_OneUse(m_LShr(m_Value(X), m_Value(Z)))); in foldSelectICmpAndAnd()
603 if (!match(CmpLHS, m_OneUse(m_Trunc(m_Value(V))))) in foldSelectICmpAndOr()
670 match(F, m_OneUse(m_Or(m_Specific(X), m_APInt(C)))) && *NotC == ~(*C)) { in foldSetClearBits()
679 match(T, m_OneUse(m_Or(m_Specific(X), m_APInt(C)))) && *NotC == ~(*C)) { in foldSetClearBits()
1386 if (!match(&Cmp, m_OneUse(m_ICmp( in tryToReuseConstantFromSelectInComparison()
2033 if (!match(Cond, m_OneUse(m_ExtractElt(m_Value(), m_ConstantInt())))) in canonicalizeScalarSelectOfVecs()
2333 if (!match(Sel.getFalseValue(), m_OneUse(m_Or(m_BinOp(Or0), m_BinOp(Or1))))) in foldSelectFunnelShift()
2337 if (!match(Or0, m_OneUse(m_LogicalShift(m_Value(SV0), in foldSelectFunnelShift()
2339 !match(Or1, m_OneUse(m_LogicalShift(m_Value(SV1), in foldSelectFunnelShift()
[all …]
DInstCombineCompares.cpp1351 if (!match(&I, m_ICmp(Pred, m_OneUse(m_IRem(m_Value(X), m_Value(Y))), in foldIRemByPowerOfTwoToBitTest()
1787 if (match(And->getOperand(0), m_OneUse(m_Trunc(m_Value(W)))) && in foldICmpAndConstConst()
1953 if (match(OrOp0, m_OneUse(m_Xor(m_Value(X1), m_Value(X2)))) && in foldICmpOrConstant()
1954 match(OrOp1, m_OneUse(m_Xor(m_Value(X3), m_Value(X4))))) { in foldICmpOrConstant()
3446 m_OneUse(m_AShr(m_Shl(m_Value(X), m_APInt(C0)), in foldICmpWithTruncSignExtendedVal()
3564 m_c_And(m_OneUse(m_AnyLogicalShift), m_Value()))) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3688 match(&I, m_c_ICmp(Pred, m_OneUse(m_UDiv(m_AllOnes(), m_Value(X))), in foldUnsignedMultiplicationOverflowCheck()
3706 m_OneUse(m_UDiv(m_CombineAnd(m_c_Mul(m_Deferred(Y), in foldUnsignedMultiplicationOverflowCheck()
3782 if (match(Op0, m_OneUse(m_c_Add(m_Specific(Op1), m_Value(X)))) && in foldICmpBinOp()
3786 if (match(Op1, m_OneUse(m_c_Add(m_Specific(Op0), m_Value(X)))) && in foldICmpBinOp()
[all …]
DInstCombineVectorOps.cpp70 if (match(V, m_OneUse(m_Load(m_Value())))) in cheapToScalarize()
73 if (match(V, m_OneUse(m_UnOp()))) in cheapToScalarize()
77 if (match(V, m_OneUse(m_BinOp(m_Value(V0), m_Value(V1))))) in cheapToScalarize()
83 if (match(V, m_OneUse(m_Cmp(UnusedPred, m_Value(V0), m_Value(V1))))) in cheapToScalarize()
1356 match(ScalarOp, m_OneUse(m_BitCast(m_Value(ScalarSrc)))) && in visitInsertElementInst()
1855 if (!match(Op0, m_OneUse(m_InsertElt(m_Undef(), m_Value(X), in canonicalizeInsertSplat()
2062 m_OneUse(m_Select(m_Value(Cond), m_Value(X), m_Value(Y))))) in narrowVectorSelect()
2070 if (!match(Cond, m_OneUse(m_Shuffle(m_Value(NarrowCond), m_Undef()))) || in narrowVectorSelect()
DInstCombineSimplifyDemanded.cpp443 if (match(I, m_c_Add(m_OneUse(m_ZExt(m_Value(X))), in SimplifyDemandedUseBits()
444 m_OneUse(m_SExt(m_Value(Y))))) && in SimplifyDemandedUseBits()
460 if (match(I, m_Add(m_OneUse(m_SExt(m_Value(X))), in SimplifyDemandedUseBits()
461 m_OneUse(m_SExt(m_Value(Y))))) && in SimplifyDemandedUseBits()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp839 match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_APInt(C2))))) && in foldNoWrapAdd()
849 if (match(Op0, m_OneUse(m_SExt(m_NSWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
856 if (match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
885 if (match(Op0, m_OneUse(m_Sub(m_Value(X), m_Value(Y)))) && in foldAddWithConstant()
1067 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask()
1131 if (HadTrunc && !match(&I, m_c_BinOp(m_OneUse(m_Value()), m_Value()))) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1418 if (!match(&I, m_c_FAdd(m_OneUse(m_c_FMul(m_Value(Y), in factorizeLerp()
1419 m_OneUse(m_FSub(m_FPOne(), in factorizeLerp()
1421 m_OneUse(m_c_FMul(m_Value(X), m_Deferred(Z)))))) in factorizeLerp()
1444 if ((match(Op0, m_OneUse(m_FMul(m_Value(X), m_Value(Z)))) && in factorizeFAddFSub()
[all …]
DInstCombineMulDivRem.cpp61 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero()
138 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate()
144 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate()
150 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(1.0), in foldMulSelectToNegate()
160 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(-1.0), in foldMulSelectToNegate()
268 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
295 if (match(&I, m_c_Mul(m_OneUse(m_Neg(m_Value(X))), m_Value(Y)))) in visitMul()
439 if (match(Op0, m_OneUse(m_FDiv(m_Constant(C1), m_Value(X))))) { in visitFMul()
461 if (match(Op0, m_OneUse(m_FAdd(m_Value(X), m_Constant(C1))))) { in visitFMul()
467 if (match(Op0, m_OneUse(m_FSub(m_Constant(C1), m_Value(X))))) { in visitFMul()
[all …]
DInstCombineAndOrXor.cpp1468 if (match(I.getOperand(0), m_OneUse(m_Not(m_Value(A)))) && in matchDeMorgansLaws()
1469 match(I.getOperand(1), m_OneUse(m_Not(m_Value(B)))) && in matchDeMorgansLaws()
1511 if (match(Cast, m_OneUse(m_ZExt(m_Value(X))))) { in foldLogicCastConstant()
1521 if (match(Cast, m_OneUse(m_SExt(m_Value(X))))) { in foldLogicCastConstant()
1689 if (!match(Op0, m_OneUse(m_Add(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1690 !match(Op0, m_OneUse(m_Mul(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1691 !match(Op0, m_OneUse(m_LShr(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1692 !match(Op0, m_OneUse(m_Shl(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1693 !match(Op0, m_OneUse(m_Sub(m_Constant(C), m_Specific(Op1))))) in narrowMaskedBinOp()
1754 if (match(Op0, m_OneUse(m_LogicalShift(m_One(), m_Value(X)))) && in visitAnd()
[all …]
DInstCombineShifts.cpp99 !match(Sh0, m_c_BinOp(m_OneUse(m_Value()), m_Value()))) in reassociateShiftAmtsOfTwoSameDirectionShifts()
343 match(V, m_OneUse(m_Shift(m_Value(X), m_APInt(C0)))) && in foldShiftOfShiftedLogic()
369 if (match(Op1, m_OneUse(m_SExt(m_Value(Y))))) { in commonShiftTransforms()
792 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant()
826 m_And(m_OneUse(m_Shr(m_Value(V1), m_Value(V2))), in FoldShiftByConstant()
885 if (match(Op0, m_Select(m_Value(Cond), m_OneUse(m_BinOp(TBO)), in FoldShiftByConstant()
905 m_OneUse(m_BinOp(FBO))))) { in FoldShiftByConstant()
952 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in visitShl()
1013 if (match(Op0, m_OneUse(m_Shr(m_Value(X), m_Specific(Op1))))) { in visitShl()
1024 if (match(Op0, m_OneUse(m_Shl(m_Constant(C2), m_Value(X))))) in visitShl()
[all …]
DInstCombineCasts.cpp511 if (!match(Trunc.getOperand(0), m_OneUse(m_Or(m_Value(Or0), m_Value(Or1))))) in narrowRotate()
515 if (!match(Or0, m_OneUse(m_LogicalShift(m_Value(ShVal), m_Value(ShAmt0)))) || in narrowRotate()
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()
587 if (!match(Trunc.getOperand(0), m_OneUse(m_BinOp(BinOp)))) in narrowBinOp()
740 if (match(Src, m_OneUse(m_LShr(m_Value(X), m_APInt(C))))) { in visitTrunc()
746 if (match(Src, m_OneUse(m_c_Or(m_LShr(m_Value(X), m_APInt(C)), in visitTrunc()
1210 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt()
1216 if (SrcI && match(SrcI, m_OneUse(m_Xor(m_Value(And), m_Constant(C)))) && in visitZExt()
1217 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt()
[all …]
DInstCombineSelect.cpp511 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd()
516 const bool HasShift = match(B, m_OneUse(m_LShr(m_Value(X), m_Value(Z)))); in foldSelectICmpAndAnd()
623 if (!match(CmpLHS, m_OneUse(m_Trunc(m_Value(V))))) in foldSelectICmpAndOr()
1335 if (!match(&Cmp, m_OneUse(m_ICmp( in tryToReuseConstantFromSelectInComparison()
1982 if (!match(Cond, m_OneUse(m_ExtractElement(m_Value(), m_ConstantInt())))) in canonicalizeScalarSelectOfVecs()
2279 if (!match(Sel.getFalseValue(), m_OneUse(m_Or(m_Value(Or0), m_Value(Or1))))) in foldSelectRotate()
2284 if (!match(Or0, m_OneUse(m_LogicalShift(m_Specific(TVal), m_Value(SA0)))) || in foldSelectRotate()
2285 !match(Or1, m_OneUse(m_LogicalShift(m_Specific(TVal), m_Value(SA1))))) in foldSelectRotate()
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()
[all …]
DInstCombineCompares.cpp1348 if (!match(&I, m_ICmp(Pred, m_OneUse(m_IRem(m_Value(X), m_Value(Y))), in foldIRemByPowerOfTwoToBitTest()
1765 if (match(And->getOperand(0), m_OneUse(m_Trunc(m_Value(W)))) && in foldICmpAndConstConst()
1926 if (match(OrOp0, m_OneUse(m_Xor(m_Value(X1), m_Value(X2)))) && in foldICmpOrConstant()
1927 match(OrOp1, m_OneUse(m_Xor(m_Value(X3), m_Value(X4))))) { in foldICmpOrConstant()
3403 m_OneUse(m_AShr(m_Shl(m_Value(X), m_APInt(C0)), in foldICmpWithTruncSignExtendedVal()
3521 m_c_And(m_OneUse(m_AnyLogicalShift), m_Value()))) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3645 match(&I, m_c_ICmp(Pred, m_OneUse(m_UDiv(m_AllOnes(), m_Value(X))), in foldUnsignedMultiplicationOverflowCheck()
3666 m_OneUse(m_UDiv(m_CombineAnd(m_c_Mul(m_Deferred(Y), in foldUnsignedMultiplicationOverflowCheck()
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()
[all …]
DInstCombineVectorOps.cpp63 if (match(V, m_OneUse(m_Load(m_Value())))) in cheapToScalarize()
67 if (match(V, m_OneUse(m_BinOp(m_Value(V0), m_Value(V1))))) in cheapToScalarize()
73 if (match(V, m_OneUse(m_Cmp(UnusedPred, m_Value(V0), m_Value(V1))))) in cheapToScalarize()
1519 if (!match(Op0, m_OneUse(m_InsertElement(m_Undef(), m_Value(X), in canonicalizeInsertSplat()
1683 m_OneUse(m_Select(m_Value(Cond), m_Value(X), m_Value(Y))))) in narrowVectorSelect()
1690 if (!match(Cond, m_OneUse(m_ShuffleVector(m_Value(NarrowCond), m_Undef(), in narrowVectorSelect()
/external/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp93 if (match(V, m_OneUse(m_c_Or( in foldGuardedRotateToFunnelShift()
104 m_OneUse(m_c_Or(m_Shl(m_Value(ShVal0), m_Sub(m_SpecificInt(Width), in foldGuardedRotateToFunnelShift()
240 if (match(&I, m_c_And(m_OneUse(m_And(m_Value(), m_Value())), m_Value()))) in foldAnyOrAllBitsSet()
242 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp84 auto RotL = m_OneUse( in foldGuardedRotateToFunnelShift()
93 auto RotR = m_OneUse( in foldGuardedRotateToFunnelShift()
226 if (match(&I, m_c_And(m_OneUse(m_And(m_Value(), m_Value())), m_Value()))) in foldAnyOrAllBitsSet()
228 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DVectorCombine.cpp453 m_OneUse(m_Shuffle(m_Value(V), m_Undef(), m_Mask(Mask)))))) in foldBitcastShuf()
630 if (!match(B0, m_OneUse(m_Cmp(P0, m_Instruction(I0), m_Constant(C0)))) || in foldExtractedCmps()
631 !match(B1, m_OneUse(m_Cmp(P1, m_Instruction(I1), m_Constant(C1)))) || in foldExtractedCmps()
640 if (!match(I0, m_OneUse(m_ExtractElt(m_Value(X), m_ConstantInt(Index0)))) || in foldExtractedCmps()
641 !match(I1, m_OneUse(m_ExtractElt(m_Specific(X), m_ConstantInt(Index1))))) in foldExtractedCmps()
/external/llvm/unittests/IR/
DPatternMatch.cpp61 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()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp1179 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()
1459 if (match(Op0, m_OneUse(m_Xor(m_Value(A), m_Value(B))))) { in visitAnd()
1467 if (match(tmpOp1, m_OneUse(m_Xor(m_Value(A), m_Value(B))))) { in visitAnd()
1521 if (LHS && match(Op1, m_OneUse(m_And(m_Value(X), m_Value(Y))))) { in visitAnd()
1529 if (RHS && match(Op0, m_OneUse(m_And(m_Value(X), m_Value(Y))))) { in visitAnd()
1659 if (match(A, m_OneUse(m_BitCast(m_Value(SrcA)))) && in matchSelectFromAndOr()
1660 match(B, m_OneUse(m_BitCast(m_Value(SrcB))))) { in matchSelectFromAndOr()
2411 if (LHS && match(Op1, m_OneUse(m_Or(m_Value(X), m_Value(Y))))) { in visitOr()
2419 if (RHS && match(Op0, m_OneUse(m_Or(m_Value(X), m_Value(Y))))) { in visitOr()
[all …]
DInstCombineShifts.cpp448 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant()
483 m_And(m_OneUse(m_Shr(m_Value(V1), m_Value(V2))), in FoldShiftByConstant()
731 if (match(I.getOperand(0), m_OneUse(m_Shl(m_Constant(C1), m_Value(A)))) && in visitShl()
DInstCombineCompares.cpp4169 if (match(Op0, m_OneUse(m_And(m_Value(A), m_Value(B)))) && in visitICmpInst()
4170 match(Op1, m_OneUse(m_And(m_Value(C), m_Value(D))))) { in visitICmpInst()
4210 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst()
4211 match(Op1, m_OneUse(m_LShr(m_Value(B), m_Specific(Cst1))))) || in visitICmpInst()
4212 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst()
4213 match(Op1, m_OneUse(m_AShr(m_Value(B), m_Specific(Cst1)))))) { in visitICmpInst()
4227 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst()
4228 match(Op1, m_OneUse(m_Shl(m_Value(B), m_Specific(Cst1))))) { in visitICmpInst()
4245 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), in visitICmpInst()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DMIPatternMatch.h39 inline OneUse_match<SubPat> m_OneUse(const SubPat &SP) { in m_OneUse() function

12