Home
last modified time | relevance | path

Searched refs:m_LShr (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp85 m_c_Or(m_Shl(m_Value(L0), m_Value(L1)), m_LShr(m_Value(R0), Sub))); in foldGuardedRotateToFunnelShift()
94 m_c_Or(m_LShr(m_Value(L0), m_Value(L1)), m_Shl(m_Value(R0), Sub))); in foldGuardedRotateToFunnelShift()
198 if (!match(V, m_LShr(m_Value(Candidate), m_ConstantInt(BitIndex)))) in matchAndOrChain()
292 if (match(MulOp0, m_And(m_c_Add(m_LShr(m_Value(ShiftOp0), m_SpecificInt(4)), in tryToRecognizePopCount()
299 m_And(m_LShr(m_Deferred(AndOp0), m_SpecificInt(2)), in tryToRecognizePopCount()
304 match(SubOp1, m_And(m_LShr(m_Specific(Root), m_SpecificInt(1)), in tryToRecognizePopCount()
/third_party/skia/third_party/externals/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()
131 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
145 Match = match(In, m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
DHexagonLoopIdiomRecognition.cpp829 if (!match(TrueV, m_LShr(m_Value(R), m_One()))) in matchRightShift()
840 if (!match(FalseV, m_LShr(m_Value(R), m_One()))) in matchRightShift()
1311 if (!match(&I, m_LShr(m_Value(V), m_One()))) in convertShiftsToLeft()
1401 if (match(&*I, m_LShr(m_Value(V), m_One()))) { in convertShiftsToLeft()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp61 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero()
371 if (match(Op0, m_LShr(m_Value(X), m_APInt(C))) && *C == C->getBitWidth() - 1) in visitMul()
373 if (match(Op1, m_LShr(m_Value(X), m_APInt(C))) && *C == C->getBitWidth() - 1) in visitMul()
969 if (match(Op0, m_LShr(m_Value(X), m_APInt(C1))) && match(Op1, m_APInt(C2))) { in visitUDiv()
DInstCombineCasts.cpp466 m_LShr(m_BitCast(m_Value(VecInput)), in foldVecTruncToExtElt()
740 if (match(Src, m_OneUse(m_LShr(m_Value(X), m_APInt(C))))) { in visitTrunc()
746 if (match(Src, m_OneUse(m_c_Or(m_LShr(m_Value(X), m_APInt(C)), in visitTrunc()
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()
DInstCombineCompares.cpp1793 match(LShr, m_LShr(m_Specific(A), m_Value(B)))) { in foldICmpAndConstConst()
3285 m_CombineOr(m_LShr(m_AllOnes(), m_Value()), in foldICmpWithLowBitMaskedVal()
3286 m_LShr(m_Shl(m_AllOnes(), m_Value(Y)), m_Deferred(Y)))); in foldICmpWithLowBitMaskedVal()
3503 if (match(YShift, m_LShr(m_Value(), m_Value()))) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3571 if (HadTrunc && match(WidestShift, m_LShr(m_Value(), m_Value()))) { in foldShiftIntoShiftInAnotherHandOfAndInICmp()
4244 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) && in foldICmpEquality()
4245 match(Op1, m_OneUse(m_LShr(m_Value(B), m_Specific(Cst1))))) || in foldICmpEquality()
4277 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), m_ConstantInt(ShAmt))))) && in foldICmpEquality()
5054 match(LHS, m_LShr(m_Power2(CI), m_Value(X)))) { in foldICmpUsingKnownBits()
DInstCombineShifts.cpp489 if ((IsLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in canEvaluateShifted()
1149 if (match(Op0, m_LShr(m_Value(X), m_APInt(ShOp1)))) { in visitLShr()
DInstCombineAddSub.cpp1006 if (match(E, m_LShr(m_Value(Op), m_APInt(AI)))) { in MatchDiv()
1117 m_LShr(m_Value(X), m_Instruction(LowBitsToSkip)), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1793 match(Op1Wide, m_LShr(m_Value(X), m_APInt(ShAmt))) && in visitSub()
DInstCombineSelect.cpp516 const bool HasShift = match(B, m_OneUse(m_LShr(m_Value(X), m_Value(Z)))); in foldSelectICmpAndAnd()
562 if (match(TrueVal, m_LShr(m_Value(X), m_Value(Y))) && in foldSelectICmpLshrAshr()
DInstCombineAndOrXor.cpp1691 !match(Op0, m_OneUse(m_LShr(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp()
3065 if (match(NotVal, m_LShr(m_Constant(C), m_Value(Y))) && in visitXor()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp776 m_LShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C)))) { in strengthenRightShift()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DPatternMatch.h923 inline BinaryOp_match<LHS, RHS, Instruction::LShr> m_LShr(const LHS &L, in m_LShr() function
1969 auto RHS = m_LShr(m_Neg(m_Value(OpR)), m_SpecificInt(ShiftWidth));
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp1846 if (match(V, m_LShr(m_SignMask(), m_Value()))) in isKnownToBeAPowerOfTwo()
1857 match(V, m_LShr(m_Value(X), m_Value())))) in isKnownToBeAPowerOfTwo()
1913 if (match(V, m_Exact(m_LShr(m_Value(), m_Value()))) || in isKnownToBeAPowerOfTwo()
DInstructionSimplify.cpp1991 if (match(Op0, m_LShr(m_Value(X), m_APInt(ShAmt))) && in SimplifyAndInst()
2915 if (LBO && (match(LBO, m_LShr(m_Specific(RHS), m_Value())) || in simplifyICmpWithBinOp()
2926 if (RBO && (match(RBO, m_LShr(m_Specific(LHS), m_Value())) || in simplifyICmpWithBinOp()
DScalarEvolution.cpp7650 if (match(V, m_LShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit()