Lines Matching refs:AccessTy
402 Type *AccessTy = Inst->getType(); in promoteAllocaUserToVector() local
403 TypeSize AccessSize = DL.getTypeStoreSize(AccessTy); in promoteAllocaUserToVector()
405 if (AccessTy->isPtrOrPtrVectorTy()) in promoteAllocaUserToVector()
406 CurVal = CreateTempPtrIntCast(CurVal, AccessTy); in promoteAllocaUserToVector()
409 Value *NewVal = Builder.CreateBitOrPointerCast(CurVal, AccessTy); in promoteAllocaUserToVector()
415 if (isa<FixedVectorType>(AccessTy)) { in promoteAllocaUserToVector()
419 assert(DL.getTypeStoreSize(SubVecTy) == DL.getTypeStoreSize(AccessTy)); in promoteAllocaUserToVector()
429 if (AccessTy->isPtrOrPtrVectorTy()) in promoteAllocaUserToVector()
430 SubVec = CreateTempPtrIntCast(SubVec, AccessTy); in promoteAllocaUserToVector()
434 SubVec = Builder.CreateBitOrPointerCast(SubVec, AccessTy); in promoteAllocaUserToVector()
441 if (AccessTy != VecEltTy) in promoteAllocaUserToVector()
442 ExtractElement = Builder.CreateBitOrPointerCast(ExtractElement, AccessTy); in promoteAllocaUserToVector()
457 Type *AccessTy = Val->getType(); in promoteAllocaUserToVector() local
458 TypeSize AccessSize = DL.getTypeStoreSize(AccessTy); in promoteAllocaUserToVector()
460 if (AccessTy->isPtrOrPtrVectorTy()) in promoteAllocaUserToVector()
461 Val = CreateTempPtrIntCast(Val, AccessTy); in promoteAllocaUserToVector()
468 if (isa<FixedVectorType>(AccessTy)) { in promoteAllocaUserToVector()
474 assert(DL.getTypeStoreSize(SubVecTy) == DL.getTypeStoreSize(AccessTy)); in promoteAllocaUserToVector()
478 else if (AccessTy->isPtrOrPtrVectorTy()) in promoteAllocaUserToVector()
479 Val = CreateTempPtrIntCast(Val, AccessTy); in promoteAllocaUserToVector()
560 static bool isSupportedAccessType(FixedVectorType *VecTy, Type *AccessTy, in isSupportedAccessType() argument
573 if (isa<FixedVectorType>(AccessTy)) { in isSupportedAccessType()
574 TypeSize AccTS = DL.getTypeStoreSize(AccessTy); in isSupportedAccessType()
579 return CastInst::isBitOrNoopPointerCastable(VecTy->getElementType(), AccessTy, in isSupportedAccessType()
696 Type *AccessTy = getLoadStoreType(Inst); in tryPromoteAllocaToVector() local
697 if (AccessTy->isAggregateType()) in tryPromoteAllocaToVector()
699 assert(!AccessTy->isAggregateType() || AccessTy->isArrayTy()); in tryPromoteAllocaToVector()
711 DL->getTypeStoreSize(AccessTy)) { in tryPromoteAllocaToVector()
716 if (!isSupportedAccessType(VectorTy, AccessTy, *DL)) in tryPromoteAllocaToVector()