Home | History | Annotate | Download | only in Scalar

Lines Matching refs:FromVal

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