Lines Matching refs:CharUnits

79     CharUnits Offset;
86 MemberInfo(CharUnits Offset, InfoKind Kind, llvm::Type *Data, in MemberInfo()
89 MemberInfo(CharUnits Offset, InfoKind Kind, llvm::Type *Data, in MemberInfo()
99 MemberInfo StorageInfo(CharUnits Offset, llvm::Type *Data) { in StorageInfo()
127 llvm::Type *getByteArrayType(CharUnits NumBytes) { in getByteArrayType()
130 return NumBytes == CharUnits::One() ? Type : in getByteArrayType()
146 CharUnits bitsToCharUnits(uint64_t BitOffset) { in bitsToCharUnits()
149 CharUnits getSize(llvm::Type *Type) { in getSize()
150 return CharUnits::fromQuantity(DataLayout.getTypeAllocSize(Type)); in getSize()
152 CharUnits getAlignment(llvm::Type *Type) { in getAlignment()
153 return CharUnits::fromQuantity(DataLayout.getABITypeAlignment(Type)); in getAlignment()
161 void appendPaddingBytes(CharUnits Size) { in appendPaddingBytes()
169 void setBitFieldInfo(const FieldDecl *FD, CharUnits StartOffset,
225 const FieldDecl *FD, CharUnits StartOffset, llvm::Type *StorageType) { in setBitFieldInfo()
263 CharUnits Size = NVBaseType ? Layout.getNonVirtualSize() : Layout.getSize(); in lower()
287 CharUnits LayoutSize = Layout.getSize(); in lowerUnion()
303 setBitFieldInfo(Field, CharUnits::Zero(), FieldType); in lowerUnion()
445 Members.push_back(MemberInfo(CharUnits::Zero(), MemberInfo::Base, in accumulateBases()
465 Members.push_back(MemberInfo(CharUnits::Zero(), MemberInfo::VFPtr, in accumulateVPtrs()
474 CharUnits ScissorOffset = Layout.getNonVirtualSize(); in accumulateVBases()
497 CharUnits Offset = Layout.getVBaseClassOffset(BaseDecl); in accumulateVBases()
509 Members.push_back(StorageInfo(Offset - CharUnits::fromQuantity(4), in accumulateVBases()
548 CharUnits Tail = getSize(Prior->Data); in clipTailPadding()
570 CharUnits Alignment = CharUnits::One(); in determinePacked()
571 CharUnits NVAlignment = CharUnits::One(); in determinePacked()
572 CharUnits NVSize = in determinePacked()
573 !NVBaseType && RD ? Layout.getNonVirtualSize() : CharUnits::Zero(); in determinePacked()
602 std::vector<std::pair<CharUnits, CharUnits> > Padding; in insertPadding()
603 CharUnits Size = CharUnits::Zero(); in insertPadding()
609 CharUnits Offset = Member->Offset; in insertPadding()
613 Size.alignTo(Packed ? CharUnits::One() : getAlignment(Member->Data))) in insertPadding()
620 for (std::vector<std::pair<CharUnits, CharUnits> >::const_iterator in insertPadding()
650 CharUnits StorageOffset) { in MakeInfo()
655 CharUnits TypeSizeInBytes = in MakeInfo()
656 CharUnits::fromQuantity(Types.getDataLayout().getTypeAllocSize(Ty)); in MakeInfo()
744 CharUnits NonVirtualSize = Layout.getNonVirtualSize(); in ComputeRecordLayout()