Lines Matching refs:FromVal

769 ConvertScalar_ExtractValue(Value *FromVal, Type *ToType,  in ConvertScalar_ExtractValue()  argument
773 Type *FromType = FromVal->getType(); in ConvertScalar_ExtractValue()
775 return FromVal; in ConvertScalar_ExtractValue()
783 return Builder.CreateBitCast(FromVal, ToType); in ConvertScalar_ExtractValue()
803 Value *V = Builder.CreateExtractElement(FromVal, Idx); in ConvertScalar_ExtractValue()
817 Value *Elt = ConvertScalar_ExtractValue(FromVal, ST->getElementType(i), in ConvertScalar_ExtractValue()
831 Value *Elt = ConvertScalar_ExtractValue(FromVal, AT->getElementType(), in ConvertScalar_ExtractValue()
840 IntegerType *NTy = cast<IntegerType>(FromVal->getType()); in ConvertScalar_ExtractValue()
859 FromVal = Builder.CreateLShr(FromVal, in ConvertScalar_ExtractValue()
860 ConstantInt::get(FromVal->getType(), ShAmt)); in ConvertScalar_ExtractValue()
862 FromVal = Builder.CreateShl(FromVal, in ConvertScalar_ExtractValue()
863 ConstantInt::get(FromVal->getType(), -ShAmt)); in ConvertScalar_ExtractValue()
868 FromVal = in ConvertScalar_ExtractValue()
869 Builder.CreateTrunc(FromVal, IntegerType::get(FromVal->getContext(), in ConvertScalar_ExtractValue()
872 FromVal = in ConvertScalar_ExtractValue()
873 Builder.CreateZExt(FromVal, IntegerType::get(FromVal->getContext(), in ConvertScalar_ExtractValue()
881 FromVal = Builder.CreateBitCast(FromVal, ToType); in ConvertScalar_ExtractValue()
884 FromVal = Builder.CreateIntToPtr(FromVal, ToType); in ConvertScalar_ExtractValue()
886 assert(FromVal->getType() == ToType && "Didn't convert right?"); in ConvertScalar_ExtractValue()
887 return FromVal; in ConvertScalar_ExtractValue()