/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
D | MIPatternMatch.h | 73 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/ |
D | PatternMatchTest.cpp | 423 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/ |
D | VectorCombine.cpp | 98 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/ |
D | AggressiveInstCombine.cpp | 140 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/ |
D | AggressiveInstCombine.cpp | 127 if (!match(TermI, m_Br(m_ICmp(Pred, m_Specific(RotAmt), m_ZeroInt()), in foldGuardedRotateToFunnelShift()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | PatternMatch.h | 468 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/ |
D | VectorUtils.cpp | 322 m_ZeroInt()), in getSplatValue() 323 m_Value(), m_ZeroInt()))) in getSplatValue()
|
D | ValueTracking.cpp | 4921 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/ |
D | PatternMatch.h | 414 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/ |
D | EarlyCSE.cpp | 170 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/ |
D | AArch64PostLegalizerLowering.cpp | 294 if (!mi_match(InsMI->getOperand(3).getReg(), MRI, m_ZeroInt())) in matchDupFromInsertVectorElt()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 913 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()
|
D | InstCombineAndOrXor.cpp | 974 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()
|
D | InstCombineSelect.cpp | 1082 match(Cmp.getOperand(1), m_ZeroInt()) && in canonicalizeAbsNabs() 2375 if (!match(Cond, m_OneUse(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()))) || in foldSelectFunnelShift()
|
D | InstCombineVectorOps.cpp | 1146 if (!match(Op0, m_InsertElt(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 5554 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()
|
D | VectorUtils.cpp | 357 m_Shuffle(m_InsertElt(m_Value(), m_Value(Splat), m_ZeroInt()), in getSplatValue()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 830 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()
|
D | InstCombineCalls.cpp | 658 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()
|
D | InstCombineSelect.cpp | 1068 match(Cmp.getOperand(1), m_ZeroInt()) && in canonicalizeAbsNabs() 2313 if (!match(Cond, m_OneUse(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()))) || in foldSelectRotate()
|
D | InstCombineAndOrXor.cpp | 1034 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/ |
D | AMDGPUInstCombineIntrinsic.cpp | 841 if (isa<UndefValue>(Op1) || match(Op1, PatternMatch::m_ZeroInt())) { in instCombineIntrinsic()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1341 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/ |
D | CodeGenPrepare.cpp | 1250 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/ |
D | X86InstCombineIntrinsic.cpp | 546 if (match(CarryIn, PatternMatch::m_ZeroInt())) { in simplifyX86addcarry()
|