Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:SrcPtr

620 EnterStructPointerForCoercedAccess(llvm::Value *SrcPtr,
624 if (SrcSTy->getNumElements() == 0) return SrcPtr;
634 return SrcPtr;
637 SrcPtr = CGF.Builder.CreateConstGEP2_32(SrcPtr, 0, 0, "coerce.dive");
641 cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
643 return EnterStructPointerForCoercedAccess(SrcPtr, SrcSTy, DstSize, CGF);
645 return SrcPtr;
701 /// CreateCoercedLoad - Create a load from \arg SrcPtr interpreted as
707 static llvm::Value *CreateCoercedLoad(llvm::Value *SrcPtr,
711 cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
715 return CGF.Builder.CreateLoad(SrcPtr);
720 SrcPtr = EnterStructPointerForCoercedAccess(SrcPtr, SrcSTy, DstSize, CGF);
721 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
730 llvm::LoadInst *Load = CGF.Builder.CreateLoad(SrcPtr);
743 CGF.Builder.CreateBitCast(SrcPtr, llvm::PointerType::getUnqual(Ty));
755 llvm::Value *SrcCasted = CGF.Builder.CreateBitCast(SrcPtr, I8PtrTy);
2391 llvm::Value *SrcPtr;
2393 SrcPtr = CreateMemTemp(I->Ty, "coerce");
2394 LValue SrcLV = MakeAddrLValue(SrcPtr, I->Ty, TypeAlign);
2401 SrcPtr = RV.getAggregateAddr();
2405 SrcPtr = Builder.CreateBitCast(SrcPtr, Builder.getInt8PtrTy());
2406 SrcPtr = Builder.CreateConstGEP1_32(SrcPtr, Offs);
2407 SrcPtr = Builder.CreateBitCast(SrcPtr,
2418 cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
2428 = CreateTempAlloca(STy, SrcPtr->getName() + ".coerce");
2429 Builder.CreateMemCpy(TempAlloca, SrcPtr, SrcSize, 0);
2430 SrcPtr = TempAlloca;
2432 SrcPtr = Builder.CreateBitCast(SrcPtr,
2437 llvm::Value *EltPtr = Builder.CreateConstGEP2_32(SrcPtr, 0, i);
2448 Args.push_back(CreateCoercedLoad(SrcPtr, ArgInfo.getCoerceToType(),