Home
last modified time | relevance | path

Searched refs:m_Trunc (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp146 if (LookThruTrunc && match(LHS, m_Trunc(m_Value(X)))) { in decomposeBitTestICmp()
H A DLazyValueInfo.cpp1215 m_Trunc(m_Specific(Val)))) && in getValueFromICmpCondition()
H A DInstructionSimplify.cpp886 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in simplifySubInst()
887 match(Op1, m_Trunc(m_Value(Y)))) in simplifySubInst()
H A DValueTracking.cpp746 if (match(LHS, m_Trunc(m_Specific(V)))) { in computeKnownBitsFromICmpCond()
9777 if (match(I, m_CombineOr(m_PtrToInt(m_Value(Op)), m_Trunc(m_Value(Op))))) { in addValueAffectedByCondition()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp236 if ((match(V, m_ZExtOrSExt(m_Value(X))) || match(V, m_Trunc(m_Value(X)))) && in canAlwaysEvaluateInType()
597 if (match(BinOp0, m_Trunc(m_Value(A))) && match(BinOp1, m_Constant(C))) { in narrowBinOp()
1236 if (match(Src, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt()
1243 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt()
1254 if (match(Src, m_And(m_Trunc(m_Value(X)), m_Constant(C))) && in visitZExt()
1471 if (match(Src, m_Trunc(m_Value(X)))) { in visitSExt()
1517 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_Constant(BA)), in visitSExt()
1537 if (match(Src, m_OneUse(m_AShr(m_Trunc(m_Value(X)), in visitSExt()
H A DInstCombineShifts.cpp74 m_CombineOr(m_CombineAnd(m_Trunc(m_Instruction(Sh1)), m_Value(Trunc)), in reassociateShiftAmtsOfTwoSameDirectionShifts()
202 if (match(Masked, m_CombineAnd(m_Trunc(m_Value(Masked)), m_Value(Trunc))) && in dropRedundantMaskingOfLeftShiftInput()
1117 if (match(Op0, m_OneUse(m_Trunc(m_OneUse(m_BinOp(Shr))))) && in visitShl()
1469 if (match(Op0, m_OneUse(m_Trunc(m_Instruction(TruncSrc)))) && in visitLShr()
H A DInstCombineVectorOps.cpp1580 if (!match(ScalarOp, m_Trunc(m_Value(X))) || in foldTruncInsEltPair()
1581 !match(Scalar0, m_Trunc(m_LShr(m_Specific(X), m_ConstantInt(ShAmt))))) in foldTruncInsEltPair()
1584 if (!match(Scalar0, m_Trunc(m_Value(X))) || in foldTruncInsEltPair()
1585 !match(ScalarOp, m_Trunc(m_LShr(m_Specific(X), m_ConstantInt(ShAmt))))) in foldTruncInsEltPair()
H A DInstCombineCompares.cpp1503 if (match(&Cmp, m_ICmp(Pred, m_Trunc(m_Value(X)), m_Trunc(m_Value(Y))))) { in foldICmpTruncWithTruncOrExt()
1797 if (match(And->getOperand(0), m_OneUse(m_Trunc(m_Value(W)))) && in foldICmpAndConstConst()
5717 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), m_ConstantInt(ShAmt))))) && in foldICmpEquality()
5745 if (match(Op0, m_AShr(m_Trunc(m_Value(A)), m_SpecificInt(BitWidth - 1))) && in foldICmpEquality()
5746 match(Op1, m_Trunc(m_LShr(m_Specific(A), m_SpecificInt(BitWidth)))) && in foldICmpEquality()
5828 if (!match(Op0, m_OneUse(m_Trunc(m_Value(X)))) || !match(Op1, m_APInt(C))) in foldICmpWithTrunc()
H A DInstCombineAndOrXor.cpp879 } else if (match(X0, m_Trunc(m_Specific(X1)))) { in foldSignedTruncationCheck()
1119 if (!match(V, m_OneUse(m_Trunc(m_Value(X))))) in matchIntPart()
3416 if (match(RHS0, m_Trunc(m_Value(V))) && in foldAndOrOfICmps()
3420 } else if (match(LHS0, m_Trunc(m_Value(V))) && in foldAndOrOfICmps()
H A DInstCombineAddSub.cpp2552 if (match(Op0, m_Trunc(m_PtrToInt(m_Value(LHSOp)))) && in visitSub()
2553 match(Op1, m_Trunc(m_PtrToInt(m_Value(RHSOp))))) in visitSub()
H A DInstCombineSelect.cpp1152 !match(SelectArg, m_Trunc(m_Value(Count)))) in foldSelectCttzCtlz()
H A DInstructionCombining.cpp2660 if (match(V, m_Trunc(m_Value(A)))) { in getFreelyInvertedImpl()
H A DInstCombineCalls.cpp1968 if (match(IIOperand, m_Trunc(m_BSwap(m_Value(X))))) { in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopFlatten.cpp212 match(U, m_c_Add(m_Trunc(m_Specific(InnerInductionPHI)), in matchLinearIVUser()
214 match(MatchedMul, m_c_Mul(m_Trunc(m_Specific(OuterInductionPHI)), in matchLinearIVUser()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanPatternMatch.h243 m_Trunc(const Op0_t &Op0) {
H A DVPlanTransforms.cpp1005 if (match(&R, m_Trunc(m_ZExtOrSExt(m_VPValue(A))))) { in simplifyRecipe()
H A DVectorCombine.cpp2145 if (!match(ReductionSrc, m_OneUse(m_Trunc(m_Value(Src)))) && in foldCastFromReductions()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h695 template <typename Opnd> inline UnaryOpc_match<Opnd> m_Trunc(const Opnd &Op) {
722 return Or<UnaryOpc_match<Opnd>, Opnd>(m_Trunc(Op), Op);
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h2013 inline CastInst_match<OpTy, TruncInst> m_Trunc(const OpTy &Op) { in m_Trunc() function
2034 return m_CombineOr(m_Trunc(Op), Op); in m_TruncOrSelf()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp3897 if (match(V, m_Trunc(m_Value(X)))) { in collectBitParts()