Home
last modified time | relevance | path

Searched refs:m_ZExt (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp822 match(Op0, m_ZExt(m_NUWAddLike(m_Value(X), m_APInt(C2)))) && in foldNoWrapAdd()
847 m_OneUse(m_ZExt(m_NUWAddLike(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
881 if (match(Op0, m_ZExt(m_Value(X))) && in foldAddWithConstant()
940 if (match(Op0, m_ZExt(m_Xor(m_Value(X), m_APInt(C2)))) && in foldAddWithConstant()
1006 if (match(Op0, m_ZExt(m_Add(m_Value(X), m_AllOnes())))) { in foldAddWithConstant()
1649 if ((match(RHS, m_ZExt(m_Value(A))) && in visitAdd()
1650 match(LHS, m_ZExt(m_NUWSub(m_Value(B), m_Specific(A))))) || in visitAdd()
1651 (match(LHS, m_ZExt(m_Value(A))) && in visitAdd()
1652 match(RHS, m_ZExt(m_NUWSub(m_Value(B), m_Specific(A)))))) in visitAdd()
1656 if (match(&I, m_c_BinOp(m_ZExt(m_Value(A)), m_SExt(m_Deferred(A)))) && in visitAdd()
[all …]
H A DInstCombineShifts.cpp936 m_Add(m_OneUse(m_ZExt(m_Value(X))), m_OneUse(m_ZExt(m_Value(Y)))))) in foldLShrOverflowBit()
1068 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in visitShl()
1254 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitShl()
1436 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && in visitLShr()
1571 m_OneUse(m_ZExt(m_Value(X))))))) { in visitLShr()
1593 match(X, m_ZExt(m_Value(BoolX))) && match(Y, m_ZExt(m_Value(BoolY))) && in visitLShr()
1732 if (match(Op0, m_Shl(m_ZExt(m_Value(X)), m_Specific(Op1))) && in visitAShr()
H A DInstCombineMulDivRem.cpp470 if (((match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul()
480 if (((match(Op0, m_SExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul()
481 (match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_SExt(m_Value(Y))))) && in visitMul()
490 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul()
492 if (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul()
1554 if (match(Op, m_ZExt(m_Value(X)))) in takeLog2()
1636 if (match(N, m_ZExt(m_Value(X))) && match(D, m_ZExt(m_Value(Y))) && in narrowUDivURem()
1645 if (isa<Instruction>(N) && match(N, m_OneUse(m_ZExt(m_Value(X)))) && in narrowUDivURem()
1656 if (isa<Instruction>(D) && match(D, m_OneUse(m_ZExt(m_Value(X)))) && in narrowUDivURem()
H A DInstCombineAndOrXor.cpp1764 if (match(Cast, m_OneUse(m_ZExt(m_Value(X))))) { in foldLogicCastConstant()
1802 match(Op1, m_OneUse(m_ZExt(m_ICmp(m_Value(), m_Value())))); in foldCastedBitwiseLogic()
1981 if (!match(Op1, m_ZExt(m_Value(X))) || Op1->hasNUsesOrMore(3)) in narrowMaskedBinOp()
2531 if (match(BO, m_c_BinOp(m_OneUse(m_ZExt(m_Value(X))), m_APInt(C1))) && in visitAnd()
2547 match(BO->getOperand(0), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd()
2557 match(BO->getOperand(1), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd()
2668 if (match(&I, m_And(m_OneUse(m_Shl(m_ZExt(m_Value(X)), m_Value(Y))), in visitAnd()
2806 if (match(&I, m_c_And(m_OneUse(m_ZExt(m_Value(A))), m_Value(B))) && in visitAnd()
2985 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in convertOrOfShiftsToFunnelShift()
2987 m_And(m_Neg(m_ZExt(m_And(m_Specific(X), m_SpecificInt(Mask)))), in convertOrOfShiftsToFunnelShift()
[all …]
H A DInstCombineCalls.cpp534 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && match(Op1, m_One())) { in foldCttzCtlz()
681 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in foldCtpop()
1906 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_ZExt(m_Value(Y))) && in visitCallInst()
1912 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_Constant(C)) && in visitCallInst()
2183 if (match(IIOperand, m_ZExt(m_Value(X))) && in visitCallInst()
2967 if (match(Exp, m_ZExt(m_Value(ExtSrc))) && in visitCallInst()
H A DInstCombineCasts.cpp578 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in narrowFunnelShift()
579 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in narrowFunnelShift()
928 if (match(Src, m_OneUse(m_Intrinsic<Intrinsic::ctlz>(m_ZExt(m_Value(A)), in visitTrunc()
H A DInstCombineCompares.cpp1566 m_OneUse(m_ZExt(m_Value(Y)))))) { in foldICmpTruncWithTruncOrExt()
1984 if (match(And, m_OneUse(m_c_And(m_OneUse(m_ZExt(m_Value(X))), m_Value(Y)))) && in foldICmpAndConstant()
3282 if (match(X, m_ZExt(m_Value(V)))) { in foldICmpAddConstant()
6072 if (match(Op1, m_ZExt(m_Value(A))) && in foldICmpEquality()
7058 if (match(&I, m_c_ICmp(Pred, m_Value(X), m_OneUse(m_ZExt(m_Value(Y))))) && in foldICmpUsingBoolRange()
7836 if (match(Op0, m_NUWMul(m_ZExt(m_Value(X)), m_ZExt(m_Value(Y)))) && in visitICmpInst()
H A DInstCombineVectorOps.cpp1605 else if (match(Vec, m_ZExt(m_Value(X))) && match(Scalar, m_ZExt(m_Value(Y)))) in narrowInsElt()
H A DInstCombineSimplifyDemanded.cpp499 if (match(I, m_c_Add(m_OneUse(m_ZExt(m_Value(X))), in SimplifyDemandedUseBits()
H A DInstCombineSelect.cpp1206 if (!match(SelectArg, m_ZExt(m_Value(Count))) && in foldSelectCttzCtlz()
3690 match(FV, m_ZExt(m_c_ICmp(ExtendedCmpPredicate, m_Specific(LHS), in foldSelectToCmp()
H A DInstructionCombining.cpp2512 if (!IsSext && !match(Op0, m_ZExt(m_Value(X)))) in narrowMathIfNoOverflow()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp649 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))), in foldLoadsRecursive()
652 m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))))))) { in foldLoadsRecursive()
663 (match(X, m_OneUse(m_ZExt(m_Instruction(L1)))) || in foldLoadsRecursive()
664 match(X, m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L1)))), in foldLoadsRecursive()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanPatternMatch.h405 inline AllUnaryRecipe_match<Op0_t, Instruction::ZExt> m_ZExt(const Op0_t &Op0) { in m_ZExt() function
418 return m_CombineOr(m_ZExt(Op0), m_SExt(Op0)); in m_ZExtOrSExt()
H A DVectorCombine.cpp1871 if (!match(X, m_OneUse(m_ZExt(m_OneUse(m_BitCast(m_Value(SrcX)))))) && in foldConcatOfBoolMasks()
1873 m_Shl(m_OneUse(m_ZExt(m_OneUse(m_BitCast(m_Value(SrcX))))), in foldConcatOfBoolMasks()
1879 if (!match(Y, m_OneUse(m_ZExt(m_OneUse(m_BitCast(m_Value(SrcY)))))) && in foldConcatOfBoolMasks()
1881 m_Shl(m_OneUse(m_ZExt(m_OneUse(m_BitCast(m_Value(SrcY))))), in foldConcatOfBoolMasks()
3460 if (!match(&I, m_c_BitwiseLogic(m_ZExt(m_Value(ZExted)), in shrinkType()
3462 !match(&I, m_LShr(m_ZExt(m_Value(ZExted)), m_Value(OtherOperand)))) in shrinkType()
H A DLoopIdiomVectorize.cpp373 if (IdxA != IdxB || !match(IdxA, m_ZExt(m_Specific(Index)))) in recognizeByteCompare()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp1439 if (!match(LHS, m_ZExt(m_Value(LHSOp))) || !ICmp->isSigned()) in canonicalizeExitCondition()
1488 if (!match(LHS, m_ZExt(m_Value(LHSOp)))) in canonicalizeExitCondition()
H A DConstraintElimination.cpp587 if (match(V, m_ZExt(m_Value(Op0)))) { in decompose()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h988 template <typename Opnd> inline UnaryOpc_match<Opnd> m_ZExt(const Opnd &Op) {
1016 return m_AnyOf(m_ZExt(Op), Op);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp94 : match(&V, m_ZExt(PatternMatch::m_Value(CastSrc))); in canSafelyConvertTo16Bit()
1237 match(Src0, m_ZExt(PatternMatch::m_Value(ExtSrc)))) || in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp775 !match(T, m_Shl(m_ZExt(m_Value(Q)), m_ZExt(m_Specific(CIV))))) in matchLeftShift()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h2163 inline CastInst_match<OpTy, ZExtInst> m_ZExt(const OpTy &Op) { in m_ZExt() function
2175 return m_CombineOr(m_ZExt(Op), Op); in m_ZExtOrSelf()
2195 return m_CombineOr(m_ZExt(Op), m_SExt(Op)); in m_ZExtOrSExt()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp6101 if (match(Op, m_Shl(m_ZExt(m_VScale()), m_ConstantInt())) || in shouldSinkVScale()
6102 match(Op, m_Mul(m_ZExt(m_VScale()), m_ConstantInt()))) { in shouldSinkVScale()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp8393 m_c_Or(m_OneUse(m_ZExt(m_Value(LValue))), in splitMergedValStore()
8394 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_Value(HValue))), in splitMergedValStore()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp3973 if (match(V, m_ZExt(m_Value(X)))) { in collectBitParts()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp4142 if (match(U->getOperand(0), m_ZExt(m_Value(X))) && in ComputeNumSignBitsImpl()
10218 m_ZExt(m_SpecificICmp( in stripNullTest()

12