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