Lines Matching refs:ElementSize
1461 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); in getNaturalGEPRecursively() local
1462 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1465 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1473 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPRecursively() local
1474 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1478 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1527 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPWithOffset() local
1528 if (ElementSize == 0) in getNaturalGEPWithOffset()
1530 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPWithOffset()
1532 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPWithOffset()
1777 uint64_t ElementSize, in isVectorPromotionViableForSlice() argument
1782 uint64_t BeginIndex = BeginOffset / ElementSize; in isVectorPromotionViableForSlice()
1783 if (BeginIndex * ElementSize != BeginOffset || in isVectorPromotionViableForSlice()
1788 uint64_t EndIndex = EndOffset / ElementSize; in isVectorPromotionViableForSlice()
1789 if (EndIndex * ElementSize != EndOffset || EndIndex > Ty->getNumElements()) in isVectorPromotionViableForSlice()
1799 Type::getIntNTy(Ty->getContext(), NumElements * ElementSize * 8); in isVectorPromotionViableForSlice()
1927 uint64_t ElementSize = DL.getTypeSizeInBits(VTy->getElementType()); in isVectorPromotionViable() local
1931 if (ElementSize % 8) in isVectorPromotionViable()
1935 ElementSize /= 8; in isVectorPromotionViable()
1938 if (!isVectorPromotionViableForSlice(P, S, VTy, ElementSize, DL)) in isVectorPromotionViable()
1942 if (!isVectorPromotionViableForSlice(P, *S, VTy, ElementSize, DL)) in isVectorPromotionViable()
2251 uint64_t ElementSize; member in llvm::sroa::AllocaSliceRewriter
2295 ElementSize(VecTy ? DL.getTypeSizeInBits(ElementTy) / 8 : 0), in AllocaSliceRewriter()
2404 assert(RelOffset / ElementSize < UINT32_MAX && "Index out of bounds"); in getIndex()
2405 uint32_t Index = RelOffset / ElementSize; in getIndex()
2406 assert(Index * ElementSize == RelOffset); in getIndex()
3451 uint64_t ElementSize = DL.getTypeAllocSize(ElementTy); in getTypePartition() local
3452 uint64_t NumSkippedElements = Offset / ElementSize; in getTypePartition()
3455 Offset -= NumSkippedElements * ElementSize; in getTypePartition()
3458 if (Offset > 0 || Size < ElementSize) { in getTypePartition()
3460 if ((Offset + Size) > ElementSize) in getTypePartition()
3467 if (Size == ElementSize) in getTypePartition()
3469 assert(Size > ElementSize); in getTypePartition()
3470 uint64_t NumElements = Size / ElementSize; in getTypePartition()
3471 if (NumElements * ElementSize != Size) in getTypePartition()
3491 uint64_t ElementSize = DL.getTypeAllocSize(ElementTy); in getTypePartition() local
3492 if (Offset >= ElementSize) in getTypePartition()
3496 if (Offset > 0 || Size < ElementSize) { in getTypePartition()
3497 if ((Offset + Size) > ElementSize) in getTypePartition()
3503 if (Size == ElementSize) in getTypePartition()