/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 98 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/ |
D | CGRecordLayoutBuilder.cpp | 398 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()
|
D | CGExprConstant.cpp | 128 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()
|
D | TargetInfo.cpp | 787 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()
|
D | CGBlocks.cpp | 1879 llvm::RoundUpToAlignment(CurrentOffsetInBytes, Align.getQuantity()); in BuildByRefType()
|
D | CGDebugInfo.cpp | 2172 = FieldOffsetInBytes.RoundUpToAlignment(Align); in EmitTypeForVarWithBlocksAttr()
|
/external/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 998 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 …]
|
D | ASTContext.cpp | 869 Width = llvm::RoundUpToAlignment(Width, Align); in getTypeInfoImpl() 882 Width = llvm::RoundUpToAlignment(Width, Align); in getTypeInfoImpl()
|
/external/clang/include/clang/AST/ |
D | CharUnits.h | 169 CharUnits RoundUpToAlignment(const CharUnits &Align) { in RoundUpToAlignment() function 170 return CharUnits(llvm::RoundUpToAlignment(Quantity, in RoundUpToAlignment()
|
/external/llvm/include/llvm/CodeGen/ |
D | JITCodeEmitter.h | 153 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/ |
D | MathExtras.h | 442 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/ |
D | HexagonFrameLowering.cpp | 60 maxCallFrameSize = RoundUpToAlignment(maxCallFrameSize, TargetAlign); in determineFrameLayout() 69 FrameSize = RoundUpToAlignment(FrameSize, TargetAlign); in determineFrameLayout()
|
/external/llvm/lib/Target/Mips/ |
D | MipsFrameLowering.cpp | 152 uint64_t StackSize = RoundUpToAlignment(LocalVarAreaOffset, StackAlign) + in emitPrologue() 153 RoundUpToAlignment(MFI->getStackSize(), StackAlign); in emitPrologue()
|
/external/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 124 RoundUpToAlignment(sizeof(MemoryBufferMem) + BufferName.size() + 1, in getNewUninitMemBuffer()
|
/external/llvm/lib/MC/ |
D | ELFObjectWriter.cpp | 1489 FileOff = RoundUpToAlignment(FileOff, SD.getAlignment()); in WriteObject() 1498 FileOff = RoundUpToAlignment(FileOff, NaturalAlignment); in WriteObject() 1510 FileOff = RoundUpToAlignment(FileOff, SD.getAlignment()); in WriteObject()
|
D | MachObjectWriter.cpp | 535 StartAddress = RoundUpToAlignment(StartAddress, SD->getAlignment()); in computeSectionAddresses()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 90 return RoundUpToAlignment(Offset, 1u << LogAlign); in WorstCaseAlign() 1356 EndInsertOffset = RoundUpToAlignment(EndInsertOffset, in createNewWater()
|
/external/llvm/lib/Analysis/ |
D | BasicAliasAnalysis.cpp | 127 Size = RoundUpToAlignment(Size, Align); in getObjectSize()
|