Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp107 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
108 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY()
109 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY()
114 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
115 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY()
116 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY()
122 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY()
123 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY()
131 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
132 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp94 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/
DStraightLineStrengthReduce.cpp368 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
371 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
386 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd()
387 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd()
392 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr()
393 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr()
468 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
472 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
DGuardWidening.cpp413 if (match(Cond0, m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in widenCondCommon()
414 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in widenCondCommon()
531 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
537 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp404 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
407 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
422 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd()
423 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd()
428 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr()
429 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr()
504 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
508 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
DGuardWidening.cpp508 if (match(Cond0, m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in widenCondCommon()
509 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in widenCondCommon()
631 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
637 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
DLoopDeletion.cpp110 m_Br(m_ConstantInt(Cond), Taken, NotTaken))) in isLoopNeverExecuted()
/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/
Dcanonicalize.cc58 if (!matchPattern(for_op.getLowerBound(), m_ConstantInt(&lower_bound)) || in matchAndRewrite()
59 !matchPattern(for_op.getUpperBound(), m_ConstantInt(&upper_bound)) || in matchAndRewrite()
60 !matchPattern(for_op.getStep(), m_ConstantInt(&step))) { in matchAndRewrite()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp60 if (match(V, m_InsertElement(m_Value(), m_Value(), m_ConstantInt()))) in cheapToScalarize()
169 !match(Ext.getIndexOperand(), m_ConstantInt(ExtIndexC))) in foldBitcastExtElt()
189 m_ConstantInt(InsIndexC)))) in foldBitcastExtElt()
824 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoSplat()
859 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoIdentityShuffle()
917 match(InsElt1->getOperand(2), m_ConstantInt(IdxC1)) && in hoistInsEltConst()
919 match(InsElt2.getOperand(2), m_ConstantInt(IdxC2)) && IdxC1 != IdxC2) { in hoistInsEltConst()
942 !match(InsElt.getOperand(2), m_ConstantInt(InsEltIndex))) in foldConstantInsEltIntoShuffle()
989 if (!match(InsElt.getOperand(2), m_ConstantInt(InsertIdx[0])) || in foldConstantInsEltIntoShuffle()
991 !match(IEI->getOperand(2), m_ConstantInt(InsertIdx[1])) || in foldConstantInsEltIntoShuffle()
[all …]
DInstCombineShifts.cpp489 if ((IsLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in canEvaluateShifted()
490 (!IsLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in canEvaluateShifted()
793 m_ConstantInt(CC)))) { in FoldShiftByConstant()
827 m_ConstantInt(CC))) && V2 == Op1) { in FoldShiftByConstant()
DInstCombineAndOrXor.cpp1227 match(LHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps()
1231 match(RHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps()
1829 m_ConstantInt(C1))))) { in visitAnd()
1854 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd()
2222 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddC))) && in foldOrOfICmps()
2223 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddC))) && in foldOrOfICmps()
2339 if (match(LHS0, m_Add(m_Specific(RHS0), m_ConstantInt(AddC)))) in foldOrOfICmps()
2525 if (match(A, m_Or(m_Value(V1), m_ConstantInt(C3))) && in visitOr()
2527 match(B, m_Or(m_Specific(V1), m_ConstantInt(C4))) && in visitOr()
2693 match(Op0, m_Or(m_Value(A), m_ConstantInt(CI)))) { in visitOr()
DInstCombineCompares.cpp1449 if (Pred == ICmpInst::ICMP_UGT && match(Op1, m_ConstantInt(CI)) && in foldICmpWithConstant()
1450 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant()
2642 if (!match(EqualVal, m_ConstantInt(Equal))) in matchThreeWayIntCompare()
2647 m_ConstantInt(Less), m_ConstantInt(Greater)))) in matchThreeWayIntCompare()
4172 if (match(B, m_ConstantInt(C1)) && match(D, m_ConstantInt(C2)) && in foldICmpEquality()
4233 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in foldICmpEquality()
4234 (Op1->hasOneUse() && match(Op0, m_And(m_Value(B), m_ConstantInt(Cst1))) && in foldICmpEquality()
4244 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality()
4246 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality()
4260 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality()
[all …]
DInstCombineCasts.cpp467 m_ConstantInt(ShiftVal)))) || in foldVecTruncToExtElt()
761 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) { in visitTrunc()
788 match(Src, m_LShr(m_SExt(m_Value(A)), m_ConstantInt(Cst)))) { in visitTrunc()
826 if (match(Src, m_Shl(m_Value(A), m_ConstantInt(Cst))) && in visitTrunc()
1435 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_ConstantInt(BA)), in visitSExt()
1436 m_ConstantInt(CA))) && in visitSExt()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp925 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
929 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
1179 if (match(Op0, m_OneUse(m_Xor(m_ZExt(m_Value(A)), m_ConstantInt(C1)))) && in matchDeMorgansLaws()
1417 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd()
1741 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddCst))) && in FoldOrOfICmps()
1742 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddCst))) && in FoldOrOfICmps()
1844 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps()
2077 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return nullptr; in FoldOrWithConstants()
2107 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) in FoldXorWithConstants()
2148 if (match(Op0, m_And(m_Value(X), m_ConstantInt(C1))) && in visitOr()
[all …]
DInstCombineShifts.cpp129 if ((IsLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted()
130 (!IsLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted()
449 m_ConstantInt(CC)))) { in FoldShiftByConstant()
484 m_ConstantInt(CC))) && V2 == Op1) { in FoldShiftByConstant()
DInstCombineCompares.cpp2766 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) { in ProcessUMulZExtIdiom()
3264 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst()
3313 if (match(Op0, m_AShr(m_ConstantInt(CI2), m_Value(A))) || in visitICmpInst()
3314 match(Op0, m_LShr(m_ConstantInt(CI2), m_Value(A)))) { in visitICmpInst()
3319 if (match(Op0, m_Shl(m_ConstantInt(CI2), m_Value(A)))) { in visitICmpInst()
3338 if (BI && match(BI, m_Br(m_ICmp(Pred, m_Specific(Op0), m_ConstantInt(CI2)), in visitICmpInst()
3426 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
3470 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
4145 if (match(B, m_ConstantInt(C1)) && in visitICmpInst()
4146 match(D, m_ConstantInt(C2)) && Op1->hasOneUse()) { in visitICmpInst()
[all …]
DInstCombineCasts.cpp450 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()
DInstCombineAddSub.cpp1062 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd()
1157 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd()
1546 if (match(Op1, m_LShr(m_Value(X), m_ConstantInt(CI))) && in visitSub()
1551 if (match(Op1, m_AShr(m_Value(X), m_ConstantInt(CI))) && in visitSub()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1040 if (!isSigned && match(Op0, m_UDiv(m_Value(X), m_ConstantInt(C1))) && in SimplifyDiv()
1041 match(Op1, m_ConstantInt(C2))) { in SimplifyDiv()
1521 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyAndOfICmps()
1522 m_ConstantInt(CI2)))) in SimplifyAndOfICmps()
1693 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyOrOfICmps()
1694 m_ConstantInt(CI2)))) in SimplifyOrOfICmps()
2306 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2309 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2313 } else if (match(LHS, m_UDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2316 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
[all …]
DValueTracking.cpp663 } else if (match(Arg, m_c_ICmp(Pred, m_Shl(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume()
674 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_Shl(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume()
686 m_c_ICmp(Pred, m_CombineOr(m_LShr(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume()
687 m_AShr(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume()
699 m_LShr(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume()
700 m_AShr(m_V, m_ConstantInt(C)))), in computeKnownBitsFromAssume()
1845 if ((match(Induction, m_NSWAdd(m_Specific(PN), m_ConstantInt(X))) || in isKnownNonZero()
1846 match(Induction, m_NUWAdd(m_Specific(PN), m_ConstantInt(X)))) && in isKnownNonZero()
/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/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DPatternMatch.h82 inline class_match<ConstantInt> m_ConstantInt() { in m_ConstantInt() function
217 template <int64_t Val> inline constantint_match<Val> m_ConstantInt() { in m_ConstantInt() function
588 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function
699 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function
1255 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DAssumptionCache.cpp103 } else if (match(V, m_Shift(m_Value(A), m_ConstantInt(C)))) { in findAffectedValues()
DLazyValueInfo.cpp975 m_ConstantInt(CIAdded)))) { in solveBlockValueSelect()
983 m_ConstantInt(CIAdded)))) { in solveBlockValueSelect()
1223 if (LHS != Val && !match(LHS, m_Add(m_Specific(Val), m_ConstantInt()))) { in getValueFromICmpCondition()
1230 match(LHS, m_Add(m_Specific(Val), m_ConstantInt(Offset))); in getValueFromICmpCondition()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp198 if (!match(V, m_LShr(m_Value(Candidate), m_ConstantInt(BitIndex)))) in matchAndOrChain()

12