Lines Matching refs:ShAmt
845 int ShAmt = 0; in ConvertScalar_ExtractValue() local
850 ShAmt = DL.getTypeStoreSizeInBits(NTy) - in ConvertScalar_ExtractValue()
853 ShAmt = Offset; in ConvertScalar_ExtractValue()
859 if (ShAmt > 0 && (unsigned)ShAmt < NTy->getBitWidth()) in ConvertScalar_ExtractValue()
861 ConstantInt::get(FromVal->getType(), ShAmt)); in ConvertScalar_ExtractValue()
862 else if (ShAmt < 0 && (unsigned)-ShAmt < NTy->getBitWidth()) in ConvertScalar_ExtractValue()
864 ConstantInt::get(FromVal->getType(), -ShAmt)); in ConvertScalar_ExtractValue()
994 int ShAmt = 0; in ConvertScalar_InsertValue() local
999 ShAmt = DestStoreWidth - SrcStoreWidth - Offset; in ConvertScalar_InsertValue()
1001 ShAmt = Offset; in ConvertScalar_InsertValue()
1008 if (ShAmt > 0 && (unsigned)ShAmt < DestWidth) { in ConvertScalar_InsertValue()
1009 SV = Builder.CreateShl(SV, ConstantInt::get(SV->getType(), ShAmt)); in ConvertScalar_InsertValue()
1010 Mask <<= ShAmt; in ConvertScalar_InsertValue()
1011 } else if (ShAmt < 0 && (unsigned)-ShAmt < DestWidth) { in ConvertScalar_InsertValue()
1012 SV = Builder.CreateLShr(SV, ConstantInt::get(SV->getType(), -ShAmt)); in ConvertScalar_InsertValue()
1013 Mask = Mask.lshr(-ShAmt); in ConvertScalar_InsertValue()