Home
last modified time | relevance | path

Searched refs:m_APIntAllowUndef (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/IR/
H A DPatternMatch.cpp1087 EXPECT_FALSE(match(ScalarUndef, m_APIntAllowUndef(C))); in TEST_F()
1090 EXPECT_FALSE(match(VectorUndef, m_APIntAllowUndef(C))); in TEST_F()
1100 EXPECT_TRUE(match(ScalarZero, m_APIntAllowUndef(C))); in TEST_F()
1109 EXPECT_TRUE(match(VectorZero, m_APIntAllowUndef(C))); in TEST_F()
1116 EXPECT_TRUE(match(VectorZeroUndef, m_APIntAllowUndef(C))); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp1521 if (!match(Cmp->getOperand(1), m_APIntAllowUndef(CmpC))) in foldSelectZeroOrOnes()
2602 if (!match(XLowBits, m_And(m_Specific(X), m_APIntAllowUndef(LowBitMaskCst)))) in foldRoundUpIntegerWithPow2Alignment()
2607 m_And(m_Add(m_Specific(X), m_APIntAllowUndef(BiasCst)), in foldRoundUpIntegerWithPow2Alignment()
2608 m_APIntAllowUndef(HighBitMaskCst)))) in foldRoundUpIntegerWithPow2Alignment()
H A DInstCombineCompares.cpp3142 if (match(Cmp.getOperand(1), m_APIntAllowUndef(C))) in foldICmpInstWithConstant()
4275 if (match(B, m_APIntAllowUndef(AP1)) && match(D, m_APIntAllowUndef(AP2)) && in foldICmpBinOp()
4691 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_APIntAllowUndef(AP1)))) && in foldICmpEquality()
4692 match(Op1, m_OneUse(m_LShr(m_Value(B), m_APIntAllowUndef(AP2))))) || in foldICmpEquality()
4693 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_APIntAllowUndef(AP1)))) && in foldICmpEquality()
4694 match(Op1, m_OneUse(m_AShr(m_Value(B), m_APIntAllowUndef(AP2)))))) { in foldICmpEquality()
H A DInstCombineAndOrXor.cpp2237 if (match(L, m_APIntAllowUndef(LI)) && match(R, m_APIntAllowUndef(RI))) in matchFunnelShift()
3693 m_AShr(m_Value(X), m_APIntAllowUndef(CA))))) && in visitXor()
H A DInstCombineCalls.cpp1447 if ((match(Y, m_APIntAllowUndef(C)) && (*C & 7) == 0) || in visitCallInst()
H A DInstructionCombining.cpp1113 return match(Cmp, m_APIntAllowUndef(C)) && C->isOne(); in FoldOpIntoSelect()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInstructionSimplify.cpp2983 if (!match(RHS, m_APIntAllowUndef(C))) in simplifyICmpWithConstant()
3006 ((match(LHS, m_NUWMul(m_Value(), m_APIntAllowUndef(MulC))) && in simplifyICmpWithConstant()
3008 (match(LHS, m_NSWMul(m_Value(), m_APIntAllowUndef(MulC))) && in simplifyICmpWithConstant()
3298 match(RHS, m_APIntAllowUndef(C)) && !C->isPowerOf2()) { in simplifyICmpWithBinOp()
5802 if (match(Op1, m_APIntAllowUndef(C))) { in simplifyBinaryIntrinsic()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DPatternMatch.h284 inline apint_match m_APIntAllowUndef(const APInt *&Res) { in m_APIntAllowUndef() function