/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 115 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()
|
D | InstCombineAndOrXor.cpp | 783 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 …]
|
D | InstCombineShifts.cpp | 81 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()
|
D | InstCombineCompares.cpp | 1860 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()
|
D | InstCombineCasts.cpp | 467 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()
|
D | InstCombineMulDivRem.cpp | 133 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()
|
D | InstCombineSelect.cpp | 584 !match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd()
|
/external/llvm/include/llvm/Support/ |
D | PatternMatch.h | 69 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/ |
D | InstructionSimplify.cpp | 617 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/ |
D | AddrModeMatcher.cpp | 102 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in MatchScaledValue()
|