Home
last modified time | relevance | path

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

/external/llvm/lib/Target/Mips/
DMipsFrameLowering.cpp115 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()
DMipsISelLowering.cpp2627 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/
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.cpp333 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()
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()
DCGObjCRuntime.cpp124 llvm::RoundUpToAlignment(BitOffset + BitFieldSize, AlignmentBits)); in EmitValueForIvarAtOffset()
DTargetInfo.cpp1003 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()
DCGBlocks.cpp531 CharUnits newBlockSize = blockSize.RoundUpToAlignment(maxFieldAlign); in computeBlockInfo()
2081 llvm::RoundUpToAlignment(CurrentOffsetInBytes, Align.getQuantity()); in BuildByRefType()
DCGDebugInfo.cpp2418 = FieldOffsetInBytes.RoundUpToAlignment(Align); in EmitTypeForVarWithBlocksAttr()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp1004 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 …]
DExprCXX.cpp912 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<VarDecl*>()); in Create()
DASTContext.cpp1346 Width = llvm::RoundUpToAlignment(Width, Align); in getTypeInfoImpl()
1359 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()
DExprCXX.h1303 llvm::RoundUpToAlignment(sizeof(unsigned) * (NumCaptures + 1), in getArrayIndexVars()
/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.h457 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/
DHexagonFrameLowering.cpp60 maxCallFrameSize = RoundUpToAlignment(maxCallFrameSize, TargetAlign); in determineFrameLayout()
69 FrameSize = RoundUpToAlignment(FrameSize, TargetAlign); in determineFrameLayout()
/external/llvm/include/llvm/ADT/
DBitVector.h257 I = RoundUpToAlignment(I, BITWORD_SIZE); in set()
295 I = RoundUpToAlignment(I, BITWORD_SIZE); in reset()
/external/llvm/lib/Support/
DMemoryBuffer.cpp135 RoundUpToAlignment(sizeof(MemoryBufferMem) + BufferName.size() + 1, in getNewUninitMemBuffer()
/external/llvm/lib/MC/
DMachObjectWriter.cpp385 return RoundUpToAlignment(Size, is64Bit ? 8 : 4); in ComputeLinkerOptionsLoadCommandSize()
592 StartAddress = RoundUpToAlignment(StartAddress, SD->getAlignment()); in computeSectionAddresses()
DELFObjectWriter.cpp1528 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/
DAArch64FrameLowering.cpp611 Amount = RoundUpToAlignment(Amount, Align); in eliminateCallFramePseudoInstr()
DAArch64ISelLowering.cpp988 StackArgSize = RoundUpToAlignment(StackArgSize, 16); in LowerFormalArguments()
1118 unsigned NumBytes = RoundUpToAlignment(CCInfo.getNextStackOffset(), 16); in LowerCall()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp396 return APInt(IntTyBits, RoundUpToAlignment(Size.getZExtValue(), Align)); in align()