/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
H A D | HexagonGenExtract.cpp | 107 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | ConstraintElimination.cpp | 63 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 D | StraightLineStrengthReduce.cpp | 415 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 D | GuardWidening.cpp | 507 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 D | LoopFlatten.cpp | 161 m_c_Add(m_Specific(InductionPHI), m_ConstantInt<1>()))) { in findLoopComponents() 166 m_c_Add(m_Specific(InductionPHI), m_ConstantInt<1>()))) { in findLoopComponents()
|
H A D | LoopDeletion.cpp | 125 m_Br(m_ConstantInt(Cond), Taken, NotTaken))) in isLoopNeverExecuted()
|
H A D | InductiveRangeCheckElimination.cpp | 315 if (match(RHS, m_ConstantInt<0>())) { in INITIALIZE_PASS_DEPENDENCY() 326 if (match(RHS, m_ConstantInt<-1>())) { in INITIALIZE_PASS_DEPENDENCY()
|
H A D | DeadStoreElimination.cpp | 1182 if (match(I, m_Intrinsic<Intrinsic::lifetime_end>(m_ConstantInt(Len), in getLocForTerminator()
|
H A D | JumpThreading.cpp | 902 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) { in computeValueKnownInPredecessorsImpl()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/ |
H A D | VectorCombine.cpp | 462 if (!match(I0, m_ExtractElt(m_Value(V0), m_ConstantInt(C0))) || in foldExtractExtract() 463 !match(I1, m_ExtractElt(m_Value(V1), m_ConstantInt(C1))) || in foldExtractExtract() 477 m_InsertElt(m_Value(), m_Value(), m_ConstantInt(InsertIndex))); in foldExtractExtract() 588 m_ConstantInt(Index0))) && in scalarizeBinopOrCmp() 592 m_ConstantInt(Index1))) && in scalarizeBinopOrCmp() 702 if (!match(I0, m_OneUse(m_ExtractElt(m_Value(X), m_ConstantInt(Index0)))) || in foldExtractedCmps() 703 !match(I1, m_OneUse(m_ExtractElt(m_Specific(X), m_ConstantInt(Index1))))) in foldExtractedCmps() 795 m_ConstantInt(Idx)))) in foldSingleElementStore()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | AssumptionCache.cpp | 110 } 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 D | ValueTracking.cpp | 797 } else if (match(Cmp, m_c_ICmp(Pred, m_Shl(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume() 810 } else if (match(Cmp, m_c_ICmp(Pred, m_Not(m_Shl(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume() 822 } else if (match(Cmp, m_c_ICmp(Pred, m_Shr(m_V, m_ConstantInt(C)), in computeKnownBitsFromAssume() 832 } else if (match(Cmp, m_c_ICmp(Pred, m_Not(m_Shr(m_V, m_ConstantInt(C))), in computeKnownBitsFromAssume()
|
H A D | InstructionSimplify.cpp | 1076 if (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_ConstantInt(C1))) && in simplifyDiv() 1077 match(Op1, m_ConstantInt(C2))) { in simplifyDiv() 4310 m_ConstantInt(C))) && in SimplifyGEPInst() 4701 m_ConstantInt(IndexC)))) { in SimplifyShuffleVectorInst()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 67 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() 1140 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoSplat() 1178 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoIdentityShuffle() 1234 match(InsElt1->getOperand(2), m_ConstantInt(IdxC1)) && in hoistInsEltConst() 1236 match(InsElt2.getOperand(2), m_ConstantInt(IdxC2)) && IdxC1 != IdxC2) { in hoistInsEltConst() 1259 !match(InsElt.getOperand(2), m_ConstantInt(InsEltIndex))) in foldConstantInsEltIntoShuffle() 1309 if (!match(InsElt.getOperand(2), m_ConstantInt(InsertIdx[0])) || in foldConstantInsEltIntoShuffle() 1311 !match(IEI->getOperand(2), m_ConstantInt(InsertIdx[1])) || in foldConstantInsEltIntoShuffle() [all …]
|
H A D | InstCombineAndOrXor.cpp | 412 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() 1298 match(LHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1302 match(RHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1902 if (match(Op1, m_ConstantInt(AndRHS))) { in visitAnd() 1923 m_ConstantInt(C1))))) { in visitAnd() [all …]
|
H A D | InstCombineCompares.cpp | 1413 if (Pred == ICmpInst::ICMP_UGT && match(Op1, m_ConstantInt(CI)) && in foldICmpWithConstant() 1414 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant() 2691 if (!match(EqualVal, m_ConstantInt(Equal))) in matchThreeWayIntCompare() 2696 m_ConstantInt(Less), m_ConstantInt(Greater)))) in matchThreeWayIntCompare() 4253 if (match(B, m_ConstantInt(C1)) && match(D, m_ConstantInt(C2)) && in foldICmpEquality() 4312 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in foldICmpEquality() 4313 (Op1->hasOneUse() && match(Op0, m_And(m_Value(B), m_ConstantInt(Cst1))) && in foldICmpEquality() 4323 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality() 4325 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality() 4339 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality() [all …]
|
H A D | InstCombineSimplifyDemanded.cpp | 295 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 D | InstructionCombining.cpp | 2167 m_AShr(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst() 2171 m_SDiv(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst() 2944 if (match(Cond, m_Add(m_Value(Op0), m_ConstantInt(AddRHS)))) { in visitSwitchInst()
|
H A D | InstCombineCasts.cpp | 491 m_ConstantInt(ShiftVal)))) || in foldVecTruncToExtElt() 914 if (match(Src, m_OneUse(m_ExtractElt(m_Value(VecOp), m_ConstantInt(Cst))))) { in visitTrunc()
|
H A D | InstCombineCalls.cpp | 1747 m_Cmp(Pred, m_And(m_Value(A), m_ConstantInt(AlignMask)), in visitCallInst() 1752 match(A, m_Add(m_Value(A), m_ConstantInt(Offset))); in visitCallInst()
|
H A D | InstCombineSelect.cpp | 2022 if (!match(Cond, m_OneUse(m_ExtractElt(m_Value(), m_ConstantInt())))) in canonicalizeScalarSelectOfVecs()
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/IRTransforms/ |
H A D | SimplifyCFG.cpp | 232 m_Br(m_ConstantInt(CI), m_BasicBlock(TakenSucc), in eliminateCondBranches_v3()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 145 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()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | IntrinsicInst.cpp | 407 if (match(VLParam, m_c_Mul(m_ConstantInt(VScaleFactor), m_VScale(DL)))) in canIgnoreVectorLengthParam()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 302 PatternMatch::match(RHS, PatternMatch::m_ConstantInt(C)) && in isSSATMinMaxPattern() 312 PatternMatch::match(MinRHS, PatternMatch::m_ConstantInt(MinC)) && in isSSATMinMaxPattern()
|