Home | History | Annotate | Download | only in Scalar

Lines Matching refs:ToType

279   Value *ConvertScalar_ExtractValue(Value *NV, Type *ToType,
669 /// ConvertScalar_ExtractValue - Extract a value of type ToType from an integer
671 /// Offset. This returns the value, which is of type ToType.
680 ConvertScalar_ExtractValue(Value *FromVal, Type *ToType,
684 if (FromType == ToType && Offset == 0)
691 unsigned ToTypeSize = TD.getTypeAllocSize(ToType);
693 return Builder.CreateBitCast(FromVal, ToType);
704 if (V->getType() != ToType)
705 V = Builder.CreateBitCast(V, ToType);
709 // If ToType is a first class aggregate, extract out each of the pieces and
711 if (StructType *ST = dyn_cast<StructType>(ToType)) {
723 if (ArrayType *AT = dyn_cast<ArrayType>(ToType)) {
745 TD.getTypeStoreSizeInBits(ToType) - Offset;
761 unsigned LIBitWidth = TD.getTypeSizeInBits(ToType);
772 if (ToType->isIntegerTy()) {
774 } else if (ToType->isFloatingPointTy() || ToType->isVectorTy()) {
776 FromVal = Builder.CreateBitCast(FromVal, ToType);
779 FromVal = Builder.CreateIntToPtr(FromVal, ToType);
781 assert(FromVal->getType() == ToType && "Didn't convert right?");