| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonGenExtract.cpp | 114 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 138 Match = match(In, m_And(m_AShr(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()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAndOrXor.cpp | 1811 if (match(Op0, m_OneUse(m_SExt(m_AShr(m_Value(X), m_APInt(ShiftC))))) && in visitAnd() 1824 if (match(Op0, m_AShr(m_Value(X), m_APInt(ShiftC))) && ShiftC->ult(Width) && in visitAnd() 2161 if (match(&I, m_c_And(m_OneUse(m_AShr(m_Value(X), m_SpecificInt(FullShift))), in visitAnd() 2169 m_AShr(m_Value(X), m_SpecificInt(FullShift)))), in visitAnd() 3034 if (match(&I, m_c_Or(m_OneUse(m_AShr( in visitOr() 3378 if (match(Op1, m_AShr(m_Value(A), m_APInt(ShAmt))) && in canonicalizeAbs() 3501 if (match(NotVal, m_AShr(m_Not(m_Value(X)), m_Value(Y)))) in foldNot() 3511 if (match(NotVal, m_AShr(m_Constant(C), m_Value(Y))) && in foldNot() 3693 m_AShr(m_Value(X), m_APIntAllowUndef(CA))))) && in visitXor()
|
| H A D | InstCombineShifts.cpp | 305 if (match(Masked, m_AShr(m_Value(), m_Value()))) in dropRedundantMaskingOfLeftShiftInput() 1318 m_AShr(m_Shl(m_Instruction(MaybeTrunc), in foldVariableSignZeroExtensionOfVariableHighBitExtract() 1415 if (match(Op0, m_AShr(m_Value(X), m_APInt(ShOp1))) && in visitAShr()
|
| H A D | InstCombineMulDivRem.cpp | 375 if (match(Op0, m_OneUse(m_AShr(m_Value(X), m_APInt(C)))) && in visitMul() 401 if (match(&I, m_c_BinOp(m_Or(m_AShr(m_Value(X), in visitMul()
|
| H A D | InstCombineAddSub.cpp | 965 if (match(Op0, m_AShr(m_Shl(m_Value(X), m_APInt(C2)), m_APInt(C3))) && in foldAddWithConstant() 2168 if (match(Op1, m_AShr(m_Value(A), m_APInt(ShAmt))) && in visitSub()
|
| H A D | InstCombineCasts.cpp | 1585 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_Constant(BA)), in visitSExt() 1603 if (match(Src, m_OneUse(m_AShr(m_Trunc(m_Value(X)), in visitSExt()
|
| H A D | InstCombineSimplifyDemanded.cpp | 1055 m_AShr(m_Shl(m_Value(X), m_APInt(ShiftLC)), m_APInt(ShiftRC))) && in SimplifyMultipleUseDemandedBits()
|
| H A D | InstCombineCompares.cpp | 3742 m_OneUse(m_AShr(m_Shl(m_Value(X), m_APInt(C0)), in foldICmpWithTruncSignExtendedVal() 4693 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_APIntAllowUndef(AP1)))) && in foldICmpEquality() 4694 match(Op1, m_OneUse(m_AShr(m_Value(B), m_APIntAllowUndef(AP2)))))) { in foldICmpEquality() 4778 if (match(Op0, m_AShr(m_Trunc(m_Value(A)), m_SpecificInt(BitWidth - 1))) && in foldICmpEquality()
|
| H A D | InstCombineSelect.cpp | 576 match(FalseVal, m_AShr(m_Specific(X), m_Specific(Y))) && in foldSelectICmpLshrAshr()
|
| H A D | InstructionCombining.cpp | 2462 m_AShr(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 1123 inline BinaryOp_match<LHS, RHS, Instruction::AShr> m_AShr(const LHS &L, in m_AShr() function 2390 auto LHS = m_AShr(m_Value(OpL), m_SpecificInt(ShiftWidth));
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 797 m_AShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C))) || in strengthenRightShift()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 4602 if (match(Indices[0], m_AShr(m_Sub(m_PtrToInt(m_Value(P)), in simplifyGEPInst() 5780 if (match(Op0, m_AShr(m_Negative(), m_Value()))) in simplifyBinaryIntrinsic()
|
| H A D | ScalarEvolution.cpp | 9041 else if (match(V, m_AShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt)))) in computeShiftCompareExitLimit()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 34047 match(Op.get(), m_AShr(m_Shl(m_Value(), m_SpecificInt(32)), in shouldSinkOperands()
|