/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | CmpInstAnalysis.cpp | 146 if (LookThruTrunc && match(LHS, m_Trunc(m_Value(X)))) { in decomposeBitTestICmp()
|
H A D | LazyValueInfo.cpp | 1215 m_Trunc(m_Specific(Val)))) && in getValueFromICmpCondition()
|
H A D | InstructionSimplify.cpp | 886 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in simplifySubInst() 887 match(Op1, m_Trunc(m_Value(Y)))) in simplifySubInst()
|
H A D | ValueTracking.cpp | 746 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 D | InstCombineCasts.cpp | 236 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 D | InstCombineShifts.cpp | 74 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 D | InstCombineVectorOps.cpp | 1580 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 D | InstCombineCompares.cpp | 1503 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 D | InstCombineAndOrXor.cpp | 879 } 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 D | InstCombineAddSub.cpp | 2552 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 D | InstCombineSelect.cpp | 1152 !match(SelectArg, m_Trunc(m_Value(Count)))) in foldSelectCttzCtlz()
|
H A D | InstructionCombining.cpp | 2660 if (match(V, m_Trunc(m_Value(A)))) { in getFreelyInvertedImpl()
|
H A D | InstCombineCalls.cpp | 1968 if (match(IIOperand, m_Trunc(m_BSwap(m_Value(X))))) { in visitCallInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopFlatten.cpp | 212 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 D | VPlanPatternMatch.h | 243 m_Trunc(const Op0_t &Op0) {
|
H A D | VPlanTransforms.cpp | 1005 if (match(&R, m_Trunc(m_ZExtOrSExt(m_VPValue(A))))) { in simplifyRecipe()
|
H A D | VectorCombine.cpp | 2145 if (!match(ReductionSrc, m_OneUse(m_Trunc(m_Value(Src)))) && in foldCastFromReductions()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | SDPatternMatch.h | 695 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 D | PatternMatch.h | 2013 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 D | Local.cpp | 3897 if (match(V, m_Trunc(m_Value(X)))) { in collectBitParts()
|