Home
last modified time | relevance | path

Searched refs:m_Shl (Results 1 – 20 of 20) sorted by relevance

/netbsd/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonGenExtract.cpp107 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
114 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
122 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY()
145 Match = match(In, m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
152 Match = match(In, m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
H A DHexagonLoopIdiomRecognition.cpp713 if (match(A, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift()
716 } else if (match(B, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift()
787 if (!match(T, m_Shl(m_Value(Q), m_Specific(CIV))) && in matchLeftShift()
788 !match(T, m_Shl(m_ZExt(m_Value(Q)), m_ZExt(m_Specific(CIV))))) in matchLeftShift()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp213 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
215 auto MaskB = m_Xor(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
220 m_Shr(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_Deferred(MaskShAmt)); in dropRedundantMaskingOfLeftShiftInput()
256 match(Masked, m_Shr(m_Shl(m_Value(X), m_Value(MaskShAmt)), in dropRedundantMaskingOfLeftShiftInput()
979 if (match(Op0, m_Shl(m_Value(X), m_APInt(ShOp1))) && ShOp1->ult(BitWidth)) { in visitShl()
1015 if (match(Op0, m_OneUse(m_Shl(m_Constant(C2), m_Value(X))))) in visitShl()
1071 if (match(Op0, m_Shl(m_Value(X), m_APInt(ShOp1))) && ShOp1->ult(BitWidth)) { in visitLShr()
1182 if (match(Op0, m_OneUse(m_Shl(m_Value(X), m_Specific(Op1))))) { in visitLShr()
1211 m_AShr(m_Shl(m_Instruction(MaybeTrunc), in foldVariableSignZeroExtensionOfVariableHighBitExtract()
1282 if (match(Op0, m_Shl(m_ZExt(m_Value(X)), m_Specific(Op1))) && in visitAShr()
H A DInstCombineMulDivRem.cpp62 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero()
172 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul()
309 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul()
312 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) { in visitMul()
909 if (!match(ShiftLeft, m_Shl(m_Constant(CI), m_Value(N)))) in foldUDivShl()
940 if (match(Op1, m_Shl(m_Power2(), m_Value())) || in visitUDivOperand()
941 match(Op1, m_ZExt(m_Shl(m_Power2(), m_Value())))) { in visitUDivOperand()
H A DInstCombineAddSub.cpp979 if (match(Op0, m_AShr(m_Shl(m_Value(X), m_APInt(C2)), m_APInt(C3))) && in foldAddWithConstant()
1007 if (match(E, m_Shl(m_Value(Op), m_APInt(AI)))) { in MatchMul()
1112 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask()
1231 m_Shl(m_Constant(SignExtendingValueBaseConstant), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1265 if (!match(Op0, m_Shl(m_Value(X), m_Value(ShAmt))) || in factorizeMathWithShlOps()
1266 !match(Op1, m_Shl(m_Value(Y), m_Specific(ShAmt)))) in factorizeMathWithShlOps()
1363 if (match(LHS, m_Shl(m_SDiv(m_Specific(RHS), m_APInt(C1)), m_APInt(C2)))) { in visitAdd()
H A DInstCombineCompares.cpp1988 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne()
3355 m_CombineOr(m_Not(m_Shl(m_AllOnes(), m_Value())), in foldICmpWithLowBitMaskedVal()
3356 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())), in foldICmpWithLowBitMaskedVal()
3358 m_LShr(m_Shl(m_AllOnes(), m_Value(Y)), m_Deferred(Y)))); in foldICmpWithLowBitMaskedVal()
3451 m_OneUse(m_AShr(m_Shl(m_Value(X), m_APInt(C0)), in foldICmpWithTruncSignExtendedVal()
4339 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality()
4340 match(Op1, m_OneUse(m_Shl(m_Value(B), m_Specific(Cst1))))) { in foldICmpEquality()
5107 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in foldICmpUsingKnownBits()
5458 m_c_ICmp(Pred, m_OneUse(m_Shl(m_One(), m_Value(Y))), m_Value(X)))) { in foldICmpWithHighBitMask()
5471 m_Not(m_Shl(m_AllOnes(), m_Value(Y))), in foldICmpWithHighBitMask()
[all …]
H A DInstCombineAndOrXor.cpp1753 !match(Op0, m_OneUse(m_Shl(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
1941 if (match(&I, m_And(m_OneUse(m_Shl(m_ZExt(m_Value(X)), m_Value(Y))), in visitAnd()
2233 !match(Op1, m_OneUse(m_Shl(m_Value(ShlVal), m_APInt(C)))) || in matchOrConcat()
2962 if (match(&I, m_c_Or(m_Add(m_Shl(m_One(), m_Value(X)), m_AllOnes()), in visitOr()
2963 m_Shl(m_One(), m_Deferred(X)))) && in visitOr()
3458 if (match(Op0, m_OneUse(m_Shl(m_Value(X), m_APInt(C)))) && in visitXor()
H A DInstCombineCasts.cpp888 if (match(Src, m_Shl(m_Value(A), m_Constant(C))) && in visitTrunc()
1528 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_Constant(BA)), in visitSExt()
H A DInstCombineSimplifyDemanded.cpp964 m_AShr(m_Shl(m_Value(X), m_APInt(ShiftLC)), m_APInt(ShiftRC))) && in SimplifyMultipleUseDemandedBits()
H A DInstructionCombining.cpp585 if (match(Op, m_Shl(m_Value(), m_Constant(C)))) { in getBinOpsForFactorization()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp97 m_Shl(m_Value(ShVal0), m_Value(ShAmt)), in foldGuardedFunnelShift()
107 m_OneUse(m_c_Or(m_Shl(m_Value(ShVal0), m_Sub(m_SpecificInt(Width), in foldGuardedFunnelShift()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp418 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
H A DLoopIdiomRecognize.cpp2135 m_LoopInvariant(m_Shl(m_One(), m_Value(BitPos)), in detectShiftUntilBitTestIdiom()
2169 if (!NextX || !match(NextX, m_Shl(m_Specific(CurrX), m_One()))) { in detectShiftUntilBitTestIdiom()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp802 m_AShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C))) || in strengthenRightShift()
804 m_LShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C)))) { in strengthenRightShift()
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DInstructionSimplify.cpp2021 if (match(Op0, m_Shl(m_Value(X), m_APInt(ShAmt))) && in SimplifyAndInst()
2889 (match(LBO, m_UDiv(m_Shl(m_Specific(RHS), m_APInt(C1)), m_APInt(C2))) && in simplifyICmpWithBinOpOnLHS()
3045 if (match(LHS, m_Shl(m_Power2(), m_Value())) && in simplifyICmpWithBinOp()
3057 match(LHS, m_Shl(m_One(), m_Value())) || !C->isNullValue()) { in simplifyICmpWithBinOp()
3068 if (match(LHS, m_Shl(m_One(), m_Value())) && match(RHS, m_SignMask())) { in simplifyICmpWithBinOp()
5404 if (match(Op0, m_Shl(m_One(), m_Value(X)))) in simplifyBinaryIntrinsic()
H A DValueTracking.cpp797 } 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()
1940 if (match(V, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo()
1955 if (OrZero && (match(V, m_Shl(m_Value(X), m_Value())) || in isKnownToBeAPowerOfTwo()
2381 if (match(V, m_Shl(m_Value(X), m_Value(Y)))) { in isKnownNonZero()
2667 return match(OBO, m_Shl(m_Specific(V1), m_APInt(C))) && in isNonEqualShl()
H A DScalarEvolution.cpp8020 else if (match(V, m_Shl(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DPatternMatch.h1141 inline BinaryOp_match<LHS, RHS, Instruction::Shl> m_Shl(const LHS &L, in m_Shl() function
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp7462 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_Value(HValue))), in splitMergedValStore()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp4200 (match(ZextLoad, m_Shl(m_Value(), m_APInt(ShAmtC))) && in isLoadCombineCandidateImpl()