Lines Matching refs:Ty
146 bool ABIAlign, Type *Ty) const;
153 unsigned getAlignment(Type *Ty, bool abi_or_pref) const;
324 unsigned getPointerTypeSize(Type *Ty) const {
325 return getPointerTypeSizeInBits(Ty) / 8;
348 uint64_t getTypeSizeInBits(Type *Ty) const;
353 uint64_t getTypeStoreSize(Type *Ty) const {
354 return (getTypeSizeInBits(Ty)+7)/8;
360 uint64_t getTypeStoreSizeInBits(Type *Ty) const {
361 return 8*getTypeStoreSize(Ty);
368 uint64_t getTypeAllocSize(Type *Ty) const {
370 return RoundUpAlignment(getTypeStoreSize(Ty), getABITypeAlignment(Ty));
377 uint64_t getTypeAllocSizeInBits(Type *Ty) const {
378 return 8*getTypeAllocSize(Ty);
383 unsigned getABITypeAlignment(Type *Ty) const;
391 unsigned getPrefTypeAlignment(Type *Ty) const;
395 unsigned getPreferredTypeAlignmentShift(Type *Ty) const;
423 uint64_t getIndexedOffset(Type *Ty, ArrayRef<Value *> Indices) const;
428 const StructLayout *getStructLayout(StructType *Ty) const;
522 inline uint64_t DataLayout::getTypeSizeInBits(Type *Ty) const {
523 assert(Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!");
524 switch (Ty->getTypeID()) {
528 return getPointerSizeInBits(Ty->getPointerAddressSpace());
530 ArrayType *ATy = cast<ArrayType>(Ty);
536 return getStructLayout(cast<StructType>(Ty))->getSizeInBits();
538 return Ty->getIntegerBitWidth();
554 VectorType *VTy = cast<VectorType>(Ty);