| /freebsd-14.2/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 | 1207 m_Trunc(m_Specific(Val)))) && in getValueFromICmpCondition()
|
| H A D | InstructionSimplify.cpp | 885 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in simplifySubInst() 886 match(Op1, m_Trunc(m_Value(Y)))) in simplifySubInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 230 if ((match(V, m_ZExtOrSExt(m_Value(X))) || match(V, m_Trunc(m_Value(X)))) && in canAlwaysEvaluateInType() 589 if (match(BinOp0, m_Trunc(m_Value(A))) && match(BinOp1, m_Constant(C))) { in narrowBinOp() 1198 if (match(Src, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt() 1205 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt() 1216 if (match(Src, m_And(m_Trunc(m_Value(X)), m_Constant(C))) && in visitZExt() 1433 if (match(Src, m_Trunc(m_Value(X)))) { in visitSExt() 1479 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_Constant(BA)), in visitSExt() 1499 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() 1098 if (match(Op0, m_OneUse(m_Trunc(m_OneUse(m_BinOp(Shr))))) && in visitShl() 1393 if (match(Op0, m_OneUse(m_Trunc(m_Instruction(TruncSrc)))) && in visitLShr()
|
| H A D | InstCombineVectorOps.cpp | 1572 if (!match(ScalarOp, m_Trunc(m_Value(X))) || in foldTruncInsEltPair() 1573 !match(Scalar0, m_Trunc(m_LShr(m_Specific(X), m_ConstantInt(ShAmt))))) in foldTruncInsEltPair() 1576 if (!match(Scalar0, m_Trunc(m_Value(X))) || in foldTruncInsEltPair() 1577 !match(ScalarOp, m_Trunc(m_LShr(m_Specific(X), m_ConstantInt(ShAmt))))) in foldTruncInsEltPair()
|
| H A D | InstCombineCompares.cpp | 1495 if (match(&Cmp, m_ICmp(Pred, m_Trunc(m_Value(X)), m_Trunc(m_Value(Y))))) { in foldICmpTruncWithTruncOrExt() 1506 else if (match(&Cmp, m_c_ICmp(Pred, m_Trunc(m_Value(X)), in foldICmpTruncWithTruncOrExt() 1780 if (match(And->getOperand(0), m_OneUse(m_Trunc(m_Value(W)))) && in foldICmpAndConstConst() 5388 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), m_ConstantInt(ShAmt))))) && in foldICmpEquality() 5416 if (match(Op0, m_AShr(m_Trunc(m_Value(A)), m_SpecificInt(BitWidth - 1))) && in foldICmpEquality() 5417 match(Op1, m_Trunc(m_LShr(m_Specific(A), m_SpecificInt(BitWidth)))) && in foldICmpEquality() 5499 if (!match(Op0, m_OneUse(m_Trunc(m_Value(X)))) || !match(Op1, m_APInt(C))) in foldICmpWithTrunc()
|
| H A D | InstCombineAndOrXor.cpp | 840 } else if (match(X0, m_Trunc(m_Specific(X1)))) { in foldSignedTruncationCheck() 1076 if (!match(V, m_OneUse(m_Trunc(m_Value(X))))) in matchIntPart() 3280 if (match(RHS0, m_Trunc(m_Value(V))) && in foldAndOrOfICmps() 3284 } else if (match(LHS0, m_Trunc(m_Value(V))) && in foldAndOrOfICmps()
|
| H A D | InstCombineAddSub.cpp | 2542 if (match(Op0, m_Trunc(m_PtrToInt(m_Value(LHSOp)))) && in visitSub() 2543 match(Op1, m_Trunc(m_PtrToInt(m_Value(RHSOp))))) in visitSub()
|
| H A D | InstCombineSelect.cpp | 1136 !match(SelectArg, m_Trunc(m_Value(Count)))) in foldSelectCttzCtlz()
|
| H A D | InstCombineCalls.cpp | 1880 if (match(IIOperand, m_Trunc(m_BSwap(m_Value(X))))) { in visitCallInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopFlatten.cpp | 205 match(U, m_c_Add(m_Trunc(m_Specific(InnerInductionPHI)), in matchLinearIVUser() 207 match(MatchedMul, m_c_Mul(m_Trunc(m_Specific(OuterInductionPHI)), in matchLinearIVUser()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 1737 inline CastOperator_match<OpTy, Instruction::Trunc> m_Trunc(const OpTy &Op) { in m_Trunc() function 1744 return m_CombineOr(m_Trunc(Op), Op); in m_TruncOrSelf()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 3791 if (match(V, m_Trunc(m_Value(X)))) { in collectBitParts()
|