Lines Matching refs:ShiftAmt
1653 int64_t ShiftAmt = MaybeShiftAmtVal->Value.getSExtValue(); in matchCombineShlOfExtend() local
1655 MatchData.Imm = ShiftAmt; in matchCombineShlOfExtend()
1658 return MinLeadingZeros >= ShiftAmt; in matchCombineShlOfExtend()
1668 auto ShiftAmt = Builder.buildConstant(ExtSrcTy, ShiftAmtVal); in applyCombineShlOfExtend() local
1670 Builder.buildShl(ExtSrcTy, ExtSrcReg, ShiftAmt, MI.getFlags()); in applyCombineShlOfExtend()
1764 unsigned ShiftAmt = Dst0Ty.getSizeInBits(); in matchCombineUnmergeConstant() local
1767 Csts.emplace_back(Val.trunc(ShiftAmt)); in matchCombineUnmergeConstant()
1768 Val = Val.lshr(ShiftAmt); in matchCombineUnmergeConstant()
1996 unsigned ShiftAmt; in tryCombineShiftToUnmerge() local
1997 if (matchCombineShiftToUnmerge(MI, TargetShiftAmount, ShiftAmt)) { in tryCombineShiftToUnmerge()
1998 applyCombineShiftToUnmerge(MI, ShiftAmt); in tryCombineShiftToUnmerge()
2270 Register ShiftAmt; in matchCombineTruncOfShl() local
2273 mi_match(SrcReg, MRI, m_GShl(m_Reg(ShiftSrc), m_Reg(ShiftAmt))) && in matchCombineTruncOfShl()
2277 KnownBits Known = KB->getKnownBits(ShiftAmt); in matchCombineTruncOfShl()
2280 MatchInfo = std::make_pair(ShiftSrc, ShiftAmt); in matchCombineTruncOfShl()
2296 Register ShiftAmt = MatchInfo.second; in applyCombineTruncOfShl() local
2299 Builder.buildShl(DstReg, TruncShiftSrc, ShiftAmt, SrcMI->getFlags()); in applyCombineTruncOfShl()
2758 int64_t ShiftAmt; in applyAshShlToSextInreg() local
2759 std::tie(Src, ShiftAmt) = MatchInfo; in applyAshShlToSextInreg()
2762 Builder.buildSExtInReg(MI.getOperand(0).getReg(), Src, Size - ShiftAmt); in applyAshShlToSextInreg()
3564 int64_t ShiftAmt; in getTruncStoreByteOffset() local
3566 m_any_of(m_GLShr(m_Reg(FoundSrcVal), m_ICst(ShiftAmt)), in getTruncStoreByteOffset()
3567 m_GAShr(m_Reg(FoundSrcVal), m_ICst(ShiftAmt))))) { in getTruncStoreByteOffset()
3577 if (ShiftAmt % NarrowBits!= 0) in getTruncStoreByteOffset()
3579 const unsigned Offset = ShiftAmt / NarrowBits; in getTruncStoreByteOffset()
4964 auto ShiftAmt = in applyUMulHToLShr() local
4966 auto Trunc = Builder.buildZExtOrTrunc(ShiftAmtTy, ShiftAmt); in applyUMulHToLShr()