Home
last modified time | relevance | path

Searched refs:m_SExt (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanPatternMatch.h253 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 DVPlanTransforms.cpp1017 unsigned ExtOpcode = match(R.getOperand(0), m_SExt(m_VPValue())) in simplifyRecipe()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp1233 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 DStraightLineStrengthReduce.cpp555 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx))) && in allocateCandidatesAndFindBasisForGEP()
H A DConstraintElimination.cpp514 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 DInstCombineMulDivRem.cpp450 (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 DInstCombineAndOrXor.cpp1598 !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 DInstCombineAddSub.cpp885 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 DInstCombineShifts.cpp415 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 DInstCombineSimplifyDemanded.cpp494 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 DInstCombineCalls.cpp526 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 DInstCombineVectorOps.cpp1525 else if (match(Vec, m_SExt(m_Value(X))) && match(Scalar, m_SExt(m_Value(Y)))) in narrowInsElt()
H A DInstructionCombining.cpp1637 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 DInstCombineCasts.cpp785 if (match(Src, m_LShr(m_SExt(m_Value(A)), m_Constant(C)))) { in visitTrunc()
H A DInstCombineCompares.cpp6706 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 DSDPatternMatch.h687 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 DPatternMatch.h2039 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 DAMDGPUInstCombineIntrinsic.cpp903 match(Src0, m_SExt(PatternMatch::m_Value(ExtSrc))))) && in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp48 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 DInstructionSimplify.cpp1290 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 DValueTracking.cpp8533 m_CombineOr(m_Specific(CmpLHS), m_SExt(m_Specific(CmpLHS))); in matchSelectPattern()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp5241 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 DAArch64ISelLowering.cpp16214 if (match(&Op, m_SExt(m_Value()))) { in shouldSinkOperands()
16231 if (match(Shuffle->getOperand(0), m_SExt(m_Value()))) in shouldSinkOperands()