| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyTargetTransformInfo.cpp | 303 if (match(V, m_Shuffle(m_InsertElt(m_Value(), m_Value(), m_ZeroInt()), in isProfitableToSinkOperands()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MIPatternMatch.h | 247 inline SpecificConstantMatch m_ZeroInt() { return SpecificConstantMatch(0); } in m_ZeroInt() function 898 return m_GSub(m_ZeroInt(), Src);
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 140 m_ZeroInt()), in foldGuardedFunnelShift() 569 if (!match(GEP->idx_begin()->get(), m_ZeroInt())) in tryToRecognizeTableBasedCttz()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCalls.cpp | 2345 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst() 2350 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst() 2382 match(Op1, m_ZeroInt())) { in visitCallInst() 2992 if (match(SelectRHS, m_ZeroInt())) { in visitCallInst() 2995 } else if (match(SelectLHS, m_ZeroInt())) { in visitCallInst() 3141 if (!match(KeyArg, m_ZeroInt())) in visitCallInst() 3146 if (match(KeyArg, m_ZeroInt()) && in visitCallInst()
|
| H A D | InstCombineAddSub.cpp | 1755 CmpInst::ICMP_SGT, m_Specific(A), m_ZeroInt())))))) { in visitAdd() 1783 ICmpInst::ICMP_NE, m_Specific(A), m_ZeroInt())))))) { in visitAdd() 1806 m_ZeroInt())))) && in visitAdd() 2228 if (MinMax->isSigned() && match(Y, m_ZeroInt()) && in foldSubOfMinMax() 2315 bool IsNegation = match(Op0, m_ZeroInt()); in visitSub()
|
| H A D | InstCombineAndOrXor.cpp | 943 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt()))) in foldIsPowerOf2OrZero() 978 match(Cmp0, m_SpecificICmp(ICmpInst::ICMP_NE, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2() 990 match(Cmp0, m_SpecificICmp(ICmpInst::ICMP_EQ, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2() 3428 PredL == PredR && match(LHS1, m_ZeroInt()) && match(RHS1, m_ZeroInt()) && in foldAndOrOfICmps() 4136 m_ZeroInt()), in visitOr()
|
| H A D | InstCombineCasts.cpp | 1040 if (Cmp->hasOneUse() && match(Cmp->getOperand(1), m_ZeroInt()) && in transformZExtICmp() 1355 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_ZeroInt())) { in transformSExtICmp()
|
| H A D | InstCombineVectorOps.cpp | 1384 if (!match(Op0, m_InsertElt(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat() 2165 if (match(BO0, m_ZeroInt())) in getAlternateBinop()
|
| H A D | InstCombineSelect.cpp | 2542 m_ZeroInt())))) in foldSelectFunnelShift() 3031 if (!match(Cond, m_ICmp(Pred, m_Value(XLowBits), m_ZeroInt())) || in foldRoundUpIntegerWithPow2Alignment()
|
| H A D | InstCombineCompares.cpp | 5808 !match(Op1, m_ZeroInt())) in foldICmpPow2Test() 7386 (Pred == ICmpInst::ICMP_EQ && match(Op1, m_ZeroInt()) && in foldICmpOfUAddOv()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 599 inline cst_pred_ty<is_zero_int> m_ZeroInt() { in m_ZeroInt() function 2584 if (AddExpr.match(ICmpLHS) && m_ZeroInt().match(ICmpRHS) && in match() 2589 if (m_ZeroInt().match(ICmpLHS) && AddExpr.match(ICmpRHS) && in match() 2901 return m_Sub(m_ZeroInt(), V); 2910 return m_NSWSub(m_ZeroInt(), V);
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 1709 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt())) || C->isZero()) in simplifyAndOrOfICmpsWithCtpop() 4854 if (match(TrueVal, m_One()) && match(FalseVal, m_ZeroInt())) in simplifySelectInst() 4867 match(TrueVal, m_ZeroInt())) in simplifySelectInst() 4871 if (match(FalseVal, m_ZeroInt())) { in simplifySelectInst() 4920 if (match(FalseVal, m_ZeroInt())) in simplifySelectInst() 4931 if (match(TrueVal, m_ZeroInt())) in simplifySelectInst() 6276 if (match(Op1, PatternMatch::m_ZeroInt())) in simplifyLdexp()
|
| H A D | VectorUtils.cpp | 406 m_Shuffle(m_InsertElt(m_Value(), m_Value(Splat), m_ZeroInt()), in getSplatValue()
|
| H A D | ValueTracking.cpp | 8731 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern() 8732 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerLowering.cpp | 274 if (!mi_match(InsMI->getOperand(3).getReg(), MRI, m_ZeroInt())) in matchDupFromInsertVectorElt()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.cpp | 2858 m_ZeroInt()), in isProfitableToSinkOperands() 2895 !match(Op, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in isProfitableToSinkOperands()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 1647 else if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) in matchUAddWithOverflowConstantEdgeCases() 1713 if (Pred == ICmpInst::ICMP_EQ && match(B, m_ZeroInt())) { in combineToUSubWithOverflow() 1718 if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) { in combineToUSubWithOverflow() 7701 if (!match(SVI, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in optimizeShuffleVectorInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorize.cpp | 2007 if (!SCEVCheckCond || match(SCEVCheckCond, m_ZeroInt())) in getSCEVChecks() 2022 return (SCEVCheckCond && !match(SCEVCheckCond, m_ZeroInt())) || in hasChecks() 2140 if (match(X, m_ZeroInt())) in emitTransformedIndex() 2142 if (match(Y, m_ZeroInt())) in emitTransformedIndex()
|
| H A D | VectorCombine.cpp | 205 m_InsertElt(m_Poison(), m_OneUse(m_Value(Scalar)), m_ZeroInt()))) in vectorizeLoadInsert() 210 bool HasExtract = match(Scalar, m_ExtractElt(m_Value(X), m_ZeroInt())); in vectorizeLoadInsert()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstructionSelector.cpp | 3509 if (mi_match(Def->getOperand(2).getReg(), MRI, m_ZeroInt())) { in matchZeroExtendFromS32() 3799 if (mi_match(Op, MRI, m_ZeroInt())) { in BitOp3_Op() 6297 if (STI.hasRestrictedSOffset() && mi_match(SOffset, *MRI, m_ZeroInt())) in selectBUFSOffset()
|
| H A D | AMDGPURegisterBankInfo.cpp | 1606 if (mi_match(Src2, MRI, m_ZeroInt())) in applyMappingMAD_64_32()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.cpp | 2874 m_ZeroInt()), in isProfitableToSinkOperands()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 654 if (match(CarryIn, m_ZeroInt())) { in simplifyX86addcarry()
|
| H A D | X86ISelLowering.cpp | 31971 if (match(I, m_c_ICmp(Pred, m_Sub(m_ZeroInt(), m_Specific(Op)), m_Value()))) in shouldExpandCmpArithRMWInIR() 31975 m_SpecificICmp(CmpInst::ICMP_SLT, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR() 31988 m_SpecificICmp(CmpInst::ICMP_SLT, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR() 32000 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR() 32013 m_SpecificICmp(CmpInst::ICMP_SLT, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 1631 if (match(OpPredicate, m_ZeroInt())) { in simplifySVEIntrinsic()
|