/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | MIPatternMatch.h | 238 inline SpecificConstantMatch m_ZeroInt() { return SpecificConstantMatch(0); } in m_ZeroInt() function 767 return m_GSub(m_ZeroInt(), Src);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombine.cpp | 140 if (!match(TermI, m_Br(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()), in foldGuardedFunnelShift() 561 if (!match(GEP->idx_begin()->get(), m_ZeroInt())) in tryToRecognizeTableBasedCttz()
|
/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 2440 if (AddExpr.match(ICmpLHS) && m_ZeroInt().match(ICmpRHS) && in match() 2445 if (m_ZeroInt().match(ICmpLHS) && AddExpr.match(ICmpRHS) && in match() 2734 return m_Sub(m_ZeroInt(), V); 2743 return m_NSWSub(m_ZeroInt(), V);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 2078 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst() 2083 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst() 2703 if (match(SelectRHS, m_ZeroInt())) { in visitCallInst() 2706 } else if (match(SelectLHS, m_ZeroInt())) { in visitCallInst() 2851 if (match(KeyArg, m_ZeroInt()) && in visitCallInst()
|
H A D | InstCombineAndOrXor.cpp | 916 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt()))) in foldIsPowerOf2OrZero() 943 if (JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2() 954 if (!JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2() 3379 PredL == PredR && match(LHS1, m_ZeroInt()) && match(RHS1, m_ZeroInt()) && in foldAndOrOfICmps() 3893 m_ZeroInt()), in visitOr()
|
H A D | InstCombineAddSub.cpp | 1701 m_OneUse(m_ICmp(Pred, m_Specific(A), m_ZeroInt()))))) && in visitAdd() 2102 if (MinMax->isSigned() && match(Y, m_ZeroInt()) && in foldSubOfMinMax() 2189 bool IsNegation = match(Op0, m_ZeroInt()); in visitSub()
|
H A D | InstCombineCasts.cpp | 993 if (Cmp->hasOneUse() && match(Cmp->getOperand(1), m_ZeroInt()) && in transformZExtICmp() 1304 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_ZeroInt())) { in transformSExtICmp()
|
H A D | InstCombineVectorOps.cpp | 1306 if (!match(Op0, m_InsertElt(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat() 2087 if (match(BO0, m_ZeroInt())) in getAlternateBinop()
|
H A D | InstCombineSelect.cpp | 2488 if (!match(Cond, m_OneUse(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()))) || in foldSelectFunnelShift() 2959 if (!match(Cond, m_ICmp(Pred, m_Value(XLowBits), m_ZeroInt())) || in foldRoundUpIntegerWithPow2Alignment()
|
H A D | InstCombineCompares.cpp | 5527 !match(Op1, m_ZeroInt())) in foldICmpPow2Test() 7102 (Pred == ICmpInst::ICMP_EQ && match(Op1, m_ZeroInt()) && in foldICmpOfUAddOv()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 1758 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt())) || C->isZero()) in simplifyAndOrOfICmpsWithCtpop() 4828 if (match(TrueVal, m_One()) && match(FalseVal, m_ZeroInt())) in simplifySelectInst() 4841 match(TrueVal, m_ZeroInt())) in simplifySelectInst() 4845 if (match(FalseVal, m_ZeroInt())) { in simplifySelectInst() 4894 if (match(FalseVal, m_ZeroInt())) in simplifySelectInst() 4905 if (match(TrueVal, m_ZeroInt())) in simplifySelectInst() 6237 if (match(Op1, PatternMatch::m_ZeroInt())) in simplifyLdexp()
|
H A D | VectorUtils.cpp | 259 m_Shuffle(m_InsertElt(m_Value(), m_Value(Splat), m_ZeroInt()), in getSplatValue()
|
H A D | ValueTracking.cpp | 8534 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern() 8535 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerLowering.cpp | 278 if (!mi_match(InsMI->getOperand(3).getReg(), MRI, m_ZeroInt())) in matchDupFromInsertVectorElt()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VectorCombine.cpp | 175 if (!match(&I, m_InsertElt(m_Undef(), m_Value(Scalar), m_ZeroInt())) || in vectorizeLoadInsert() 181 bool HasExtract = match(Scalar, m_ExtractElt(m_Value(X), m_ZeroInt())); in vectorizeLoadInsert()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 1645 else if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) in matchUAddWithOverflowConstantEdgeCases() 1711 if (Pred == ICmpInst::ICMP_EQ && match(B, m_ZeroInt())) { in combineToUSubWithOverflow() 1716 if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) { in combineToUSubWithOverflow() 7306 if (!match(SVI, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in optimizeShuffleVectorInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 1034 if (match(II.getOperand(PredPos), m_ZeroInt())) { in instCombineSVENoActiveUnaryErase() 1044 if (match(II.getOperand(0), m_ZeroInt())) { in instCombineSVENoActiveUnaryZero() 1568 if (match(II.getOperand(0), m_ZeroInt())) { in instCombineSVEAllOrNoActive()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstructionSelector.cpp | 3291 if (mi_match(Def->getOperand(2).getReg(), MRI, m_ZeroInt())) { in matchZeroExtendFromS32() 5269 if (STI.hasRestrictedSOffset() && mi_match(SOffset, *MRI, m_ZeroInt())) in selectBUFSOffset()
|
H A D | AMDGPURegisterBankInfo.cpp | 1578 if (mi_match(Src2, MRI, m_ZeroInt())) in applyMappingMAD_64_32()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstCombineIntrinsic.cpp | 658 if (match(CarryIn, m_ZeroInt())) { in simplifyX86addcarry()
|
H A D | X86ISelLowering.cpp | 30761 if (match(I, m_c_ICmp(Pred, m_Sub(m_ZeroInt(), m_Specific(Op)), m_Value()))) in shouldExpandCmpArithRMWInIR() 30764 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR() 30775 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR() 30786 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR() 30797 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyISelLowering.cpp | 847 if (match(V, m_Shuffle(m_InsertElt(m_Value(), m_Value(), m_ZeroInt()), in shouldSinkOperands()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.cpp | 2168 if (!match(Op, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in shouldSinkOperands()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 19385 m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in shouldSinkOperands()
|