Home
last modified time | relevance | path

Searched refs:SizeSoFar (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DTrailingObjects.h177 size_t SizeSoFar, size_t Count1, in additionalSizeToAllocImpl() argument
180 (requiresRealignment() ? llvm::alignTo<alignof(NextTy)>(SizeSoFar) in additionalSizeToAllocImpl()
181 : SizeSoFar) + in additionalSizeToAllocImpl()
198 static constexpr size_t additionalSizeToAllocImpl(size_t SizeSoFar) { in alignas()
199 return SizeSoFar; in alignas()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp481 CharUnits SizeSoFar = CharUnits::Zero(); in buildFrom() local
484 CharUnits NaturalOffset = SizeSoFar.alignTo(Align); in buildFrom()
486 assert(DesiredOffset >= SizeSoFar && "elements out of order"); in buildFrom()
490 if (DesiredOffset != SizeSoFar) in buildFrom()
491 PackedElems.push_back(Utils.getPadding(DesiredOffset - SizeSoFar)); in buildFrom()
493 SizeSoFar = DesiredOffset + Utils.getSize(Elems[I]); in buildFrom()
498 assert(SizeSoFar <= DesiredSize && in buildFrom()
500 if (SizeSoFar < DesiredSize) in buildFrom()
501 PackedElems.push_back(Utils.getPadding(DesiredSize - SizeSoFar)); in buildFrom()
H A DCGDecl.cpp1061 unsigned SizeSoFar = 0; in constStructWithPadding() local
1066 if (SizeSoFar < CurOff) { in constStructWithPadding()
1068 auto *PadTy = llvm::ArrayType::get(Int8Ty, CurOff - SizeSoFar); in constStructWithPadding()
1080 SizeSoFar = CurOff + DL.getTypeAllocSize(CurOp->getType()); in constStructWithPadding()
1083 if (SizeSoFar < TotalSize) { in constStructWithPadding()
1084 auto *PadTy = llvm::ArrayType::get(Int8Ty, TotalSize - SizeSoFar); in constStructWithPadding()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp449 uint64_t SizeSoFar = Layout->getElementOffset(i); in fillConstantStruct() local
450 if (fillGenericConstant(DL, Field, Vals, Offset + SizeSoFar) == false) in fillConstantStruct()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DArchiveWriter.cpp170 unsigned SizeSoFar = OS.tell() - OldPos; in printWithSpacePadding() local
171 assert(SizeSoFar <= Size && "Data doesn't fit in Size"); in printWithSpacePadding()
172 OS.indent(Size - SizeSoFar); in printWithSpacePadding()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3462 uint64_t SizeSoFar = 0; in emitGlobalConstantStruct() local
3467 emitGlobalConstantImpl(DL, Field, AP, BaseCV, Offset + SizeSoFar, in emitGlobalConstantStruct()
3475 SizeSoFar += FieldSize + PadSize; in emitGlobalConstantStruct()
3482 assert(SizeSoFar == Layout->getSizeInBytes() && in emitGlobalConstantStruct()