Lines Matching refs:ShAmt
583 Value *ShAmt = matchShiftAmount(ShAmt0, ShAmt1, NarrowWidth); in narrowFunnelShift() local
585 if (!ShAmt) { in narrowFunnelShift()
586 ShAmt = matchShiftAmount(ShAmt1, ShAmt0, NarrowWidth); in narrowFunnelShift()
589 if (!ShAmt) in narrowFunnelShift()
604 Value *NarrowShAmt = Builder.CreateTrunc(ShAmt, DestTy); in narrowFunnelShift()
831 Constant *ShAmt = ConstantExpr::getUMin(C, MaxAmt); in visitTrunc() local
832 ShAmt = ConstantExpr::getTrunc(ShAmt, A->getType()); in visitTrunc()
833 ShAmt = Constant::mergeUndefsWith(ShAmt, C); in visitTrunc()
834 return IsExact ? BinaryOperator::CreateExactAShr(A, ShAmt) in visitTrunc()
835 : BinaryOperator::CreateAShr(A, ShAmt); in visitTrunc()
841 Constant *ShAmt = ConstantExpr::getUMin(C, MaxAmt); in visitTrunc() local
842 ShAmt = ConstantExpr::getTrunc(ShAmt, A->getType()); in visitTrunc()
843 Value *Shift = Builder.CreateAShr(A, ShAmt, "", IsExact); in visitTrunc()
860 auto *ShAmt = ConstantExpr::getIntegerCast(C, A->getType(), true); in visitTrunc() local
861 ShAmt = Constant::mergeUndefsWith(ShAmt, C); in visitTrunc()
864 ? Builder.CreateAShr(A, ShAmt, OldShift->getName(), IsExact) in visitTrunc()
865 : Builder.CreateLShr(A, ShAmt, OldShift->getName(), IsExact); in visitTrunc()
987 uint32_t ShAmt = KnownZeroMask.logBase2(); in transformZExtICmp() local
989 if (ShAmt) { in transformZExtICmp()
992 In = Builder.CreateLShr(In, ConstantInt::get(In->getType(), ShAmt), in transformZExtICmp()
1486 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize); in visitSExt() local
1487 return BinaryOperator::CreateAShr(Builder.CreateShl(Res, ShAmt, "sext"), in visitSExt()
1488 ShAmt); in visitSExt()
1498 Constant *ShAmt = ConstantInt::get(DestTy, DestBitSize - SrcBitSize); in visitSExt() local
1499 return BinaryOperator::CreateAShr(Builder.CreateShl(X, ShAmt), ShAmt); in visitSExt()