Lines Matching defs:SrcPtr
618 EnterStructPointerForCoercedAccess(llvm::Value *SrcPtr,
622 if (SrcSTy->getNumElements() == 0) return SrcPtr;
632 return SrcPtr;
635 SrcPtr = CGF.Builder.CreateConstGEP2_32(SrcPtr, 0, 0, "coerce.dive");
639 cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
641 return EnterStructPointerForCoercedAccess(SrcPtr, SrcSTy, DstSize, CGF);
643 return SrcPtr;
678 /// CreateCoercedLoad - Create a load from \arg SrcPtr interpreted as
684 static llvm::Value *CreateCoercedLoad(llvm::Value *SrcPtr,
688 cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
692 return CGF.Builder.CreateLoad(SrcPtr);
697 SrcPtr = EnterStructPointerForCoercedAccess(SrcPtr, SrcSTy, DstSize, CGF);
698 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
707 llvm::LoadInst *Load = CGF.Builder.CreateLoad(SrcPtr);
720 CGF.Builder.CreateBitCast(SrcPtr, llvm::PointerType::getUnqual(Ty));
732 llvm::Value *SrcCasted = CGF.Builder.CreateBitCast(SrcPtr, I8PtrTy);
2229 llvm::Value *SrcPtr;
2231 SrcPtr = CreateMemTemp(I->Ty, "coerce");
2232 LValue SrcLV = MakeAddrLValue(SrcPtr, I->Ty, TypeAlign);
2239 SrcPtr = RV.getAggregateAddr();
2243 SrcPtr = Builder.CreateBitCast(SrcPtr, Builder.getInt8PtrTy());
2244 SrcPtr = Builder.CreateConstGEP1_32(SrcPtr, Offs);
2245 SrcPtr = Builder.CreateBitCast(SrcPtr,
2256 cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
2266 = CreateTempAlloca(STy, SrcPtr->getName() + ".coerce");
2267 Builder.CreateMemCpy(TempAlloca, SrcPtr, SrcSize, 0);
2268 SrcPtr = TempAlloca;
2270 SrcPtr = Builder.CreateBitCast(SrcPtr,
2275 llvm::Value *EltPtr = Builder.CreateConstGEP2_32(SrcPtr, 0, i);
2286 Args.push_back(CreateCoercedLoad(SrcPtr, ArgInfo.getCoerceToType(),