/external/llvm/lib/Target/Hexagon/ |
D | HexagonGenExtract.cpp | 94 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 95 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 96 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 101 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 102 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 103 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 109 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 110 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 118 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 119 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 397 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 400 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 415 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd() 416 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd() 421 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr() 422 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr() 497 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex() 501 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
|
D | InductiveRangeCheckElimination.cpp | 293 if (match(RHS, m_ConstantInt<0>())) { in parseRangeCheckICmp() 303 if (match(RHS, m_ConstantInt<-1>())) { in parseRangeCheckICmp()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1055 if (!isSigned && match(Op0, m_UDiv(m_Value(X), m_ConstantInt(C1))) && in SimplifyDiv() 1056 match(Op1, m_ConstantInt(C2))) { in SimplifyDiv() 1515 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyAndOfICmps() 1516 m_ConstantInt(CI2)))) in SimplifyAndOfICmps() 1674 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyOrOfICmps() 1675 m_ConstantInt(CI2)))) in SimplifyOrOfICmps() 2280 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 2283 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 2287 } else if (match(LHS, m_UDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst() 2290 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() [all …]
|
D | ValueTracking.cpp | 865 } else if (match(Arg, m_c_ICmp(Pred, m_Shl(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume() 875 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_Shl(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume() 886 m_c_ICmp(Pred, m_CombineOr(m_LShr(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume() 887 m_AShr(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume() 898 m_LShr(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume() 899 m_AShr(m_V, m_ConstantInt(C)))), in computeKnownBitsFromAssume() 2059 if ((match(Induction, m_NSWAdd(m_Specific(PN), m_ConstantInt(X))) || in isKnownNonZero() 2060 match(Induction, m_NUWAdd(m_Specific(PN), m_ConstantInt(X)))) && in isKnownNonZero()
|
D | LazyValueInfo.cpp | 914 m_ConstantInt(NegOffset))); in getValueFromFromCondition()
|
D | ScalarEvolution.cpp | 5660 if (match(V, m_LShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit() 5662 else if (match(V, m_AShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit() 5664 else if (match(V, m_Shl(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 942 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 946 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 1233 if (match(Op0, m_OneUse(m_Xor(m_ZExt(m_Value(A)), m_ConstantInt(C1)))) && in matchDeMorgansLaws() 1359 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd() 1529 match(Op1, m_ConstantInt(CI)) && CI->isMaxValue(true)) { in visitAnd() 1842 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddCst))) && in FoldOrOfICmps() 1843 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddCst))) && in FoldOrOfICmps() 1945 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps() 2186 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return nullptr; in FoldOrWithConstants() 2216 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) in FoldXorWithConstants() [all …]
|
D | InstCombineCompares.cpp | 2408 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) { in ProcessUMulZExtIdiom() 2851 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst() 2911 if (match(Op0, m_AShr(m_ConstantInt(CI2), m_Value(A))) || in visitICmpInst() 2912 match(Op0, m_LShr(m_ConstantInt(CI2), m_Value(A)))) { in visitICmpInst() 2917 if (match(Op0, m_Shl(m_ConstantInt(CI2), m_Value(A)))) { in visitICmpInst() 2988 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst() 3032 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst() 3686 if (match(B, m_ConstantInt(C1)) && in visitICmpInst() 3687 match(D, m_ConstantInt(C2)) && Op1->hasOneUse()) { in visitICmpInst() 3738 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in visitICmpInst() [all …]
|
D | InstCombineShifts.cpp | 84 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()
|
D | InstCombineCasts.cpp | 450 m_ConstantInt(ShiftVal)))) || in foldVecTruncToExtElt() 525 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) { in visitTrunc() 551 match(Src, m_LShr(m_SExt(m_Value(A)), m_ConstantInt(Cst))) && in visitTrunc() 569 match(Src, m_And(m_Value(A), m_ConstantInt(Cst)))) { in visitTrunc() 1201 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_ConstantInt(BA)), in visitSExt() 1202 m_ConstantInt(CA))) && in visitSExt()
|
D | InstCombineAddSub.cpp | 1082 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd() 1177 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd() 1566 if (match(Op1, m_LShr(m_Value(X), m_ConstantInt(CI))) && in visitSub() 1571 if (match(Op1, m_AShr(m_Value(X), m_ConstantInt(CI))) && in visitSub()
|
D | InstCombineMulDivRem.cpp | 234 if (match(NewCst, m_ConstantInt(V)) && V != Width - 1) in visitMul() 257 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul()
|
D | InstCombineSimplifyDemanded.cpp | 558 if (match(I->getOperand(0), m_Shr(m_Value(VarX), m_ConstantInt(C1)))) { in SimplifyDemandedUseBits()
|
D | InstCombineSelect.cpp | 767 if (!match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd()
|
D | InstructionCombining.cpp | 1579 m_AShr(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst() 1583 m_SDiv(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 75 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/ |
D | SimplifyCFG.cpp | 424 m_And(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction() 455 if(match(I->getOperand(0), m_Add(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 2641 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in matchScaledValue()
|