Lines Matching refs:FromVal
770 ConvertScalar_ExtractValue(Value *FromVal, Type *ToType, in ConvertScalar_ExtractValue() argument
774 Type *FromType = FromVal->getType(); in ConvertScalar_ExtractValue()
776 return FromVal; in ConvertScalar_ExtractValue()
784 return Builder.CreateBitCast(FromVal, ToType); in ConvertScalar_ExtractValue()
804 Value *V = Builder.CreateExtractElement(FromVal, Idx); in ConvertScalar_ExtractValue()
818 Value *Elt = ConvertScalar_ExtractValue(FromVal, ST->getElementType(i), in ConvertScalar_ExtractValue()
832 Value *Elt = ConvertScalar_ExtractValue(FromVal, AT->getElementType(), in ConvertScalar_ExtractValue()
841 IntegerType *NTy = cast<IntegerType>(FromVal->getType()); in ConvertScalar_ExtractValue()
860 FromVal = Builder.CreateLShr(FromVal, in ConvertScalar_ExtractValue()
861 ConstantInt::get(FromVal->getType(), ShAmt)); in ConvertScalar_ExtractValue()
863 FromVal = Builder.CreateShl(FromVal, in ConvertScalar_ExtractValue()
864 ConstantInt::get(FromVal->getType(), -ShAmt)); in ConvertScalar_ExtractValue()
869 FromVal = in ConvertScalar_ExtractValue()
870 Builder.CreateTrunc(FromVal, IntegerType::get(FromVal->getContext(), in ConvertScalar_ExtractValue()
873 FromVal = in ConvertScalar_ExtractValue()
874 Builder.CreateZExt(FromVal, IntegerType::get(FromVal->getContext(), in ConvertScalar_ExtractValue()
882 FromVal = Builder.CreateBitCast(FromVal, ToType); in ConvertScalar_ExtractValue()
885 FromVal = Builder.CreateIntToPtr(FromVal, ToType); in ConvertScalar_ExtractValue()
887 assert(FromVal->getType() == ToType && "Didn't convert right?"); in ConvertScalar_ExtractValue()
888 return FromVal; in ConvertScalar_ExtractValue()