/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VPlanPatternMatch.h | 253 inline AllUnaryRecipe_match<Op0_t, Instruction::SExt> m_SExt(const Op0_t &Op0) { 261 return m_CombineOr(m_ZExt(Op0), m_SExt(Op0));
|
H A D | VPlanTransforms.cpp | 1017 unsigned ExtOpcode = match(R.getOperand(0), m_SExt(m_VPValue())) in simplifyRecipe()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SeparateConstOffsetFromGEP.cpp | 1233 if (match(I, m_Add(m_SExt(m_Value(LHS)), m_SExt(m_Value(RHS))))) { in reuniteExts() 1246 } else if (match(I, m_Sub(m_SExt(m_Value(LHS)), m_SExt(m_Value(RHS))))) { in reuniteExts()
|
H A D | StraightLineStrengthReduce.cpp | 555 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx))) && in allocateCandidatesAndFindBasisForGEP()
|
H A D | ConstraintElimination.cpp | 514 if (match(V, m_SExt(m_Value(Op0)))) in decompose() 558 if (match(V, m_SExt(m_Value(Op0)))) { in decompose()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 450 (match(Op0, m_SExt(m_Value(X))) && match(Op1, m_SExt(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() 476 if (match(&I, m_c_Mul(m_OneUse(m_SExt(m_Value(X))), m_Value(Y))) && in visitMul() 484 if (match(Op0, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitMul() 1551 if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitUDiv() 1601 (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1))) in visitSDiv() 1635 if (match(Op0, m_OneUse(m_SExt(m_Value(Op0Src)))) && in visitSDiv() 2211 if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitURem()
|
H A D | InstCombineAndOrXor.cpp | 1598 !match(I.getOperand(1), m_SExt(m_Value(Cond))) || in canonicalizeConditionalNegationViaMathToSelect() 1600 !match(I.getOperand(0), m_c_Add(m_SExt(m_Specific(Cond)), m_Value(X)))) in canonicalizeConditionalNegationViaMathToSelect() 2401 if (match(Op0, m_OneUse(m_SExt(m_AShr(m_Value(X), m_APInt(ShiftC))))) && in visitAnd() 2750 if (match(&I, m_c_And(m_SExt(m_Value(A)), m_Value(B))) && in visitAnd() 2756 if (match(&I, m_c_And(m_Not(m_SExt(m_Value(A))), m_Value(B))) && in visitAnd() 3156 if (match(A, m_SExt(m_Value(Cond))) && in getSelectCondition() 3159 if (match(B, m_SExt(m_Not(m_Specific(Cond))))) in getSelectCondition() 3168 if (match(NotB, m_SExt(m_Specific(Cond)))) in getSelectCondition() 3181 if (match(A, (m_Xor(m_SExt(m_Value(Cond)), m_Constant(AConst)))) && in getSelectCondition() 3182 match(B, (m_Xor(m_SExt(m_Specific(Cond)), m_Constant(BConst)))) && in getSelectCondition() [all …]
|
H A D | InstCombineAddSub.cpp | 885 if (match(Op0, m_SExt(m_Value(X))) && in foldAddWithConstant() 983 if (match(Op0, m_SExt(m_Value(X))) && in foldAddWithConstant() 1287 m_SExt(m_ICmp(Pred, m_And(m_Specific(X), m_APInt(MaskC)), in foldAddToAshr() 1621 if (match(&I, m_c_BinOp(m_ZExt(m_Value(A)), m_SExt(m_Deferred(A)))) && in visitAdd() 2300 if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitSub() 2452 match(RHS, m_SExt(m_Value(C))) && in visitSub()
|
H A D | InstCombineShifts.cpp | 415 if (match(Op1, m_OneUse(m_SExt(m_Value(Y))))) { in commonShiftTransforms() 1423 if (match(Op0, m_SExt(m_Value(X)))) { in visitLShr() 1724 if (match(Op0, m_OneUse(m_SExt(m_Value(X)))) && in visitAShr()
|
H A D | InstCombineSimplifyDemanded.cpp | 494 m_OneUse(m_SExt(m_Value(Y))))) && in SimplifyDemandedUseBits() 509 if (match(I, m_Add(m_SExt(m_Value(X)), m_SExt(m_Value(Y)))) && in SimplifyDemandedUseBits()
|
H A D | InstCombineCalls.cpp | 526 if (match(Op0, m_OneUse(m_SExt(m_Value(X))))) { in foldCttzCtlz() 1679 if (match(IIOperand, m_OneUse(m_SExt(m_Value(X))))) { in visitCallInst() 1739 if (match(I0, m_SExt(m_Value(X))) && match(I1, m_SExt(m_Value(Y))) && in visitCallInst() 1746 if (match(I0, m_SExt(m_Value(X))) && match(I1, m_Constant(C)) && in visitCallInst() 2685 if (match(Exp, m_SExt(m_Value(ExtSrc))) && in visitCallInst()
|
H A D | InstCombineVectorOps.cpp | 1525 else if (match(Vec, m_SExt(m_Value(X))) && match(Scalar, m_SExt(m_Value(Y)))) in narrowInsElt()
|
H A D | InstructionCombining.cpp | 1637 if (!match(BO0, m_SExt(m_Value(X))) || !match(BO1, m_ImmConstant(C)) || in foldBinopOfSextBoolToSelect() 2269 bool IsSext = match(Op0, m_SExt(m_Value(X))); in narrowMathIfNoOverflow()
|
H A D | InstCombineCasts.cpp | 785 if (match(Src, m_LShr(m_SExt(m_Value(A)), m_Constant(C)))) { in visitTrunc()
|
H A D | InstCombineCompares.cpp | 6706 if (match(&I, m_c_ICmp(Pred, m_Value(X), m_OneUse(m_SExt(m_Value(Y))))) && in foldICmpUsingBoolRange()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | SDPatternMatch.h | 687 template <typename Opnd> inline auto m_SExt(const Opnd &Op) { 708 return m_AnyOf(m_SExt(Op), Op);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 2039 inline CastInst_match<OpTy, SExtInst> m_SExt(const OpTy &Op) { in m_SExt() function 2063 return m_CombineOr(m_SExt(Op), Op); in m_SExtOrSelf() 2070 return m_CombineOr(m_SExt(Op), m_NNegZExt(Op)); in m_SExtLike() 2077 return m_CombineOr(m_ZExt(Op), m_SExt(Op)); in m_ZExtOrSExt()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstCombineIntrinsic.cpp | 903 match(Src0, m_SExt(PatternMatch::m_Value(ExtSrc))))) && in instCombineIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstCombineIntrinsic.cpp | 48 if (match(Mask, m_SExt(m_Value(ExtMask))) && in getBoolVecFromMask() 2906 if (match(Mask, m_SExt(m_Value(BoolVec))) && in instCombineIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 1290 if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in simplifySRemInst() 1366 (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1))) in simplifyShift()
|
H A D | ValueTracking.cpp | 8533 m_CombineOr(m_Specific(CmpLHS), m_SExt(m_Specific(CmpLHS))); in matchSelectPattern()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | DAGCombiner.cpp | 5241 sd_match(N, m_BinOp(Opcode, m_SExt(m_Value(X)), m_SExt(m_Value(Y)))) && in visitAVG()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 16214 if (match(&Op, m_SExt(m_Value()))) { in shouldSinkOperands() 16231 if (match(Shuffle->getOperand(0), m_SExt(m_Value()))) in shouldSinkOperands()
|