Home
last modified time | relevance | path

Searched refs:m_ZeroInt (Results 1 – 25 of 36) sorted by relevance

12

/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DMIPatternMatch.h73 inline SpecificConstantMatch m_ZeroInt() { return SpecificConstantMatch(0); } in m_ZeroInt() function
456 return m_GSub(m_ZeroInt(), Src);
/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/
DPatternMatchTest.cpp423 EXPECT_TRUE(mi_match(Zero.getReg(0), *MRI, m_ZeroInt())); in TEST_F()
426 EXPECT_FALSE(mi_match(FortyTwo.getReg(0), *MRI, m_ZeroInt())); in TEST_F()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DVectorCombine.cpp98 if (!Ty || !match(&I, m_InsertElt(m_Undef(), m_Value(Scalar), m_ZeroInt())) || in vectorizeLoadInsert()
104 bool HasExtract = match(Scalar, m_ExtractElt(m_Value(X), m_ZeroInt())); in vectorizeLoadInsert()
/external/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp140 if (!match(TermI, m_Br(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()), in foldGuardedRotateToFunnelShift()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp127 if (!match(TermI, m_Br(m_ICmp(Pred, m_Specific(RotAmt), m_ZeroInt()), in foldGuardedRotateToFunnelShift()
/external/llvm-project/llvm/include/llvm/IR/
DPatternMatch.h468 inline cst_pred_ty<is_zero_int> m_ZeroInt() { in m_ZeroInt() function
1926 if (AddExpr.match(ICmpLHS) && m_ZeroInt().match(ICmpRHS) && in match()
1931 if (m_ZeroInt().match(ICmpLHS) && AddExpr.match(ICmpRHS) && in match()
2176 return m_Sub(m_ZeroInt(), V);
2185 return m_NSWSub(m_ZeroInt(), V);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DVectorUtils.cpp322 m_ZeroInt()), in getSplatValue()
323 m_Value(), m_ZeroInt()))) in getSplatValue()
DValueTracking.cpp4921 if ((!NeedNSW && match(X, m_Sub(m_ZeroInt(), m_Specific(Y)))) || in isKnownNegation()
4922 (NeedNSW && match(X, m_NSWSub(m_ZeroInt(), m_Specific(Y))))) in isKnownNegation()
4926 if ((!NeedNSW && match(Y, m_Sub(m_ZeroInt(), m_Specific(X)))) || in isKnownNegation()
4927 (NeedNSW && match(Y, m_NSWSub(m_ZeroInt(), m_Specific(X))))) in isKnownNegation()
5063 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern()
5064 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DPatternMatch.h414 inline cst_pred_ty<is_zero_int> m_ZeroInt() { in m_ZeroInt() function
1674 if (AddExpr.match(ICmpLHS) && m_ZeroInt().match(ICmpRHS) && in match()
1679 if (m_ZeroInt().match(ICmpLHS) && AddExpr.match(ICmpRHS) && in match()
1897 return m_Sub(m_ZeroInt(), V);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp170 if (match(Cond, m_ICmp(Pred, m_Specific(B), m_ZeroInt())) && in matchSelectWithOptionalNotCond()
176 if (match(Cond, m_ICmp(Pred, m_Specific(A), m_ZeroInt())) && in matchSelectWithOptionalNotCond()
/external/llvm-project/llvm/lib/Target/AArch64/GISel/
DAArch64PostLegalizerLowering.cpp294 if (!mi_match(InsMI->getOperand(3).getReg(), MRI, m_ZeroInt())) in matchDupFromInsertVectorElt()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp913 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst()
918 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst()
1372 if (match(KeyArg, m_ZeroInt()) && in visitCallInst()
DInstCombineAndOrXor.cpp974 if (JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
982 if (!JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
2838 m_ZeroInt()), in visitOr()
DInstCombineSelect.cpp1082 match(Cmp.getOperand(1), m_ZeroInt()) && in canonicalizeAbsNabs()
2375 if (!match(Cond, m_OneUse(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()))) || in foldSelectFunnelShift()
DInstCombineVectorOps.cpp1146 if (!match(Op0, m_InsertElt(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat()
/external/llvm-project/llvm/lib/Analysis/
DValueTracking.cpp5554 if ((!NeedNSW && match(X, m_Sub(m_ZeroInt(), m_Specific(Y)))) || in isKnownNegation()
5555 (NeedNSW && match(X, m_NSWSub(m_ZeroInt(), m_Specific(Y))))) in isKnownNegation()
5559 if ((!NeedNSW && match(Y, m_Sub(m_ZeroInt(), m_Specific(X)))) || in isKnownNegation()
5560 (NeedNSW && match(Y, m_NSWSub(m_ZeroInt(), m_Specific(X))))) in isKnownNegation()
5696 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern()
5697 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
DVectorUtils.cpp357 m_Shuffle(m_InsertElt(m_Value(), m_Value(Splat), m_ZeroInt()), in getSplatValue()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp830 if (!match(Op0, m_InsertElement(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat()
1521 !match(Op1, m_Undef()) || match(Mask, m_ZeroInt()) || IndexC == 0) in canonicalizeInsertSplat()
DInstCombineCalls.cpp658 if (match(CarryIn, m_ZeroInt())) { in simplifyX86addcarry()
1984 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst()
1989 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst()
3396 if (match(KeyArg, m_ZeroInt()) && in visitCallInst()
DInstCombineSelect.cpp1068 match(Cmp.getOperand(1), m_ZeroInt()) && in canonicalizeAbsNabs()
2313 if (!match(Cond, m_OneUse(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()))) || in foldSelectRotate()
DInstCombineAndOrXor.cpp1034 if (JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
1042 if (!JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUInstCombineIntrinsic.cpp841 if (isa<UndefValue>(Op1) || match(Op1, PatternMatch::m_ZeroInt())) { in instCombineIntrinsic()
/external/llvm-project/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1341 else if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) in matchUAddWithOverflowConstantEdgeCases()
1405 if (Pred == ICmpInst::ICMP_EQ && match(B, m_ZeroInt())) { in combineToUSubWithOverflow()
1410 if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) { in combineToUSubWithOverflow()
6701 if (!match(SVI, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in optimizeShuffleVectorInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1250 else if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) in matchUAddWithOverflowConstantEdgeCases()
1308 if (Pred == ICmpInst::ICMP_EQ && match(B, m_ZeroInt())) { in combineToUSubWithOverflow()
1313 if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) { in combineToUSubWithOverflow()
/external/llvm-project/llvm/lib/Target/X86/
DX86InstCombineIntrinsic.cpp546 if (match(CarryIn, PatternMatch::m_ZeroInt())) { in simplifyX86addcarry()

12