Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp115 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd()
237 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd()
565 if (match(Op1, m_LShr(m_Value(X), m_ConstantInt(CI))) && in visitSub()
570 if (match(Op1, m_AShr(m_Value(X), m_ConstantInt(CI))) && in visitSub()
588 if (match(Op1, m_Add(m_Value(X), m_ConstantInt(C2)))) in visitSub()
632 if (match(Op1, m_Mul(m_Specific(Op0), m_ConstantInt(CI)))) { in visitSub()
638 if (match(Op1, m_Shl(m_Specific(Op0), m_ConstantInt(CI)))) { in visitSub()
653 if (match(Op1, m_Mul(m_Value(A), m_ConstantInt(CI))) || in visitSub()
654 match(Op1, m_Mul(m_ConstantInt(CI), m_Value(A)))) { in visitSub()
DInstCombineAndOrXor.cpp783 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
789 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
1132 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd()
1510 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps()
1739 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return 0; in FoldOrWithConstants()
1772 if (match(Op0, m_And(m_Value(X), m_ConstantInt(C1))) && in visitOr()
1783 if (match(Op0, m_Xor(m_Value(X), m_ConstantInt(C1))) && in visitOr()
1817 match(Op0, m_Xor(m_Value(A), m_ConstantInt(C1))) && in visitOr()
1826 match(Op1, m_Xor(m_Value(A), m_ConstantInt(C1))) && in visitOr()
1884 if (match(A, m_Or(m_Value(V1), m_ConstantInt(C3))) && in visitOr()
[all …]
DInstCombineShifts.cpp81 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted()
82 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted()
424 m_ConstantInt(CC))) && in FoldShiftByConstant()
456 m_ConstantInt(CC))) && V2 == Op1 && in FoldShiftByConstant()
DInstCombineCompares.cpp1860 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst()
1960 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
1997 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
2482 if (match(B, m_ConstantInt(C1)) && in visitICmpInst()
2483 match(D, m_ConstantInt(C2)) && Op1->hasOneUse()) { in visitICmpInst()
2536 m_ConstantInt(ShAmt))))) && in visitICmpInst()
2537 match(Op1, m_ConstantInt(Cst1)) && in visitICmpInst()
2560 if (match(Op0, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op1 == X) in visitICmpInst()
2564 if (match(Op1, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op0 == X) in visitICmpInst()
DInstCombineCasts.cpp467 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) { in visitTrunc()
491 match(Src, m_And(m_Value(A), m_ConstantInt(Cst)))) { in visitTrunc()
1126 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_ConstantInt(BA)), in visitSExt()
1127 m_ConstantInt(CA))) && in visitSExt()
1629 m_ConstantInt(ShAmt)))) && in OptimizeIntToFloatBitCast()
DInstCombineMulDivRem.cpp133 match(Op0, m_Add(m_Value(X), m_ConstantInt(C1)))) { in visitMul()
152 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul()
DInstCombineSelect.cpp584 !match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd()
/external/llvm/include/llvm/Support/
DPatternMatch.h69 inline class_match<ConstantInt> m_ConstantInt() { in m_ConstantInt() function
134 inline constantint_match<Val> m_ConstantInt() { in m_ConstantInt() function
228 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function
264 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function
516 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp617 if (match(Op0, m_Mul(m_Specific(Op1), m_ConstantInt<2>())) || in SimplifySubInst()
1542 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1545 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1549 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1554 } else if (match(LHS, m_SDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1563 } else if (match(LHS, m_LShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1568 } else if (match(LHS, m_AShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1576 } else if (match(LHS, m_Or(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1579 } else if (match(LHS, m_And(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
/external/llvm/lib/Transforms/Utils/
DAddrModeMatcher.cpp102 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in MatchScaledValue()