/external/llvm/lib/Target/Mips/ |
D | MipsFrameLowering.cpp | 115 Offset = RoundUpToAlignment(Offset + Size, Size); in estimateStackSize() 126 Offset = RoundUpToAlignment(Offset + MFI->getObjectSize(I), MaxAlign); in estimateStackSize() 130 Offset = RoundUpToAlignment(Offset + MFI->getMaxCallFrameSize(), in estimateStackSize() 133 return RoundUpToAlignment(Offset, getStackAlignment()); in estimateStackSize()
|
D | MipsISelLowering.cpp | 2627 NextStackOffset = RoundUpToAlignment(NextStackOffset, StackAlignment); in LowerCall() 3497 unsigned ByValSize = RoundUpToAlignment(ArgFlags.getByValSize(), RegSize); in handleByValArg() 3736 VaArgOffset = RoundUpToAlignment(CCInfo.getNextStackOffset(), RegSize); in writeVarArgRegs()
|
/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 | 333 llvm::RoundUpToAlignment(TotalBits, CharAlign)); in LayoutBitfields() 421 NextFieldOffset.RoundUpToAlignment(typeAlignment); in LayoutField() 427 NextFieldOffset.RoundUpToAlignment(typeAlignment); in LayoutField() 457 unsigned StorageBits = llvm::RoundUpToAlignment( in LayoutUnionField() 722 NonVirtualSize.RoundUpToAlignment(NonVirtualAlign); in ComputeNonVirtualBaseType() 731 NextFieldOffset.RoundUpToAlignment(getAlignmentAsLLVMStruct()); in ComputeNonVirtualBaseType() 842 NextFieldOffset.RoundUpToAlignment(getAlignmentAsLLVMStruct()); in AppendTailPadding() 876 NextFieldOffset.RoundUpToAlignment(fieldAlignment); in AppendPadding() 1014 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 | CGObjCRuntime.cpp | 124 llvm::RoundUpToAlignment(BitOffset + BitFieldSize, AlignmentBits)); in EmitValueForIvarAtOffset()
|
D | TargetInfo.cpp | 1003 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, Align); in EmitVAArg() 2582 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, 8); in EmitVAArg() 2846 unsigned Offset = llvm::RoundUpToAlignment(SizeInBytes, 8); in EmitVAArg() 3538 llvm::RoundUpToAlignment(Size, 4); in EmitVAArg() 3992 StackSize = llvm::RoundUpToAlignment(StackSize, 8); in EmitVAArg() 4433 Offset = llvm::RoundUpToAlignment(Offset, Align); in classifyArgumentType() 4434 Offset += llvm::RoundUpToAlignment(TySize, Align * 8) / 8; in classifyArgumentType() 4578 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, TypeAlign); in EmitVAArg() 4808 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArg()
|
D | CGBlocks.cpp | 531 CharUnits newBlockSize = blockSize.RoundUpToAlignment(maxFieldAlign); in computeBlockInfo() 2081 llvm::RoundUpToAlignment(CurrentOffsetInBytes, Align.getQuantity()); in BuildByRefType()
|
D | CGDebugInfo.cpp | 2418 = FieldOffsetInBytes.RoundUpToAlignment(Align); in EmitTypeForVarWithBlocksAttr()
|
/external/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 1004 setSize(getSize().RoundUpToAlignment(BaseAlign)); in EnsureVTablePointerAlignment() 1553 Offset = getDataSize().RoundUpToAlignment(BaseAlign); in LayoutBase() 1563 if (InferAlignment && Offset < getDataSize().RoundUpToAlignment(BaseAlign)){ in LayoutBase() 1654 llvm::RoundUpToAlignment(getSizeInBits(), in Layout() 1659 if (NonVirtualSize != NonVirtualSize.RoundUpToAlignment(Alignment)) { in Layout() 1661 NonVirtualSize.RoundUpToAlignment(Alignment) - NonVirtualSize; in Layout() 1667 llvm::RoundUpToAlignment(getSizeInBits(), in Layout() 1788 setDataSize(llvm::RoundUpToAlignment(NewSizeInBits, in LayoutFields() 1806 llvm::RoundUpToAlignment(UnpaddedFieldOffset, FieldAlign); in LayoutFields() 1807 setDataSize(llvm::RoundUpToAlignment(NewSizeInBits, in LayoutFields() [all …]
|
D | ExprCXX.cpp | 912 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<VarDecl*>()); in Create()
|
D | ASTContext.cpp | 1346 Width = llvm::RoundUpToAlignment(Width, Align); in getTypeInfoImpl() 1359 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()
|
D | ExprCXX.h | 1303 llvm::RoundUpToAlignment(sizeof(unsigned) * (NumCaptures + 1), in getArrayIndexVars()
|
/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 | 457 inline uint64_t RoundUpToAlignment(uint64_t Value, uint64_t Align) { in RoundUpToAlignment() function 465 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/include/llvm/ADT/ |
D | BitVector.h | 257 I = RoundUpToAlignment(I, BITWORD_SIZE); in set() 295 I = RoundUpToAlignment(I, BITWORD_SIZE); in reset()
|
/external/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 135 RoundUpToAlignment(sizeof(MemoryBufferMem) + BufferName.size() + 1, in getNewUninitMemBuffer()
|
/external/llvm/lib/MC/ |
D | MachObjectWriter.cpp | 385 return RoundUpToAlignment(Size, is64Bit ? 8 : 4); in ComputeLinkerOptionsLoadCommandSize() 592 StartAddress = RoundUpToAlignment(StartAddress, SD->getAlignment()); in computeSectionAddresses()
|
D | ELFObjectWriter.cpp | 1528 FileOff = RoundUpToAlignment(FileOff, SD.getAlignment()); in WriteObject() 1537 FileOff = RoundUpToAlignment(FileOff, NaturalAlignment); in WriteObject() 1549 FileOff = RoundUpToAlignment(FileOff, SD.getAlignment()); in WriteObject()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FrameLowering.cpp | 611 Amount = RoundUpToAlignment(Amount, Align); in eliminateCallFramePseudoInstr()
|
D | AArch64ISelLowering.cpp | 988 StackArgSize = RoundUpToAlignment(StackArgSize, 16); in LowerFormalArguments() 1118 unsigned NumBytes = RoundUpToAlignment(CCInfo.getNextStackOffset(), 16); in LowerCall()
|
/external/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 396 return APInt(IntTyBits, RoundUpToAlignment(Size.getZExtValue(), Align)); in align()
|