Home
last modified time | relevance | path

Searched refs:RoundUpToAlignment (Results 1 – 18 of 18) sorted by relevance

/external/llvm/unittests/Support/
DMathExtrasTest.cpp98 TEST(MathExtras, RoundUpToAlignment) { in TEST() argument
99 EXPECT_EQ(8u, RoundUpToAlignment(5, 8)); in TEST()
100 EXPECT_EQ(24u, RoundUpToAlignment(17, 8)); in TEST()
101 EXPECT_EQ(0u, RoundUpToAlignment(~0LL, 8)); in TEST()
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp398 llvm::RoundUpToAlignment(fieldSize - BitsAvailableInLastField, in LayoutBitField()
409 llvm::RoundUpToAlignment(fieldSize, charAlign)); in LayoutBitField()
470 NextFieldOffset.RoundUpToAlignment(typeAlignment); in LayoutField()
476 NextFieldOffset.RoundUpToAlignment(typeAlignment); in LayoutField()
507 llvm::RoundUpToAlignment(FieldSize, in LayoutUnionField()
765 NonVirtualSize.RoundUpToAlignment(NonVirtualAlign); in ComputeNonVirtualBaseType()
774 NextFieldOffset.RoundUpToAlignment(getAlignmentAsLLVMStruct()); in ComputeNonVirtualBaseType()
867 NextFieldOffset.RoundUpToAlignment(getAlignmentAsLLVMStruct()); in AppendTailPadding()
902 NextFieldOffset.RoundUpToAlignment(fieldAlignment); in AppendPadding()
1040 NonVirtualSize.RoundUpToAlignment(NonVirtualAlign); in ComputeRecordLayout()
DCGExprConstant.cpp128 NextFieldOffsetInChars.RoundUpToAlignment(FieldAlignment); in AppendBytes()
170 llvm::RoundUpToAlignment(FieldOffset - NextFieldOffsetInBits, in AppendBitField()
342 ElementOffsetInChars.RoundUpToAlignment(ElementAlign); in ConvertStructToPacked()
542 NextFieldOffsetInChars.RoundUpToAlignment(LLVMStructAlignment); in Finalize()
571 assert(NextFieldOffsetInChars.RoundUpToAlignment(getAlignment(Result)) == in Finalize()
DTargetInfo.cpp787 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, Align); in EmitVAArg()
2346 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, 8); in EmitVAArg()
2826 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArg()
3214 llvm::RoundUpToAlignment(getContext().getTypeSize(Ty), 64) / 8; in classifyArgumentType()
3216 Offset = llvm::RoundUpToAlignment(Offset, std::max(Align, (uint64_t)8)); in classifyArgumentType()
3365 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, TypeAlign); in EmitVAArg()
3595 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArg()
DCGBlocks.cpp1879 llvm::RoundUpToAlignment(CurrentOffsetInBytes, Align.getQuantity()); in BuildByRefType()
DCGDebugInfo.cpp2172 = FieldOffsetInBytes.RoundUpToAlignment(Align); in EmitTypeForVarWithBlocksAttr()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp998 setSize(getSize().RoundUpToAlignment(BaseAlign)); in EnsureVTablePointerAlignment()
1365 Offset = getDataSize().RoundUpToAlignment(BaseAlign); in LayoutBase()
1460 llvm::RoundUpToAlignment(getSizeInBits(), in Layout()
1465 NonVirtualSize != NonVirtualSize.RoundUpToAlignment(Alignment)) { in Layout()
1467 NonVirtualSize.RoundUpToAlignment(Alignment) - NonVirtualSize; in Layout()
1473 llvm::RoundUpToAlignment(getSizeInBits(), in Layout()
1594 setDataSize(llvm::RoundUpToAlignment(NewSizeInBits, in LayoutFields()
1612 llvm::RoundUpToAlignment(UnpaddedFieldOffset, FieldAlign); in LayoutFields()
1613 setDataSize(llvm::RoundUpToAlignment(NewSizeInBits, in LayoutFields()
1651 setDataSize(llvm::RoundUpToAlignment(NewSizeInBits, in LayoutFields()
[all …]
DASTContext.cpp869 Width = llvm::RoundUpToAlignment(Width, Align); in getTypeInfoImpl()
882 Width = llvm::RoundUpToAlignment(Width, Align); in getTypeInfoImpl()
/external/clang/include/clang/AST/
DCharUnits.h169 CharUnits RoundUpToAlignment(const CharUnits &Align) { in RoundUpToAlignment() function
170 return CharUnits(llvm::RoundUpToAlignment(Quantity, in RoundUpToAlignment()
/external/llvm/include/llvm/CodeGen/
DJITCodeEmitter.h153 uint8_t *NewPtr = (uint8_t*)RoundUpToAlignment((uintptr_t)CurBufferPtr, in emitAlignment()
162 uint8_t *NewPtr = (uint8_t*)RoundUpToAlignment((uintptr_t)CurBufferPtr, in emitAlignmentWithFill()
/external/llvm/include/llvm/Support/
DMathExtras.h442 inline uint64_t RoundUpToAlignment(uint64_t Value, uint64_t Align) { in RoundUpToAlignment() function
450 return RoundUpToAlignment(Value, Align) - Value; in OffsetToAlignment()
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.cpp60 maxCallFrameSize = RoundUpToAlignment(maxCallFrameSize, TargetAlign); in determineFrameLayout()
69 FrameSize = RoundUpToAlignment(FrameSize, TargetAlign); in determineFrameLayout()
/external/llvm/lib/Target/Mips/
DMipsFrameLowering.cpp152 uint64_t StackSize = RoundUpToAlignment(LocalVarAreaOffset, StackAlign) + in emitPrologue()
153 RoundUpToAlignment(MFI->getStackSize(), StackAlign); in emitPrologue()
/external/llvm/lib/Support/
DMemoryBuffer.cpp124 RoundUpToAlignment(sizeof(MemoryBufferMem) + BufferName.size() + 1, in getNewUninitMemBuffer()
/external/llvm/lib/MC/
DELFObjectWriter.cpp1489 FileOff = RoundUpToAlignment(FileOff, SD.getAlignment()); in WriteObject()
1498 FileOff = RoundUpToAlignment(FileOff, NaturalAlignment); in WriteObject()
1510 FileOff = RoundUpToAlignment(FileOff, SD.getAlignment()); in WriteObject()
DMachObjectWriter.cpp535 StartAddress = RoundUpToAlignment(StartAddress, SD->getAlignment()); in computeSectionAddresses()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp90 return RoundUpToAlignment(Offset, 1u << LogAlign); in WorstCaseAlign()
1356 EndInsertOffset = RoundUpToAlignment(EndInsertOffset, in createNewWater()
/external/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp127 Size = RoundUpToAlignment(Size, Align); in getObjectSize()