| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 1187 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 D | StraightLineStrengthReduce.cpp | 557 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx))) && in allocateCandidatesAndFindBasisForGEP()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 427 (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 D | InstCombineAndOrXor.cpp | 1517 !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 D | InstCombineAddSub.cpp | 832 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 D | InstCombineSimplifyDemanded.cpp | 498 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 D | InstCombineShifts.cpp | 412 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 D | InstCombineCalls.cpp | 532 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 D | InstCombineVectorOps.cpp | 1517 else if (match(Vec, m_SExt(m_Value(X))) && match(Scalar, m_SExt(m_Value(Y)))) in narrowInsElt()
|
| H A D | InstructionCombining.cpp | 1415 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 D | InstCombineCasts.cpp | 764 if (match(Src, m_LShr(m_SExt(m_Value(A)), m_Constant(C)))) { in visitTrunc()
|
| H A D | InstCombineCompares.cpp | 6377 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 D | PatternMatch.h | 1749 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 D | AMDGPUInstCombineIntrinsic.cpp | 904 match(Src0, m_SExt(PatternMatch::m_Value(ExtSrc))))) && in instCombineIntrinsic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 47 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 D | InstructionSimplify.cpp | 1273 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 D | ValueTracking.cpp | 7778 m_CombineOr(m_Specific(CmpLHS), m_SExt(m_Specific(CmpLHS))); in matchSelectPattern()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 15175 if (match(&Op, m_SExt(m_Value()))) { in shouldSinkOperands() 15192 if (match(Shuffle->getOperand(0), m_SExt(m_Value()))) in shouldSinkOperands()
|