Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp920 m_Add(m_OneUse(m_ZExt(m_Value(X))), m_OneUse(m_ZExt(m_Value(Y)))))) in foldLShrOverflowBit()
1046 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in visitShl()
1232 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitShl()
1414 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && in visitLShr()
1544 m_OneUse(m_ZExt(m_Value(X))))))) { in visitLShr()
1566 match(X, m_ZExt(m_Value(BoolX))) && match(Y, m_ZExt(m_Value(BoolY))) && in visitLShr()
1689 if (match(Op0, m_Shl(m_ZExt(m_Value(X)), m_Specific(Op1))) && in visitAShr()
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()
1000 if (match(Op0, m_ZExt(m_Add(m_Value(X), m_AllOnes())))) { in foldAddWithConstant()
1614 if ((match(RHS, m_ZExt(m_Value(A))) && in visitAdd()
1615 match(LHS, m_ZExt(m_NUWSub(m_Value(B), m_Specific(A))))) || in visitAdd()
1616 (match(LHS, m_ZExt(m_Value(A))) && in visitAdd()
1617 match(RHS, m_ZExt(m_NUWSub(m_Value(B), m_Specific(A)))))) in visitAdd()
1621 if (match(&I, m_c_BinOp(m_ZExt(m_Value(A)), m_SExt(m_Deferred(A)))) && in visitAdd()
[all …]
H A DInstCombineMulDivRem.cpp449 if (((match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul()
459 if (((match(Op0, m_SExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul()
460 (match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_SExt(m_Value(Y))))) && in visitMul()
469 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul()
471 if (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul()
1426 if (match(Op, m_ZExt(m_Value(X)))) in takeLog2()
1479 if (match(N, m_ZExt(m_Value(X))) && match(D, m_ZExt(m_Value(Y))) && in narrowUDivURem()
1488 if (isa<Instruction>(N) && match(N, m_OneUse(m_ZExt(m_Value(X)))) && in narrowUDivURem()
1499 if (isa<Instruction>(D) && match(D, m_OneUse(m_ZExt(m_Value(X)))) && in narrowUDivURem()
H A DInstCombineAndOrXor.cpp1723 if (match(Cast, m_OneUse(m_ZExt(m_Value(X))))) { in foldLogicCastConstant()
1762 match(Op1, m_OneUse(m_ZExt(m_ICmp(Pred, m_Value(), m_Value())))); in foldCastedBitwiseLogic()
1926 if (!match(Op1, m_ZExt(m_Value(X))) || Op1->hasNUsesOrMore(3)) in narrowMaskedBinOp()
2454 if (match(BO, m_c_BinOp(m_OneUse(m_ZExt(m_Value(X))), m_APInt(C1))) && in visitAnd()
2470 match(BO->getOperand(0), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd()
2480 match(BO->getOperand(1), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd()
2590 if (match(&I, m_And(m_OneUse(m_Shl(m_ZExt(m_Value(X)), m_Value(Y))), in visitAnd()
2761 if (match(&I, m_c_And(m_OneUse(m_ZExt(m_Value(A))), m_Value(B))) && in visitAnd()
2938 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in convertOrOfShiftsToFunnelShift()
2940 m_And(m_Neg(m_ZExt(m_And(m_Specific(X), m_SpecificInt(Mask)))), in convertOrOfShiftsToFunnelShift()
[all …]
H A DInstCombineCalls.cpp535 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && match(Op1, m_One())) { in foldCttzCtlz()
670 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in foldCtpop()
1718 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_ZExt(m_Value(Y))) && in visitCallInst()
1724 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_Constant(C)) && in visitCallInst()
1917 if (match(IIOperand, m_ZExt(m_Value(X))) && in visitCallInst()
2678 if (match(Exp, m_ZExt(m_Value(ExtSrc))) && in visitCallInst()
H A DInstCombineCasts.cpp503 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in narrowFunnelShift()
504 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in narrowFunnelShift()
883 if (match(Src, m_OneUse(m_Intrinsic<Intrinsic::ctlz>(m_ZExt(m_Value(A)), in visitTrunc()
H A DInstCombineCompares.cpp1530 m_OneUse(m_ZExt(m_Value(Y)))))) { in foldICmpTruncWithTruncOrExt()
1954 if (match(And, m_OneUse(m_c_And(m_OneUse(m_ZExt(m_Value(X))), m_Value(Y)))) && in foldICmpAndConstant()
5668 if (match(Op1, m_ZExt(m_Value(A))) && in foldICmpEquality()
6700 if (match(&I, m_c_ICmp(Pred, m_Value(X), m_OneUse(m_ZExt(m_Value(Y))))) && in foldICmpUsingBoolRange()
7528 if (match(Op0, m_NUWMul(m_ZExt(m_Value(X)), m_ZExt(m_Value(Y)))) && in visitICmpInst()
H A DInstCombineVectorOps.cpp1527 else if (match(Vec, m_ZExt(m_Value(X))) && match(Scalar, m_ZExt(m_Value(Y)))) in narrowInsElt()
H A DInstCombineSimplifyDemanded.cpp493 if (match(I, m_c_Add(m_OneUse(m_ZExt(m_Value(X))), in SimplifyDemandedUseBits()
H A DInstCombineSelect.cpp1151 if (!match(SelectArg, m_ZExt(m_Value(Count))) && in foldSelectCttzCtlz()
H A DInstructionCombining.cpp2270 if (!IsSext && !match(Op0, m_ZExt(m_Value(X)))) in narrowMathIfNoOverflow()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSelectOptimize.cpp150 I, m_c_Or(m_OneUse(m_ZExt(m_Value(X))), m_Value())) && in match()
182 m_OneUse(m_ZExt(m_Value(X))))) in getNonInvertedCondition()
185 m_OneUse(m_ZExt(m_Value(X))))) in getNonInvertedCondition()
232 m_OneUse(m_ZExt(m_Value(X))))) in getFalseValue()
235 m_OneUse(m_ZExt(m_Value(X))))) in getFalseValue()
H A DCodeGenPrepare.cpp8001 m_c_Or(m_OneUse(m_ZExt(m_Value(LValue))), in splitMergedValStore()
8002 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_Value(HValue))), in splitMergedValStore()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanPatternMatch.h248 inline AllUnaryRecipe_match<Op0_t, Instruction::ZExt> m_ZExt(const Op0_t &Op0) {
261 return m_CombineOr(m_ZExt(Op0), m_SExt(Op0));
H A DLoopIdiomVectorize.cpp324 if (IdxA != IdxB || !match(IdxA, m_ZExt(m_Specific(Index)))) in recognizeByteCompare()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp641 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))), in foldLoadsRecursive()
644 m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))))))) { in foldLoadsRecursive()
655 (match(X, m_OneUse(m_ZExt(m_Instruction(L1)))) || in foldLoadsRecursive()
656 match(X, m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L1)))), in foldLoadsRecursive()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h683 template <typename Opnd> inline UnaryOpc_match<Opnd> m_ZExt(const Opnd &Op) {
702 return m_AnyOf(m_ZExt(Op), Op);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp93 : match(&V, m_ZExt(PatternMatch::m_Value(CastSrc))); in canSafelyConvertTo16Bit()
901 match(Src0, m_ZExt(PatternMatch::m_Value(ExtSrc)))) || in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp1463 if (!match(LHS, m_ZExt(m_Value(LHSOp))) || !ICmp->isSigned()) in canonicalizeExitCondition()
1513 if (!match(LHS, m_ZExt(m_Value(LHSOp)))) in canonicalizeExitCondition()
H A DConstraintElimination.cpp553 if (match(V, m_ZExt(m_Value(Op0)))) { in decompose()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h2045 inline CastInst_match<OpTy, ZExtInst> m_ZExt(const OpTy &Op) { in m_ZExt() function
2057 return m_CombineOr(m_ZExt(Op), Op); in m_ZExtOrSelf()
2077 return m_CombineOr(m_ZExt(Op), m_SExt(Op)); in m_ZExtOrSExt()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp785 !match(T, m_Shl(m_ZExt(m_Value(Q)), m_ZExt(m_Specific(CIV))))) in matchLeftShift()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp3881 if (match(V, m_ZExt(m_Value(X)))) { in collectBitParts()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp3347 if (!CmpInst::isUnsigned(Pred) && match(LHS, m_Neg(m_ZExt(m_Value())))) { in simplifyICmpWithBinOp()
H A DValueTracking.cpp3876 if (match(U->getOperand(0), m_ZExt(m_Value(X))) && in ComputeNumSignBitsImpl()

12