Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp1187 if (match(I, m_Add(m_SExt(m_Value(LHS)), m_SExt(m_Value(RHS))))) { in reuniteExts()
1198 } else if (match(I, m_Sub(m_SExt(m_Value(LHS)), m_SExt(m_Value(RHS))))) { in reuniteExts()
H A DStraightLineStrengthReduce.cpp557 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx))) && in allocateCandidatesAndFindBasisForGEP()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp427 (match(Op0, m_SExt(m_Value(X))) && match(Op1, m_SExt(m_Value(Y))))) && in visitMul()
436 if (((match(Op0, m_SExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul()
437 (match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_SExt(m_Value(Y))))) && in visitMul()
454 if (match(Op0, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitMul()
1415 if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitUDiv()
1465 (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1))) in visitSDiv()
1499 if (match(Op0, m_OneUse(m_SExt(m_Value(Op0Src)))) && in visitSDiv()
2053 if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitURem()
H A DInstCombineAndOrXor.cpp1517 !match(I.getOperand(1), m_SExt(m_Value(Cond))) || in canonicalizeConditionalNegationViaMathToSelect()
1650 if (match(Cast, m_OneUse(m_SExt(m_Value(X))))) { in foldLogicCastConstant()
2276 if (match(Op0, m_OneUse(m_SExt(m_AShr(m_Value(X), m_APInt(ShiftC))))) && in visitAnd()
2640 if (match(&I, m_c_And(m_OneUse(m_SExt(m_Value(A))), m_Value(B))) && in visitAnd()
2646 if (match(&I, m_c_And(m_Not(m_SExt(m_Value(A))), m_Value(B))) && in visitAnd()
3026 if (match(A, m_SExt(m_Value(Cond))) && in getSelectCondition()
3029 if (match(B, m_SExt(m_Not(m_Specific(Cond))))) in getSelectCondition()
3038 if (match(NotB, m_SExt(m_Specific(Cond)))) in getSelectCondition()
3051 if (match(A, (m_Xor(m_SExt(m_Value(Cond)), m_Constant(AConst)))) && in getSelectCondition()
3052 match(B, (m_Xor(m_SExt(m_Specific(Cond)), m_Constant(BConst)))) && in getSelectCondition()
[all …]
H A DInstCombineAddSub.cpp832 if (match(Op0, m_OneUse(m_SExt(m_NSWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
878 if (match(Op0, m_SExt(m_Value(X))) && in foldAddWithConstant()
970 if (match(Op0, m_SExt(m_Value(X))) && in foldAddWithConstant()
1245 m_SExt(m_ICmp(Pred, m_And(m_Specific(X), m_APInt(MaskC)), in foldAddToAshr()
1579 if (match(&I, m_c_BinOp(m_ZExt(m_Value(A)), m_SExt(m_Deferred(A)))) && in visitAdd()
2307 if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitSub()
H A DInstCombineSimplifyDemanded.cpp498 m_OneUse(m_SExt(m_Value(Y))))) && in SimplifyDemandedUseBits()
514 if (match(I, m_Add(m_OneUse(m_SExt(m_Value(X))), in SimplifyDemandedUseBits()
515 m_OneUse(m_SExt(m_Value(Y))))) && in SimplifyDemandedUseBits()
H A DInstCombineShifts.cpp412 if (match(Op1, m_OneUse(m_SExt(m_Value(Y))))) { in commonShiftTransforms()
1339 if (match(Op0, m_SExt(m_Value(X)))) { in visitLShr()
1621 if (match(Op0, m_OneUse(m_SExt(m_Value(X)))) && in visitAShr()
H A DInstCombineCalls.cpp532 if (match(Op0, m_OneUse(m_SExt(m_Value(X))))) { in foldCttzCtlz()
1603 if (match(IIOperand, m_OneUse(m_SExt(m_Value(X))))) { in visitCallInst()
1653 if (match(I0, m_SExt(m_Value(X))) && match(I1, m_SExt(m_Value(Y))) && in visitCallInst()
1660 if (match(I0, m_SExt(m_Value(X))) && match(I1, m_Constant(C)) && in visitCallInst()
H A DInstCombineVectorOps.cpp1517 else if (match(Vec, m_SExt(m_Value(X))) && match(Scalar, m_SExt(m_Value(Y)))) in narrowInsElt()
H A DInstructionCombining.cpp1415 if (!match(BO0, m_SExt(m_Value(X))) || !match(BO1, m_ImmConstant(C)) || in foldBinopOfSextBoolToSelect()
2062 bool IsSext = match(Op0, m_SExt(m_Value(X))); in narrowMathIfNoOverflow()
H A DInstCombineCasts.cpp764 if (match(Src, m_LShr(m_SExt(m_Value(A)), m_Constant(C)))) { in visitTrunc()
H A DInstCombineCompares.cpp6377 if (match(&I, m_c_ICmp(Pred, m_Value(X), m_OneUse(m_SExt(m_Value(Y))))) && in foldICmpUsingBoolRange()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h1749 inline CastInst_match<OpTy, Instruction::SExt> m_SExt(const OpTy &Op) { in m_SExt() function
1773 return m_CombineOr(m_SExt(Op), Op); in m_SExtOrSelf()
1781 return m_CombineOr(m_SExt(Op), m_NNegZExt(Op)); in m_SExtLike()
1788 return m_CombineOr(m_ZExt(Op), m_SExt(Op)); in m_ZExtOrSExt()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp904 match(Src0, m_SExt(PatternMatch::m_Value(ExtSrc))))) && in instCombineIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp47 Mask, PatternMatch::m_SExt(PatternMatch::m_Value(ExtMask))) && in getBoolVecFromMask()
2699 if (match(Mask, PatternMatch::m_SExt(PatternMatch::m_Value(BoolVec))) && in instCombineIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1273 if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in simplifySRemInst()
1349 (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1))) in simplifyShift()
H A DValueTracking.cpp7778 m_CombineOr(m_Specific(CmpLHS), m_SExt(m_Specific(CmpLHS))); in matchSelectPattern()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp15175 if (match(&Op, m_SExt(m_Value()))) { in shouldSinkOperands()
15192 if (match(Shuffle->getOperand(0), m_SExt(m_Value()))) in shouldSinkOperands()