Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:CharUnits

41   CharUnits NextFieldOffsetInChars;
42 CharUnits LLVMStructAlignment;
53 NextFieldOffsetInChars(CharUnits::Zero()),
54 LLVMStructAlignment(CharUnits::One()) { }
62 void AppendBytes(CharUnits FieldOffsetInChars, llvm::Constant *InitCst);
67 void AppendPadding(CharUnits PadSize);
69 void AppendTailPadding(CharUnits RecordSize);
76 CharUnits BaseOffset);
79 CharUnits getAlignment(const llvm::Constant *C) const {
80 if (Packed) return CharUnits::One();
81 return CharUnits::fromQuantity(
85 CharUnits getSizeInChars(const llvm::Constant *C) const {
86 return CharUnits::fromQuantity(
113 CharUnits FieldOffsetInChars = Context.toCharUnitsFromBits(FieldOffset);
119 AppendBytes(CharUnits FieldOffsetInChars, llvm::Constant *InitCst) {
124 CharUnits FieldAlignment = getAlignment(InitCst);
127 CharUnits AlignedNextFieldOffsetInChars =
155 assert(LLVMStructAlignment == CharUnits::One() &&
169 CharUnits PadSize = Context.toCharUnitsFromBits(
251 NextFieldOffsetInChars -= CharUnits::fromQuantity(AT->getNumElements());
255 AppendPadding(CharUnits::fromQuantity(AT->getNumElements()-1));
256 AppendPadding(CharUnits::One());
309 void ConstStructBuilder::AppendPadding(CharUnits PadSize) {
314 if (PadSize > CharUnits::One())
319 assert(getAlignment(C) == CharUnits::One() &&
325 void ConstStructBuilder::AppendTailPadding(CharUnits RecordSize) {
334 CharUnits ElementOffsetInChars = CharUnits::Zero();
339 CharUnits ElementAlign = CharUnits::fromQuantity(
341 CharUnits AlignedElementOffsetInChars =
346 CharUnits NumChars =
350 if (NumChars > CharUnits::One())
366 LLVMStructAlignment = CharUnits::One();
414 BaseInfo(const CXXRecordDecl *Decl, CharUnits Offset, unsigned Index)
419 CharUnits Offset;
429 CharUnits Offset) {
446 CharUnits BaseOffset = Layout.getBaseClassOffset(BD);
495 CharUnits LayoutSizeInChars = Layout.getSize();
508 CharUnits LLVMSizeInChars =
567 Builder.Build(Val, RD, false, VTable, CD, CharUnits::Zero());
1261 CharUnits chars = getContext().toCharUnitsFromBits((int64_t) fieldOffset);
1330 CharUnits StartIndex = CGM.getContext().toCharUnitsFromBits(StartOffset);
1331 CharUnits EndIndex = StartIndex + CGM.getContext().getTypeSizeInChars(T);
1338 for (CharUnits I = StartIndex; I != EndIndex; ++I)