Home
last modified time | relevance | path

Searched refs:m_ConstantInt (Results 1 – 17 of 17) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp390 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
393 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
411 if (match(LHS, m_Add(m_Value(B), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForMul()
473 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
477 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
DInductiveRangeCheckElimination.cpp286 if (match(RHS, m_ConstantInt<0>())) { in parseRangeCheckICmp()
296 if (match(RHS, m_ConstantInt<-1>())) { in parseRangeCheckICmp()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1056 if (!isSigned && match(Op0, m_UDiv(m_Value(X), m_ConstantInt(C1))) && in SimplifyDiv()
1057 match(Op1, m_ConstantInt(C2))) { in SimplifyDiv()
1501 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyAndOfICmps()
1502 m_ConstantInt(CI2)))) in SimplifyAndOfICmps()
1660 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyOrOfICmps()
1661 m_ConstantInt(CI2)))) in SimplifyOrOfICmps()
2250 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2253 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2257 } else if (match(LHS, m_UDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2260 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
[all …]
DValueTracking.cpp812 } else if (match(Arg, m_c_ICmp(Pred, m_Shl(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume()
822 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_Shl(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume()
833 m_c_ICmp(Pred, m_CombineOr(m_LShr(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume()
834 m_AShr(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume()
845 m_LShr(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume()
846 m_AShr(m_V, m_ConstantInt(C)))), in computeKnownBitsFromAssume()
DLazyValueInfo.cpp853 m_ConstantInt(NegOffset))); in getValueFromFromCondition()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp944 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
948 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
1310 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd()
1753 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddCst))) && in FoldOrOfICmps()
1754 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddCst))) && in FoldOrOfICmps()
1856 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps()
2098 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return nullptr; in FoldOrWithConstants()
2128 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) in FoldXorWithConstants()
2169 if (match(Op0, m_And(m_Value(X), m_ConstantInt(C1))) && in visitOr()
2179 if (match(Op0, m_Xor(m_Value(X), m_ConstantInt(C1))) && in visitOr()
[all …]
DInstCombineCompares.cpp2313 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) { in ProcessUMulZExtIdiom()
2757 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst()
2817 if (match(Op0, m_AShr(m_ConstantInt(CI2), m_Value(A))) || in visitICmpInst()
2818 match(Op0, m_LShr(m_ConstantInt(CI2), m_Value(A)))) { in visitICmpInst()
2823 if (match(Op0, m_Shl(m_ConstantInt(CI2), m_Value(A)))) { in visitICmpInst()
2894 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
2939 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
3551 if (match(B, m_ConstantInt(C1)) && in visitICmpInst()
3552 match(D, m_ConstantInt(C2)) && Op1->hasOneUse()) { in visitICmpInst()
3603 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in visitICmpInst()
[all …]
DInstCombineShifts.cpp84 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted()
85 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted()
448 m_ConstantInt(CC)))) { in FoldShiftByConstant()
483 m_ConstantInt(CC))) && V2 == Op1) { in FoldShiftByConstant()
DInstCombineCasts.cpp473 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) { in visitTrunc()
497 match(Src, m_And(m_Value(A), m_ConstantInt(Cst)))) { in visitTrunc()
1128 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_ConstantInt(BA)), in visitSExt()
1129 m_ConstantInt(CA))) && in visitSExt()
1722 m_ConstantInt(ShAmt)))) && in OptimizeIntToFloatBitCast()
DInstCombineAddSub.cpp1082 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd()
1189 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd()
1579 if (match(Op1, m_LShr(m_Value(X), m_ConstantInt(CI))) && in visitSub()
1584 if (match(Op1, m_AShr(m_Value(X), m_ConstantInt(CI))) && in visitSub()
DInstCombineSimplifyDemanded.cpp642 if (match(I->getOperand(0), m_Shr(m_Value(VarX), m_ConstantInt(C1)))) { in SimplifyDemandedUseBits()
DInstructionCombining.cpp1515 m_AShr(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst()
1519 m_SDiv(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst()
DInstCombineSelect.cpp851 if (!match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd()
DInstCombineMulDivRem.cpp246 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul()
/external/llvm/include/llvm/IR/
DPatternMatch.h75 inline class_match<ConstantInt> m_ConstantInt() { in m_ConstantInt() function
198 template <int64_t Val> inline constantint_match<Val> m_ConstantInt() { in m_ConstantInt() function
305 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function
387 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function
768 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp399 m_And(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
430 if(match(I->getOperand(0), m_Add(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp2159 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in MatchScaledValue()