Lines Matching refs:VectorTy
449 Instruction *Inst, const DataLayout &DL, FixedVectorType *VectorTy, in promoteAllocaUserToVector() argument
467 Builder.CreateLoad(VectorTy, PoisonValue::get(Builder.getPtrTy()), in promoteAllocaUserToVector()
488 Type *VecEltTy = VectorTy->getElementType(); in promoteAllocaUserToVector()
565 else if (VectorTy->isPtrOrPtrVectorTy()) in promoteAllocaUserToVector()
566 Val = CreateTempPtrIntCast(Val, VectorTy); in promoteAllocaUserToVector()
567 return Builder.CreateBitOrPointerCast(Val, VectorTy); in promoteAllocaUserToVector()
576 const unsigned NumVecElts = VectorTy->getNumElements(); in promoteAllocaUserToVector()
613 for (unsigned Idx = 0; Idx < VectorTy->getNumElements(); ++Idx) { in promoteAllocaUserToVector()
642 return Builder.CreateVectorSplat(VectorTy->getElementCount(), Elt); in promoteAllocaUserToVector()
649 DL.getTypeAllocSize(VectorTy))); in promoteAllocaUserToVector()
736 auto *VectorTy = dyn_cast<FixedVectorType>(AllocaTy); in tryPromoteAllocaToVector() local
740 VectorTy = FixedVectorType::get(ArrayTy->getElementType(), in tryPromoteAllocaToVector()
749 if (!VectorTy) { in tryPromoteAllocaToVector()
754 if (VectorTy->getNumElements() > 16 || VectorTy->getNumElements() < 2) { in tryPromoteAllocaToVector()
755 LLVM_DEBUG(dbgs() << " " << *VectorTy in tryPromoteAllocaToVector()
775 LLVM_DEBUG(dbgs() << " Attempting promotion to: " << *VectorTy << "\n"); in tryPromoteAllocaToVector()
777 Type *VecEltTy = VectorTy->getElementType(); in tryPromoteAllocaToVector()
808 if (!isSupportedAccessType(VectorTy, AccessTy, *DL)) in tryPromoteAllocaToVector()
912 << *VectorTy << '\n'); in tryPromoteAllocaToVector()
913 const unsigned VecStoreSize = DL->getTypeStoreSize(VectorTy); in tryPromoteAllocaToVector()
918 Updater.Initialize(VectorTy, "promotealloca"); in tryPromoteAllocaToVector()
919 Updater.AddAvailableValue(Alloca.getParent(), UndefValue::get(VectorTy)); in tryPromoteAllocaToVector()
928 I, *DL, VectorTy, VecStoreSize, ElementSize, TransferInfo, GEPVectorIdx, in tryPromoteAllocaToVector()
941 I, *DL, VectorTy, VecStoreSize, ElementSize, TransferInfo, GEPVectorIdx, in tryPromoteAllocaToVector()