Home
last modified time | relevance | path

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

12

/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()
/external/clang/lib/AST/
DStmt.cpp1017 llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>()); in getStoredCaptures()
1074 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>()); in Create()
1087 Size = llvm::RoundUpToAlignment(Size, llvm::alignOf<Capture>()); in CreateDeserialized()
1130 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPPrivateClause), in Create()
1141 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPPrivateClause), in CreateEmpty()
1152 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPFirstprivateClause), in Create()
1165 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPFirstprivateClause), in CreateEmpty()
1176 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPLastprivateClause), in Create()
1187 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPLastprivateClause), in CreateEmpty()
1198 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPSharedClause), in Create()
[all …]
DRecordLayoutBuilder.cpp959 setSize(getSize().RoundUpToAlignment(BaseAlign)); in EnsureVTablePointerAlignment()
1189 Offset = getDataSize().RoundUpToAlignment(BaseAlign); in LayoutBase()
1199 if (InferAlignment && Offset < getDataSize().RoundUpToAlignment(BaseAlign)){ in LayoutBase()
1290 llvm::RoundUpToAlignment(getSizeInBits(), in Layout()
1394 FieldOffset = llvm::RoundUpToAlignment(getDataSizeInBits(), in LayoutWideBitField()
1399 setDataSize(llvm::RoundUpToAlignment(NewSizeInBits, in LayoutWideBitField()
1563 FieldOffset = llvm::RoundUpToAlignment(FieldOffset, FieldAlign); in LayoutBitField()
1564 UnpackedFieldOffset = llvm::RoundUpToAlignment(UnpackedFieldOffset, in LayoutBitField()
1577 FieldOffset = llvm::RoundUpToAlignment(FieldOffset, FieldAlign); in LayoutBitField()
1584 UnpackedFieldOffset = llvm::RoundUpToAlignment(UnpackedFieldOffset, in LayoutBitField()
[all …]
DTypeLoc.cpp81 Total = llvm::RoundUpToAlignment(Total, Align); in getFullDataSizeForType()
85 Total = llvm::RoundUpToAlignment(Total, MaxAlign); in getFullDataSizeForType()
DMicrosoftCXXABI.cpp191 Width = llvm::RoundUpToAlignment(Width, Align); in getMemberPointerWidthAndAlign()
DMangle.cpp168 ArgWords += llvm::RoundUpToAlignment(ASTContext.getTypeSize(AT), 32) / 32; in mangleName()
/external/llvm/lib/Target/R600/
DAMDGPUFrameLowering.cpp84 OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(i)); in getFrameIndexOffset()
88 OffsetBytes = RoundUpToAlignment(OffsetBytes, 4); in getFrameIndexOffset()
92 OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(FI)); in getFrameIndexOffset()
DAMDGPUAsmPrinter.cpp208 OutStreamer.EmitIntValue(RoundUpToAlignment(MFI->LDSSize, 4) >> 2, 4); in EmitProgramInfoR600()
345 RoundUpToAlignment(MFI->LDSSize, 1 << LDSAlignShift) >> LDSAlignShift; in EmitProgramInfoSI()
/external/llvm/unittests/Support/
DMathExtrasTest.cpp185 TEST(MathExtras, RoundUpToAlignment) { in TEST() argument
186 EXPECT_EQ(8u, RoundUpToAlignment(5, 8)); in TEST()
187 EXPECT_EQ(24u, RoundUpToAlignment(17, 8)); in TEST()
188 EXPECT_EQ(0u, RoundUpToAlignment(~0LL, 8)); in TEST()
/external/clang/include/clang/AST/
DCharUnits.h168 CharUnits RoundUpToAlignment(const CharUnits &Align) const { in RoundUpToAlignment() function
169 return CharUnits(llvm::RoundUpToAlignment(Quantity, in RoundUpToAlignment()
DOpenMPClause.h83 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>())), in getVarRefs()
95 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>()))); in setVarRefs()
141 llvm::RoundUpToAlignment(sizeof(T), llvm::alignOf<Expr *>())), in getVarRefs()
DTypeLoc.h242 dataInt = llvm::RoundUpToAlignment(dataInt, align); in getUnqualifiedLoc()
337 size = llvm::RoundUpToAlignment(size, extraAlign); in getLocalDataSize()
369 size = llvm::RoundUpToAlignment(size, extraAlign); in getExtraLocalData()
376 data = llvm::RoundUpToAlignment(data, getNextTypeAlign()); in getNonLocalData()
DStmtOpenMP.h73 ClausesOffset(llvm::RoundUpToAlignment(sizeof(T), in OMPExecutableDirective()
/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/lib/Target/Sparc/
DSparcSubtarget.cpp106 frameSize = RoundUpToAlignment(frameSize, 8); in getAdjustedFrameSize()
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.cpp60 maxCallFrameSize = RoundUpToAlignment(maxCallFrameSize, TargetAlign); in determineFrameLayout()
69 FrameSize = RoundUpToAlignment(FrameSize, TargetAlign); in determineFrameLayout()
/external/llvm/include/llvm/Support/
DMathExtras.h593 inline uint64_t RoundUpToAlignment(uint64_t Value, uint64_t Align) { in RoundUpToAlignment() function
601 return RoundUpToAlignment(Value, Align) - Value; in OffsetToAlignment()
/external/llvm/include/llvm/ADT/
DBitVector.h263 I = RoundUpToAlignment(I, BITWORD_SIZE); in set()
302 I = RoundUpToAlignment(I, BITWORD_SIZE); in reset()
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp109 (unsigned)llvm::RoundUpToAlignment(NumBits, 8)); in getIntNType()
527 Prior->Data = getByteArrayType(bitsToCharUnits(llvm::RoundUpToAlignment( in clipTailPadding()
569 if (Offset != Size.RoundUpToAlignment(Packed ? CharUnits::One() : in insertPadding()
DCGExprConstant.cpp107 NextFieldOffsetInChars.RoundUpToAlignment(FieldAlignment); in AppendBytes()
149 llvm::RoundUpToAlignment(FieldOffset - NextFieldOffsetInBits, in AppendBitField()
321 ElementOffsetInChars.RoundUpToAlignment(ElementAlign); in ConvertStructToPacked()
492 NextFieldOffsetInChars.RoundUpToAlignment(LLVMStructAlignment); in Finalize()
521 assert(NextFieldOffsetInChars.RoundUpToAlignment(getAlignment(Result)) == in Finalize()
DTargetInfo.cpp996 StackOffset = llvm::RoundUpToAlignment(StackOffset, 4U); in addFieldToArgStruct()
1084 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, Align); in EmitVAArg()
2791 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, 8); in EmitVAArg()
3126 unsigned Offset = llvm::RoundUpToAlignment(SizeInBytes, 8); in EmitVAArg()
3299 NumStackSlots = llvm::RoundUpToAlignment(NumStackSlots, 64) / 64; in computeInfo()
3412 AllocatedGPR = llvm::RoundUpToAlignment(AllocatedGPR, Alignment / 64); in classifyArgumentType()
3461 AllocatedGPR = llvm::RoundUpToAlignment(AllocatedGPR, Alignment / 64); in classifyArgumentType()
3718 StackSize = llvm::RoundUpToAlignment(StackSize, 8); in EmitAArch64VAArg()
3815 uint64_t Offset = llvm::RoundUpToAlignment(Size, MinABIAlign); in EmitDarwinVAArg()
4580 llvm::RoundUpToAlignment(Size, 4); in EmitVAArg()
[all …]
DCGObjCRuntime.cpp125 llvm::RoundUpToAlignment(BitOffset + BitFieldSize, AlignmentBits)); in EmitValueForIvarAtOffset()
/external/llvm/lib/MC/
DMachObjectWriter.cpp424 return RoundUpToAlignment(Size, is64Bit ? 8 : 4); in ComputeLinkerOptionsLoadCommandSize()
646 StartAddress = RoundUpToAlignment(StartAddress, SD->getAlignment()); in computeSectionAddresses()
798 uint64_t LOHSize = RoundUpToAlignment(LOHRawSize, is64Bit() ? 8 : 4); in WriteObject()
/external/llvm/lib/Support/
DMemoryBuffer.cpp129 RoundUpToAlignment(sizeof(MemoryBufferMem) + BufferName.size() + 1, 16); in getNewUninitMemBuffer()
/external/lldb/source/Plugins/ObjectFile/ELF/
DObjectFileELF.cpp689 notehdr.name_len = llvm::RoundUpToAlignment (notehdr.name_len, 4); in ParseNoteGNUBuildID()
690 notehdr.desc_len = llvm::RoundUpToAlignment (notehdr.desc_len, 4); in ParseNoteGNUBuildID()
781 gnu_debuglink_offset = llvm::RoundUpToAlignment (gnu_debuglink_offset, 4); in GetSectionHeaderInfo()

12