Lines Matching full:fieldoffset
143 uint64_t FieldOffset = Layout.getFieldOffset(FieldNo); in getFieldOffset() local
144 assert(FieldOffset % CharWidth == 0 && in getFieldOffset()
147 return Context.toCharUnitsFromBits(FieldOffset); in getFieldOffset()
307 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in CanPlaceBaseSubobjectAtOffset() local
308 if (!CanPlaceFieldSubobjectAtOffset(*I, FieldOffset)) in CanPlaceBaseSubobjectAtOffset()
354 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in UpdateEmptyBaseSubobjects() local
355 UpdateEmptyFieldSubobjects(*I, FieldOffset); in UpdateEmptyBaseSubobjects()
419 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in CanPlaceFieldSubobjectAtOffset() local
421 if (!CanPlaceFieldSubobjectAtOffset(*I, FieldOffset)) in CanPlaceFieldSubobjectAtOffset()
523 CharUnits FieldOffset = Offset + getFieldOffset(Layout, FieldNo); in UpdateEmptyFieldSubobjects() local
525 UpdateEmptyFieldSubobjects(*I, FieldOffset); in UpdateEmptyFieldSubobjects()
1402 uint64_t FieldOffset; in LayoutWideBitField() local
1409 FieldOffset = 0; in LayoutWideBitField()
1413 FieldOffset = llvm::alignTo(getDataSizeInBits(), Context.toBits(TypeAlign)); in LayoutWideBitField()
1415 uint64_t NewSizeInBits = FieldOffset + FieldSize; in LayoutWideBitField()
1423 FieldOffsets.push_back(FieldOffset); in LayoutWideBitField()
1425 CheckFieldPadding(FieldOffset, UnpaddedFieldOffset, FieldOffset, in LayoutWideBitField()
1525 uint64_t FieldOffset = in LayoutBitField() local
1579 uint64_t UnpaddedFieldOffset = FieldOffset; in LayoutBitField()
1580 uint64_t UnpackedFieldOffset = FieldOffset; in LayoutBitField()
1591 FieldOffset = llvm::alignTo(FieldOffset, FieldAlign); in LayoutBitField()
1604 (FieldOffset & (FieldAlign-1)) + FieldSize > TypeSize)) { in LayoutBitField()
1605 FieldOffset = llvm::alignTo(FieldOffset, FieldAlign); in LayoutBitField()
1612 FieldOffset = llvm::alignTo(FieldOffset, ExplicitFieldAlign); in LayoutBitField()
1632 FieldOffset = updateExternalFieldOffset(D, FieldOffset); in LayoutBitField()
1635 FieldOffsets.push_back(FieldOffset); in LayoutBitField()
1648 CheckFieldPadding(FieldOffset, UnpaddedFieldOffset, UnpackedFieldOffset, in LayoutBitField()
1675 setDataSize(FieldOffset + TypeSize); in LayoutBitField()
1685 uint64_t NewSizeInBits = FieldOffset + FieldSize; in LayoutBitField()
1718 CharUnits FieldOffset = in LayoutField() local
1761 CharUnits UnpackedFieldOffset = FieldOffset; in LayoutField()
1777 FieldOffset = FieldOffset.alignTo(FieldAlign); in LayoutField()
1781 FieldOffset = Context.toCharUnitsFromBits( in LayoutField()
1782 updateExternalFieldOffset(D, Context.toBits(FieldOffset))); in LayoutField()
1786 bool Allowed = EmptySubobjects->CanPlaceFieldAtOffset(D, FieldOffset); in LayoutField()
1793 while (!EmptySubobjects->CanPlaceFieldAtOffset(D, FieldOffset)) { in LayoutField()
1795 FieldOffset += FieldAlign; in LayoutField()
1801 FieldOffsets.push_back(Context.toBits(FieldOffset)); in LayoutField()
1804 CheckFieldPadding(Context.toBits(FieldOffset), UnpaddedFieldOffset, in LayoutField()
1822 setDataSize(FieldOffset + FieldSize); in LayoutField()
2255 void placeFieldAtOffset(CharUnits FieldOffset) { in placeFieldAtOffset()
2256 FieldOffsets.push_back(Context.toBits(FieldOffset)); in placeFieldAtOffset()
2259 void placeFieldAtBitOffset(uint64_t FieldOffset) { in placeFieldAtBitOffset()
2260 FieldOffsets.push_back(FieldOffset); in placeFieldAtBitOffset()
2619 CharUnits FieldOffset; in layoutField() local
2621 FieldOffset = in layoutField()
2623 assert(FieldOffset >= Size && "field offset already allocated"); in layoutField()
2625 FieldOffset = Size.alignTo(Info.Alignment); in layoutField()
2627 placeFieldAtOffset(FieldOffset); in layoutField()
2628 Size = FieldOffset + Info.Size; in layoutField()
2660 CharUnits FieldOffset = Size.alignTo(Info.Alignment); in layoutBitField() local
2661 placeFieldAtOffset(FieldOffset); in layoutBitField()
2662 Size = FieldOffset + Info.Size; in layoutBitField()
2686 CharUnits FieldOffset = Size.alignTo(Info.Alignment); in layoutZeroWidthBitField() local
2687 placeFieldAtOffset(FieldOffset); in layoutZeroWidthBitField()
2688 Size = FieldOffset; in layoutZeroWidthBitField()
2711 for (uint64_t &FieldOffset : FieldOffsets) in injectVBPtr()
2712 FieldOffset += Context.toBits(Offset); in injectVBPtr()
2737 for (uint64_t &FieldOffset : FieldOffsets) in injectVFPtr()
2738 FieldOffset += Context.toBits(Offset); in injectVFPtr()
3225 CharUnits FieldOffset = in DumpRecordLayout() local
3230 DumpRecordLayout(OS, RT->getDecl(), C, FieldOffset, IndentLevel, in DumpRecordLayout()
3238 uint64_t LocalFieldByteOffsetInBits = C.toBits(FieldOffset - Offset); in DumpRecordLayout()
3241 PrintBitFieldOffset(OS, FieldOffset, Begin, Width, IndentLevel); in DumpRecordLayout()
3243 PrintOffset(OS, FieldOffset, IndentLevel); in DumpRecordLayout()