| /freebsd-12.1/contrib/llvm/lib/Target/Hexagon/ |
| H A D | HexagonGenExtract.cpp | 107 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 108 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 114 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 115 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 121 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 122 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 130 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 131 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 138 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 145 m_ConstantInt(CSL))); in INITIALIZE_PASS_DEPENDENCY() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | StraightLineStrengthReduce.cpp | 404 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()
|
| H A D | GuardWidening.cpp | 526 if (match(Cond0, m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in widenCondCommon() 527 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in widenCondCommon() 649 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks() 655 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
|
| H A D | LoopDeletion.cpp | 110 m_Br(m_ConstantInt(Cond), Taken, NotTaken))) in isLoopNeverExecuted()
|
| H A D | InductiveRangeCheckElimination.cpp | 292 if (match(RHS, m_ConstantInt<0>())) { in INITIALIZE_PASS_DEPENDENCY() 303 if (match(RHS, m_ConstantInt<-1>())) { in INITIALIZE_PASS_DEPENDENCY()
|
| H A D | JumpThreading.cpp | 842 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) { in ComputeValueKnownInPredecessorsImpl()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 61 if (match(V, m_InsertElement(m_Value(), m_Value(), m_ConstantInt()))) in cheapToScalarize() 170 !match(Ext.getIndexOperand(), m_ConstantInt(ExtIndexC))) in foldBitcastExtElt() 190 m_ConstantInt(InsIndexC)))) in foldBitcastExtElt() 749 match(InsElt1->getOperand(2), m_ConstantInt(IdxC1)) && in hoistInsEltConst() 751 match(InsElt2.getOperand(2), m_ConstantInt(IdxC2)) && IdxC1 != IdxC2) { in hoistInsEltConst() 774 !match(InsElt.getOperand(2), m_ConstantInt(InsEltIndex))) in foldConstantInsEltIntoShuffle() 821 if (!match(InsElt.getOperand(2), m_ConstantInt(InsertIdx[0])) || in foldConstantInsEltIntoShuffle() 823 !match(IEI->getOperand(2), m_ConstantInt(InsertIdx[1])) || in foldConstantInsEltIntoShuffle() 875 if (match(IdxOp, m_ConstantInt(InsertedIdx)) && in visitInsertElementInst() 877 m_ConstantInt(ExtractedIdx)))) { in visitInsertElementInst() [all …]
|
| H A D | InstCombineShifts.cpp | 136 if ((IsLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in canEvaluateShifted() 137 (!IsLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in canEvaluateShifted() 458 m_ConstantInt(CC)))) { in FoldShiftByConstant() 492 m_ConstantInt(CC))) && V2 == Op1) { in FoldShiftByConstant()
|
| H A D | InstCombineAndOrXor.cpp | 1096 match(LHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1100 match(RHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1632 if (match(Op0I, m_c_BinOp(m_ZExt(m_Value(X)), m_ConstantInt(C1)))) { in visitAnd() 1657 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd() 1995 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddC))) && in foldOrOfICmps() 1996 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddC))) && in foldOrOfICmps() 2102 if (match(LHS0, m_Add(m_Specific(RHS0), m_ConstantInt(AddC)))) in foldOrOfICmps() 2268 if (match(A, m_Or(m_Value(V1), m_ConstantInt(C3))) && in visitOr() 2270 match(B, m_Or(m_Specific(V1), m_ConstantInt(C4))) && in visitOr() 2433 match(Op0, m_Or(m_Value(A), m_ConstantInt(CI)))) { in visitOr()
|
| H A D | InstCombineCompares.cpp | 1357 if (Pred == ICmpInst::ICMP_UGT && match(Op1, m_ConstantInt(CI)) && in foldICmpWithConstant() 1358 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant() 2436 if (match(SI->getTrueValue(), m_ConstantInt(Equal)) && in matchThreeWayIntCompare() 2441 m_ConstantInt(Less), m_ConstantInt(Greater))) && in matchThreeWayIntCompare() 3557 if (match(B, m_ConstantInt(C1)) && match(D, m_ConstantInt(C2)) && in foldICmpEquality() 3618 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in foldICmpEquality() 3629 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality() 3631 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality() 3645 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality() 3663 match(Op1, m_ConstantInt(Cst1)) && in foldICmpEquality() [all …]
|
| H A D | InstCombineCasts.cpp | 467 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()
|
| H A D | InstCombineAddSub.cpp | 1060 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd() 1149 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd()
|
| H A D | InstructionCombining.cpp | 1845 m_AShr(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst() 1849 m_SDiv(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst() 2513 if (match(Cond, m_Add(m_Value(Op0), m_ConstantInt(AddRHS)))) { in visitSwitchInst()
|
| H A D | InstCombineMulDivRem.cpp | 203 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul()
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 82 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 484 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function 583 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function 1092 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | AssumptionCache.cpp | 103 } else if (match(V, m_Shift(m_Value(A), m_ConstantInt(C)))) { in updateAffectedValues()
|
| H A D | LazyValueInfo.cpp | 931 m_ConstantInt(CIAdded)))) { in solveBlockValueSelect() 939 m_ConstantInt(CIAdded)))) { in solveBlockValueSelect() 1102 if (LHS != Val && !match(LHS, m_Add(m_Specific(Val), m_ConstantInt()))) { in getValueFromICmpCondition() 1109 match(LHS, m_Add(m_Specific(Val), m_ConstantInt(Offset))); in getValueFromICmpCondition()
|
| H A D | ValueTracking.cpp | 725 } else if (match(Arg, m_c_ICmp(Pred, m_Shl(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume() 739 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_Shl(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume() 754 m_c_ICmp(Pred, m_Shr(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume() 766 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_Shr(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume() 2159 (match(Induction, m_NSWAdd(m_Specific(PN), m_ConstantInt(X))) || in isKnownNonZero() 2160 match(Induction, m_NUWAdd(m_Specific(PN), m_ConstantInt(X)))) && in isKnownNonZero()
|
| H A D | InstructionSimplify.cpp | 1056 if (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_ConstantInt(C1))) && in simplifyDiv() 1057 match(Op1, m_ConstantInt(C2))) { in simplifyDiv() 4108 m_ConstantInt(C))) && in SimplifyGEPInst()
|
| H A D | ScalarEvolution.cpp | 7528 if (match(V, m_LShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit() 7530 else if (match(V, m_AShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit() 7532 else if (match(V, m_Shl(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 199 if (!match(V, m_LShr(m_Value(Candidate), m_ConstantInt(BitIndex)))) in matchAndOrChain()
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/ |
| H A D | ARMParallelDSP.cpp | 232 if (match(V, m_ConstantInt(CInt))) { in IsNarrowSequence()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 3356 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in matchScaledValue()
|