• Home
  • Raw
  • Download

Lines Matching refs:ElementTy

1298   Type *ElementTy = Ty;  in getNaturalGEPWithType()  local
1300 if (ElementTy->isPointerTy()) in getNaturalGEPWithType()
1303 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType()
1304 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType()
1306 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType()
1307 ElementTy = VectorTy->getElementType(); in getNaturalGEPWithType()
1309 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType()
1312 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1318 } while (ElementTy != TargetTy); in getNaturalGEPWithType()
1319 if (ElementTy != TargetTy) in getNaturalGEPWithType()
1361 Type *ElementTy = ArrTy->getElementType(); in getNaturalGEPRecursively() local
1362 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPRecursively()
1369 return getNaturalGEPRecursively(IRB, DL, Ptr, ElementTy, Offset, TargetTy, in getNaturalGEPRecursively()
1383 Type *ElementTy = STy->getElementType(Index); in getNaturalGEPRecursively() local
1384 if (Offset.uge(DL.getTypeAllocSize(ElementTy))) in getNaturalGEPRecursively()
1388 return getNaturalGEPRecursively(IRB, DL, Ptr, ElementTy, Offset, TargetTy, in getNaturalGEPRecursively()
1413 Type *ElementTy = Ty->getElementType(); in getNaturalGEPWithOffset() local
1414 if (!ElementTy->isSized()) in getNaturalGEPWithOffset()
1416 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPWithOffset()
1423 return getNaturalGEPRecursively(IRB, DL, Ptr, ElementTy, Offset, TargetTy, in getNaturalGEPWithOffset()
2010 Type *ElementTy; member in __anone35c39410611::AllocaSliceRewriter
2053 ElementTy(VecTy ? VecTy->getElementType() : nullptr), in AllocaSliceRewriter()
2054 ElementSize(VecTy ? DL.getTypeSizeInBits(ElementTy) / 8 : 0), in AllocaSliceRewriter()
2064 assert((DL.getTypeSizeInBits(ElementTy) % 8) == 0 && in AllocaSliceRewriter()
2266 (NumElements == 1) ? ElementTy in rewriteVectorizedStoreInst()
2267 : VectorType::get(ElementTy, NumElements); in rewriteVectorizedStoreInst()
2438 assert(ElementTy == ScalarTy); in visitMemSetInst()
2447 getIntegerSplat(II.getValue(), DL.getTypeSizeInBits(ElementTy) / 8); in visitMemSetInst()
2448 Splat = convertValue(DL, IRB, Splat, ElementTy); in visitMemSetInst()
3008 Type *ElementTy = SeqTy->getElementType(); in getTypePartition() local
3009 uint64_t ElementSize = DL.getTypeAllocSize(ElementTy); in getTypePartition()
3026 return getTypePartition(DL, ElementTy, Offset, Size); in getTypePartition()
3031 return stripAggregateTypeWrapping(DL, ElementTy); in getTypePartition()
3036 return ArrayType::get(ElementTy, NumElements); in getTypePartition()
3053 Type *ElementTy = STy->getElementType(Index); in getTypePartition() local
3054 uint64_t ElementSize = DL.getTypeAllocSize(ElementTy); in getTypePartition()
3062 return getTypePartition(DL, ElementTy, Offset, Size); in getTypePartition()
3067 return stripAggregateTypeWrapping(DL, ElementTy); in getTypePartition()