/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()
|
/external/clang/lib/AST/ |
D | Stmt.cpp | 1017 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 …]
|
D | RecordLayoutBuilder.cpp | 959 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 …]
|
D | TypeLoc.cpp | 81 Total = llvm::RoundUpToAlignment(Total, Align); in getFullDataSizeForType() 85 Total = llvm::RoundUpToAlignment(Total, MaxAlign); in getFullDataSizeForType()
|
D | MicrosoftCXXABI.cpp | 191 Width = llvm::RoundUpToAlignment(Width, Align); in getMemberPointerWidthAndAlign()
|
D | Mangle.cpp | 168 ArgWords += llvm::RoundUpToAlignment(ASTContext.getTypeSize(AT), 32) / 32; in mangleName()
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUFrameLowering.cpp | 84 OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(i)); in getFrameIndexOffset() 88 OffsetBytes = RoundUpToAlignment(OffsetBytes, 4); in getFrameIndexOffset() 92 OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(FI)); in getFrameIndexOffset()
|
D | AMDGPUAsmPrinter.cpp | 208 OutStreamer.EmitIntValue(RoundUpToAlignment(MFI->LDSSize, 4) >> 2, 4); in EmitProgramInfoR600() 345 RoundUpToAlignment(MFI->LDSSize, 1 << LDSAlignShift) >> LDSAlignShift; in EmitProgramInfoSI()
|
/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 185 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/ |
D | CharUnits.h | 168 CharUnits RoundUpToAlignment(const CharUnits &Align) const { in RoundUpToAlignment() function 169 return CharUnits(llvm::RoundUpToAlignment(Quantity, in RoundUpToAlignment()
|
D | OpenMPClause.h | 83 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()
|
D | TypeLoc.h | 242 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()
|
D | StmtOpenMP.h | 73 ClausesOffset(llvm::RoundUpToAlignment(sizeof(T), in OMPExecutableDirective()
|
/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/lib/Target/Sparc/ |
D | SparcSubtarget.cpp | 106 frameSize = RoundUpToAlignment(frameSize, 8); in getAdjustedFrameSize()
|
/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/Support/ |
D | MathExtras.h | 593 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/ |
D | BitVector.h | 263 I = RoundUpToAlignment(I, BITWORD_SIZE); in set() 302 I = RoundUpToAlignment(I, BITWORD_SIZE); in reset()
|
/external/clang/lib/CodeGen/ |
D | CGRecordLayoutBuilder.cpp | 109 (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()
|
D | CGExprConstant.cpp | 107 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()
|
D | TargetInfo.cpp | 996 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 …]
|
D | CGObjCRuntime.cpp | 125 llvm::RoundUpToAlignment(BitOffset + BitFieldSize, AlignmentBits)); in EmitValueForIvarAtOffset()
|
/external/llvm/lib/MC/ |
D | MachObjectWriter.cpp | 424 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/ |
D | MemoryBuffer.cpp | 129 RoundUpToAlignment(sizeof(MemoryBufferMem) + BufferName.size() + 1, 16); in getNewUninitMemBuffer()
|
/external/lldb/source/Plugins/ObjectFile/ELF/ |
D | ObjectFileELF.cpp | 689 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()
|