/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 906 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd() 1040 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd() 1316 if (match(Op1, m_LShr(m_Value(X), m_ConstantInt(CI))) && in visitSub() 1321 if (match(Op1, m_AShr(m_Value(X), m_ConstantInt(CI))) && in visitSub() 1334 if (match(Op1, m_Add(m_Value(X), m_ConstantInt(C2)))) in visitSub() 1391 if (match(Op1, m_Mul(m_Specific(Op0), m_ConstantInt(CI)))) { in visitSub() 1397 if (match(Op1, m_Shl(m_Specific(Op0), m_ConstantInt(CI)))) { in visitSub() 1412 if (match(Op1, m_Mul(m_Value(A), m_ConstantInt(CI))) || in visitSub() 1413 match(Op1, m_Mul(m_ConstantInt(CI), m_Value(A)))) { in visitSub()
|
D | InstCombineShifts.cpp | 82 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted() 83 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted() 434 m_ConstantInt(CC)))) { in FoldShiftByConstant() 465 m_ConstantInt(CC))) && V2 == Op1) { in FoldShiftByConstant()
|
D | InstCombineAndOrXor.cpp | 758 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 762 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 1109 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd() 1499 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps() 1741 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return 0; in FoldOrWithConstants() 1774 if (match(Op0, m_And(m_Value(X), m_ConstantInt(C1))) && in visitOr() 1785 if (match(Op0, m_Xor(m_Value(X), m_ConstantInt(C1))) && in visitOr() 1819 match(Op0, m_Xor(m_Value(A), m_ConstantInt(C1))) && in visitOr() 1828 match(Op1, m_Xor(m_Value(A), m_ConstantInt(C1))) && in visitOr() 1886 if (match(A, m_Or(m_Value(V1), m_ConstantInt(C3))) && in visitOr() [all …]
|
D | InstCombineCompares.cpp | 1944 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst() 2044 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst() 2081 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst() 2583 if (match(B, m_ConstantInt(C1)) && in visitICmpInst() 2584 match(D, m_ConstantInt(C2)) && Op1->hasOneUse()) { in visitICmpInst() 2636 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in visitICmpInst() 2638 match(Op0, m_And(m_Value(B), m_ConstantInt(Cst1))) && in visitICmpInst() 2652 m_ConstantInt(ShAmt))))) && in visitICmpInst() 2653 match(Op1, m_ConstantInt(Cst1)) && in visitICmpInst() 2676 if (match(Op0, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op1 == X) in visitICmpInst() [all …]
|
D | InstCombineCasts.cpp | 475 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) { in visitTrunc() 499 match(Src, m_And(m_Value(A), m_ConstantInt(Cst)))) { in visitTrunc() 1124 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_ConstantInt(BA)), in visitSExt() 1125 m_ConstantInt(CA))) && in visitSExt() 1641 m_ConstantInt(ShAmt)))) && in OptimizeIntToFloatBitCast()
|
D | InstCombineMulDivRem.cpp | 132 match(Op0, m_Add(m_Value(X), m_ConstantInt(C1)))) { in visitMul() 151 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul() 715 if (match(Op0, m_LShr(m_Value(X), m_ConstantInt(C1)))) { in visitUDiv()
|
D | InstCombineSelect.cpp | 608 !match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd()
|
D | InstCombineSimplifyDemanded.cpp | 599 if (match(I->getOperand(0), m_Shr(m_Value(VarX), m_ConstantInt(C1)))) { in SimplifyDemandedUseBits()
|
/external/llvm/include/llvm/Support/ |
D | PatternMatch.h | 72 inline class_match<ConstantInt> m_ConstantInt() { in m_ConstantInt() function 205 inline constantint_match<Val> m_ConstantInt() { in m_ConstantInt() function 303 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function 367 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function 639 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 758 if (match(Op0, m_Mul(m_Specific(Op1), m_ConstantInt<2>())) || in SimplifySubInst() 1966 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1969 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1973 } else if (match(LHS, m_UDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst() 1976 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1981 } else if (match(LHS, m_SDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1990 } else if (match(LHS, m_LShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1995 } else if (match(LHS, m_AShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 2003 } else if (match(LHS, m_Or(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 2006 } else if (match(LHS, m_And(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
|
D | LazyValueInfo.cpp | 819 m_ConstantInt(NegOffset))); in getEdgeValueLocal()
|
/external/llvm/lib/Transforms/Scalar/ |
D | CodeGenPrepare.cpp | 974 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in MatchScaledValue()
|