Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenExtract.cpp108 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY()
109 m_ConstantInt(CM))); 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()
139 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY()
146 m_ConstantInt(CSL))); in INITIALIZE_PASS_DEPENDENCY()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstraintElimination.cpp63 if (match(Op0, m_NUWShl(m_Value(Op1), m_ConstantInt(CI)))) in decompose()
67 if (match(Op0, m_NSWAdd(m_Value(Op1), m_ConstantInt(CI)))) in decompose()
74 if (match(GEP->getOperand(GEP->getNumOperands() - 1), m_ConstantInt(CI)) && in decompose()
80 m_NUWShl(m_Value(Op0), m_ConstantInt(CI)))) in decompose()
85 m_NSWAdd(m_Value(Op0), m_ConstantInt(CI)))) in decompose()
102 if (match(V, m_NUWAdd(m_Value(Op0), m_ConstantInt(CI)))) in decompose()
107 if (match(V, m_NUWSub(m_Value(Op0), m_ConstantInt(CI)))) in decompose()
H A DStraightLineStrengthReduce.cpp415 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
418 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
433 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd()
434 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd()
439 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr()
440 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr()
515 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
519 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
H A DGuardWidening.cpp507 if (match(Cond0, m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in widenCondCommon()
508 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in widenCondCommon()
630 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
636 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
H A DLowerMatrixIntrinsics.cpp741 m_Value(TAMA), m_Value(TAMB), m_ConstantInt(R), in optimizeTransposes()
742 m_ConstantInt(K), m_ConstantInt(C)))) { in optimizeTransposes()
779 m_Value(A), m_Value(B), m_ConstantInt(R), in optimizeTransposes()
780 m_ConstantInt(K), m_ConstantInt(C))) && in optimizeTransposes()
H A DLoopDeletion.cpp164 m_Br(m_ConstantInt(Cond), Taken, NotTaken))) in isLoopNeverExecuted()
H A DInductiveRangeCheckElimination.cpp315 if (match(RHS, m_ConstantInt<0>())) { in INITIALIZE_PASS_DEPENDENCY()
326 if (match(RHS, m_ConstantInt<-1>())) { in INITIALIZE_PASS_DEPENDENCY()
H A DDeadStoreElimination.cpp1209 if (match(I, m_Intrinsic<Intrinsic::lifetime_end>(m_ConstantInt(Len), in getLocForTerminator()
H A DJumpThreading.cpp901 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) { in computeValueKnownInPredecessorsImpl()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DAssumptionCache.cpp110 } else if (match(V, m_Shift(m_Value(A), m_ConstantInt()))) { in findAffectedValues()
123 match(A, m_Add(m_Value(X), m_ConstantInt())) && in findAffectedValues()
124 match(B, m_ConstantInt())) in findAffectedValues()
H A DInstructionSimplify.cpp1100 if (!IsSigned && match(Op0, m_UDiv(m_Value(), m_ConstantInt(C1))) && in simplifyDiv()
1101 match(Op1, m_ConstantInt(C2))) { in simplifyDiv()
4382 m_ConstantInt(C))) && in SimplifyGEPInst()
4777 m_ConstantInt(IndexC)))) { in SimplifyShuffleVectorInst()
H A DValueTracking.cpp798 } else if (match(Cmp, m_c_ICmp(Pred, m_Shl(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume()
811 } else if (match(Cmp, m_c_ICmp(Pred, m_Not(m_Shl(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume()
823 } else if (match(Cmp, m_c_ICmp(Pred, m_Shr(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume()
833 } else if (match(Cmp, m_c_ICmp(Pred, m_Not(m_Shr(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume()
H A DScalarEvolution.cpp8273 if (match(V, m_LShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit()
8275 else if (match(V, m_AShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit()
8277 else if (match(V, m_Shl(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp67 if (match(V, m_InsertElt(m_Value(), m_Value(), m_ConstantInt()))) in cheapToScalarize()
180 !match(Ext.getIndexOperand(), m_ConstantInt(ExtIndexC))) in foldBitcastExtElt()
204 m_ConstantInt(InsIndexC)))) in foldBitcastExtElt()
1200 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoSplat()
1238 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoIdentityShuffle()
1294 match(InsElt1->getOperand(2), m_ConstantInt(IdxC1)) && in hoistInsEltConst()
1319 !match(InsElt.getOperand(2), m_ConstantInt(InsEltIndex))) in foldConstantInsEltIntoShuffle()
1371 !match(IEI->getOperand(2), m_ConstantInt(InsertIdx[1])) || in foldConstantInsEltIntoShuffle()
1450 match(IdxOp, m_ConstantInt(InsertedIdx)) && in visitInsertElementInst()
1916 m_ConstantInt(IndexC)))) || in canonicalizeInsertSplat()
[all …]
H A DInstCombineAndOrXor.cpp412 if (!match(B, m_ConstantInt(BCst)) || !match(C, m_ConstantInt(CCst)) || in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
413 !match(D, m_ConstantInt(DCst)) || !match(E, m_ConstantInt(ECst))) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
623 if (!match(B, m_ConstantInt(BCst)) || !match(D, m_ConstantInt(DCst))) in foldLogOpOfMaskedICmps()
665 if (!match(C, m_ConstantInt(CCst)) || !match(E, m_ConstantInt(ECst))) in foldLogOpOfMaskedICmps()
1272 if (!match(LHS->getOperand(1), m_ConstantInt(LHSC)) || in foldAndOfICmps()
1273 !match(RHS->getOperand(1), m_ConstantInt(RHSC))) in foldAndOfICmps()
1902 if (match(Op1, m_ConstantInt(AndRHS))) { in visitAnd()
2700 if (match(C, m_ConstantInt(C1)) && match(D, m_ConstantInt(C2))) { in visitOr()
2892 match(Op0, m_Or(m_Value(A), m_ConstantInt(CI)))) { in visitOr()
3480 if (match(Op1, m_ConstantInt(C3)) && in visitXor()
[all …]
H A DInstCombineCompares.cpp1436 if (Pred == ICmpInst::ICMP_UGT && match(Op1, m_ConstantInt(CI)) && in foldICmpWithConstant()
1437 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant()
2749 if (!match(EqualVal, m_ConstantInt(Equal))) in matchThreeWayIntCompare()
2754 m_ConstantInt(Less), m_ConstantInt(Greater)))) in matchThreeWayIntCompare()
4321 if (match(B, m_ConstantInt(C1)) && match(D, m_ConstantInt(C2)) && in foldICmpEquality()
4380 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in foldICmpEquality()
4391 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality()
4393 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality()
4407 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality()
4425 match(Op1, m_ConstantInt(Cst1)) && in foldICmpEquality()
[all …]
H A DInstCombineSimplifyDemanded.cpp295 match(I->getOperand(1), m_ConstantInt(XorRHS)) && in SimplifyDemandedUseBits()
296 match(LHSInst->getOperand(1), m_ConstantInt(AndRHS)) && in SimplifyDemandedUseBits()
700 if (match(I->getOperand(1), m_ConstantInt(Rem))) { in SimplifyDemandedUseBits()
H A DInstructionCombining.cpp2224 m_AShr(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst()
2228 m_SDiv(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst()
3010 if (match(Cond, m_Add(m_Value(Op0), m_ConstantInt(AddRHS)))) { in visitSwitchInst()
H A DInstCombineCasts.cpp509 m_ConstantInt(ShiftVal)))) || in foldVecTruncToExtElt()
932 if (match(Src, m_OneUse(m_ExtractElt(m_Value(VecOp), m_ConstantInt(Cst))))) { in visitTrunc()
H A DInstCombineCalls.cpp1788 m_Cmp(Pred, m_And(m_Value(A), m_ConstantInt(AlignMask)), in visitCallInst()
1793 match(A, m_Add(m_Value(A), m_ConstantInt(Offset))); in visitCallInst()
H A DInstCombineSelect.cpp2022 if (!match(Cond, m_OneUse(m_ExtractElt(m_Value(), m_ConstantInt())))) in canonicalizeScalarSelectOfVecs()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp465 if (!match(I0, m_ExtractElt(m_Value(V0), m_ConstantInt(C0))) || in foldExtractExtract()
466 !match(I1, m_ExtractElt(m_Value(V1), m_ConstantInt(C1))) || in foldExtractExtract()
480 m_InsertElt(m_Value(), m_Value(), m_ConstantInt(InsertIndex))); in foldExtractExtract()
591 m_ConstantInt(Index0))) && in scalarizeBinopOrCmp()
595 m_ConstantInt(Index1))) && in scalarizeBinopOrCmp()
705 if (!match(I0, m_OneUse(m_ExtractElt(m_Value(X), m_ConstantInt(Index0)))) || in foldExtractedCmps()
706 !match(I1, m_OneUse(m_ExtractElt(m_Specific(X), m_ConstantInt(Index1))))) in foldExtractedCmps()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h145 inline class_match<ConstantInt> m_ConstantInt() { in m_ConstantInt() function
318 template <int64_t Val> inline constantint_match<Val> m_ConstantInt() { in m_ConstantInt() function
764 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function
903 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function
1482 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DIntrinsicInst.cpp454 if (match(VLParam, m_c_Mul(m_ConstantInt(VScaleFactor), m_VScale(DL)))) in canIgnoreVectorLengthParam()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp302 PatternMatch::match(RHS, PatternMatch::m_ConstantInt(C)) && in isSSATMinMaxPattern()
312 PatternMatch::match(MinRHS, PatternMatch::m_ConstantInt(MinC)) && in isSSATMinMaxPattern()

12