Lines Matching refs:ElementTy
1470 Type *ElementTy = Ty; in getNaturalGEPWithType() local
1472 if (ElementTy->isPointerTy()) in getNaturalGEPWithType()
1475 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType()
1476 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType()
1478 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType()
1479 ElementTy = VectorTy->getElementType(); in getNaturalGEPWithType()
1481 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType()
1484 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1490 } while (ElementTy != TargetTy); in getNaturalGEPWithType()
1491 if (ElementTy != TargetTy) in getNaturalGEPWithType()
1518 Type *ElementTy = Ty->getNonOpaquePointerElementType(); in getNaturalGEPWithOffset() local
1519 if (!ElementTy->isSized()) in getNaturalGEPWithOffset()
1522 SmallVector<APInt> IntIndices = DL.getGEPIndicesForOffset(ElementTy, Offset); in getNaturalGEPWithOffset()
1528 return getNaturalGEPWithType(IRB, DL, Ptr, ElementTy, TargetTy, Indices, in getNaturalGEPWithOffset()
2280 Type *ElementTy; member in llvm::sroa::AllocaSliceRewriter
2325 ElementTy(VecTy ? VecTy->getElementType() : nullptr), in AllocaSliceRewriter()
2326 ElementSize(VecTy ? DL.getTypeSizeInBits(ElementTy).getFixedSize() / 8 in AllocaSliceRewriter()
2331 assert((DL.getTypeSizeInBits(ElementTy).getFixedSize() % 8) == 0 && in AllocaSliceRewriter()
2602 ? ElementTy in rewriteVectorizedStoreInst()
2603 : FixedVectorType::get(ElementTy, NumElements); in rewriteVectorizedStoreInst()
2819 assert(ElementTy == ScalarTy); in visitMemSetInst()
2829 II.getValue(), DL.getTypeSizeInBits(ElementTy).getFixedSize() / 8); in visitMemSetInst()
2830 Splat = convertValue(DL, IRB, Splat, ElementTy); in visitMemSetInst()
3644 Type *ElementTy; in getTypePartition() local
3647 ElementTy = AT->getElementType(); in getTypePartition()
3653 ElementTy = VT->getElementType(); in getTypePartition()
3656 uint64_t ElementSize = DL.getTypeAllocSize(ElementTy).getFixedSize(); in getTypePartition()
3668 return getTypePartition(DL, ElementTy, Offset, Size); in getTypePartition()
3673 return stripAggregateTypeWrapping(DL, ElementTy); in getTypePartition()
3678 return ArrayType::get(ElementTy, NumElements); in getTypePartition()
3695 Type *ElementTy = STy->getElementType(Index); in getTypePartition() local
3696 uint64_t ElementSize = DL.getTypeAllocSize(ElementTy).getFixedSize(); in getTypePartition()
3704 return getTypePartition(DL, ElementTy, Offset, Size); in getTypePartition()
3709 return stripAggregateTypeWrapping(DL, ElementTy); in getTypePartition()