Lines Matching refs:m_Value
533 match(Op0, m_OneUse(m_BinOp(m_Value(A), m_Constant(C1)))) && in SimplifyAssociativeOrCommutative()
534 match(Op1, m_OneUse(m_BinOp(m_Value(B), m_Constant(C2)))) && in SimplifyAssociativeOrCommutative()
627 if (match(Op, m_Shl(m_Value(), m_Constant(C)))) { in getBinOpsForFactorization()
636 match(Op, m_LShr(m_NonNegative(), m_Value()))) { in getBinOpsForFactorization()
771 if (!match(I, m_DisjointOr(m_Value(), m_Value()))) in tryFoldInstWithCtpopWithNot()
781 m_OneUse(m_Intrinsic<Intrinsic::ctpop>(m_Value(Op))))) in tryFoldInstWithCtpopWithNot()
913 m_OneUse(m_Shift(m_Value(Y), m_Value(Shift))))) in foldBinOpShiftWithShift()
916 m_BinOp(m_Value(ShiftedX), m_Value(Mask)))) in foldBinOpShiftWithShift()
919 if (!match(ShiftedX, m_OneUse(m_Shift(m_Value(X), m_Specific(Shift))))) in foldBinOpShiftWithShift()
1009 return match(CastOp, m_ZExtOrSExt(m_Value(A))) && in foldBinOpOfSelectAndCastOfSelectCondition()
1011 match(SelectOp, m_Select(m_Value(CondVal), m_Value(TrueVal), in foldBinOpOfSelectAndCastOfSelectCondition()
1012 m_Value(FalseVal))); in foldBinOpOfSelectAndCastOfSelectCondition()
1262 bool LHSIsSelect = match(LHS, m_Select(m_Value(A), m_Value(B), m_Value(C))); in SimplifySelectsFeedingBinaryOp()
1263 bool RHSIsSelect = match(RHS, m_Select(m_Value(D), m_Value(E), m_Value(F))); in SimplifySelectsFeedingBinaryOp()
1289 if (True && match(FVal, m_Neg(m_Value(N)))) { in SimplifySelectsFeedingBinaryOp()
1293 if (False && match(TVal, m_Neg(m_Value(N)))) { in SimplifySelectsFeedingBinaryOp()
1369 if (match(V, m_Neg(m_Value(NegV)))) in dyn_castNegVal()
1415 if (!match(BO0, m_SExt(m_Value(X))) || !match(BO1, m_ImmConstant(C)) || in foldBinopOfSextBoolToSelect()
1820 if (match(LHS, m_Shuffle(m_Value(L0), m_Value(L1), m_Mask(Mask))) && in foldVectorBinop()
1821 match(RHS, m_Shuffle(m_Value(R0), m_Value(R1), m_SpecificMask(Mask))) && in foldVectorBinop()
1853 if (match(LHS, m_VecReverse(m_Value(V1)))) { in foldVectorBinop()
1855 if (match(RHS, m_VecReverse(m_Value(V2))) && in foldVectorBinop()
1865 else if (isSplatValue(LHS) && match(RHS, m_OneUse(m_VecReverse(m_Value(V2))))) in foldVectorBinop()
1883 if (match(LHS, m_Shuffle(m_Value(V1), m_Poison(), m_Mask(Mask))) && in foldVectorBinop()
1884 match(RHS, m_Shuffle(m_Value(V2), m_Poison(), m_SpecificMask(Mask))) && in foldVectorBinop()
1894 match(LHS, m_Shuffle(m_Value(V1), m_Value(V2), m_Mask(Mask))) && in foldVectorBinop()
1925 match(&Inst, m_c_BinOp(m_OneUse(m_Shuffle(m_Value(V1), m_Poison(), in foldVectorBinop()
2012 m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(MaskC)))) || in foldVectorBinop()
2015 !match(RHS, m_OneUse(m_BinOp(Opcode, m_Value(Y), m_Value(OtherOp))))) in foldVectorBinop()
2062 bool IsSext = match(Op0, m_SExt(m_Value(X))); in narrowMathIfNoOverflow()
2063 if (!IsSext && !match(Op0, m_ZExt(m_Value(X)))) in narrowMathIfNoOverflow()
2070 if (!(match(Op1, m_ZExtOrSExt(m_Value(Y))) && X->getType() == Y->getType() && in narrowMathIfNoOverflow()
2126 m_Select(m_Value(Cond), m_Constant(TrueC), m_Constant(FalseC)))) in foldSelectGEP()
2284 if (match(V, m_Not(m_Value(A)))) { in getFreelyInvertedImpl()
2313 if (match(V, m_Add(m_Value(A), m_Value(B)))) { in getFreelyInvertedImpl()
2325 if (match(V, m_Xor(m_Value(A), m_Value(B)))) { in getFreelyInvertedImpl()
2337 if (match(V, m_Sub(m_Value(A), m_Value(B)))) { in getFreelyInvertedImpl()
2346 if (match(V, m_AShr(m_Value(A), m_Value(B)))) { in getFreelyInvertedImpl()
2356 bool IsSelect = match(V, m_Select(m_Value(Cond), m_Value(A), m_Value(B))) && in getFreelyInvertedImpl()
2359 if (IsSelect || match(V, m_MaxOrMin(m_Value(A), m_Value(B)))) { in getFreelyInvertedImpl()
2579 m_Sub(m_PtrToInt(m_Value(Y)), m_PtrToInt(m_Specific(X)))) && in visitGetElementPtrInst()
2598 m_Exact(m_Shr(m_Value(V), in visitGetElementPtrInst()
2601 m_Exact(m_IDiv(m_Value(V), m_SpecificInt(TyAllocSize))))) { in visitGetElementPtrInst()
2618 m_OneUse(m_Add(m_Value(Idx1), m_Value(Idx2))))) { in visitGetElementPtrInst()
2631 m_Value(Idx1), m_ConstantInt(C))))))) { in visitGetElementPtrInst()
3234 if (match(Cond, m_Not(m_Value(X))) && !isa<Constant>(X)) { in visitBranchInst()
3246 m_OneUse(m_LogicalAnd(m_Value(X), m_OneUse(m_Not(m_Value(Y))))))) { in visitBranchInst()
3260 if (match(Cond, m_OneUse(m_FCmp(Pred, m_Value(), m_Value()))) && in visitBranchInst()
3288 if (match(Cond, m_Add(m_Value(Op0), m_ConstantInt(AddRHS)))) { in visitSwitchInst()
3300 if (match(Cond, m_Sub(m_ConstantInt(SubLHS), m_Value(Op0)))) { in visitSwitchInst()
3312 if (match(Cond, m_Shl(m_Value(Op0), m_ConstantInt(ShiftAmt))) && in visitSwitchInst()
3339 if (match(Cond, m_ZExtOrSExt(m_Value(Op0)))) { in visitSwitchInst()
4155 if (match(U, m_Or(m_Value(), m_Value()))) in visitFreeze()
4157 else if (match(U, m_Select(m_Specific(&I), m_Constant(), m_Value()))) in visitFreeze()