/external/clang/lib/AST/ |
D | StmtOpenMP.cpp | 60 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPParallelDirective), in Create() 75 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPParallelDirective), in CreateEmpty() 87 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPSimdDirective), in Create() 115 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPSimdDirective), in CreateEmpty() 128 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPForDirective), in Create() 164 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPForDirective), in CreateEmpty() 177 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPForSimdDirective), in Create() 212 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPForSimdDirective), in CreateEmpty() 223 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPSectionsDirective), in Create() 238 unsigned Size = llvm::RoundUpToAlignment(sizeof(OMPSectionsDirective), in CreateEmpty() [all …]
|
D | OpenMPClause.cpp | 43 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPPrivateClause), in Create() 55 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPPrivateClause), in CreateEmpty() 78 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPFirstprivateClause), in Create() 91 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPFirstprivateClause), in CreateEmpty() 129 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPLastprivateClause), in Create() 143 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPLastprivateClause), in CreateEmpty() 154 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPSharedClause), in Create() 164 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPSharedClause), in CreateEmpty() 201 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPLinearClause), in Create() 224 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPLinearClause), in CreateEmpty() [all …]
|
D | RecordLayoutBuilder.cpp | 976 setSize(getSize().RoundUpToAlignment(BaseAlign)); in EnsureVTablePointerAlignment() 1197 Offset = getDataSize().RoundUpToAlignment(BaseAlign); in LayoutBase() 1207 if (InferAlignment && Offset < getDataSize().RoundUpToAlignment(BaseAlign)){ in LayoutBase() 1295 llvm::RoundUpToAlignment(getSizeInBits(), in Layout() 1367 return llvm::RoundUpToAlignment(Size, CharAlignment); in roundUpSizeToCharAlignment() 1414 FieldOffset = llvm::RoundUpToAlignment(getDataSizeInBits(), in LayoutWideBitField() 1419 setDataSize(llvm::RoundUpToAlignment(NewSizeInBits, in LayoutWideBitField() 1589 FieldOffset = llvm::RoundUpToAlignment(FieldOffset, FieldAlign); in LayoutBitField() 1590 UnpackedFieldOffset = llvm::RoundUpToAlignment(UnpackedFieldOffset, in LayoutBitField() 1603 FieldOffset = llvm::RoundUpToAlignment(FieldOffset, FieldAlign); in LayoutBitField() [all …]
|
D | TypeLoc.cpp | 83 Total = llvm::RoundUpToAlignment(Total, Align); in getFullDataSizeForType() 87 Total = llvm::RoundUpToAlignment(Total, MaxAlign); in getFullDataSizeForType() 153 == llvm::RoundUpToAlignment(reinterpret_cast<uintptr_t>(Data), in copy() 156 == llvm::RoundUpToAlignment(reinterpret_cast<uintptr_t>(other.Data), in copy()
|
/external/llvm/lib/Target/Mips/ |
D | MipsFrameLowering.cpp | 125 Offset = RoundUpToAlignment(Offset + Size, Size); in estimateStackSize() 136 Offset = RoundUpToAlignment(Offset + MFI->getObjectSize(I), MaxAlign); in estimateStackSize() 140 Offset = RoundUpToAlignment(Offset + MFI->getMaxCallFrameSize(), in estimateStackSize() 143 return RoundUpToAlignment(Offset, getStackAlignment()); in estimateStackSize()
|
/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 182 TEST(MathExtras, RoundUpToAlignment) { in TEST() argument 183 EXPECT_EQ(8u, RoundUpToAlignment(5, 8)); in TEST() 184 EXPECT_EQ(24u, RoundUpToAlignment(17, 8)); in TEST() 185 EXPECT_EQ(0u, RoundUpToAlignment(~0LL, 8)); in TEST() 187 EXPECT_EQ(7u, RoundUpToAlignment(5, 8, 7)); in TEST() 188 EXPECT_EQ(17u, RoundUpToAlignment(17, 8, 1)); in TEST() 189 EXPECT_EQ(3u, RoundUpToAlignment(~0LL, 8, 3)); in TEST() 190 EXPECT_EQ(552u, RoundUpToAlignment(321, 255, 42)); in TEST()
|
D | TrailingObjectsTest.cpp | 121 EXPECT_EQ(sizeof(Class2), llvm::RoundUpToAlignment(sizeof(bool) * 2, in TEST() 166 llvm::RoundUpToAlignment(1, llvm::alignOf<double>())); in TEST()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUFrameLowering.cpp | 90 OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(i)); in getFrameIndexReference() 94 OffsetBytes = RoundUpToAlignment(OffsetBytes, 4); in getFrameIndexReference() 98 OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(FI)); in getFrameIndexReference()
|
D | AMDGPUAsmPrinter.cpp | 314 OutStreamer->EmitIntValue(RoundUpToAlignment(MFI->LDSSize, 4) >> 2, 4); in EmitProgramInfoR600() 482 RoundUpToAlignment(ProgInfo.LDSSize, 1 << LDSAlignShift) >> LDSAlignShift; in getSIProgramInfo() 490 RoundUpToAlignment(ProgInfo.ScratchSize * STM.getWavefrontSize(), in getSIProgramInfo()
|
/external/llvm/tools/dsymutil/ |
D | MachOUtils.cpp | 244 EndAddress = RoundUpToAlignment(EndAddress, 0x1000); in transferSegmentAndSections() 271 RoundUpToAlignment(FileSize, 0x1000), in createDwarfSegment() 282 VMAddr = RoundUpToAlignment(VMAddr, Align); in createDwarfSegment() 283 FileOffset = RoundUpToAlignment(FileOffset, Align); in createDwarfSegment() 398 RoundUpToAlignment(DwarfSegmentSize, Sec->getAlignment()); in generateDsymCompanion() 422 SymtabStart = RoundUpToAlignment(SymtabStart, 0x1000); in generateDsymCompanion() 444 DwarfSegmentStart = RoundUpToAlignment(DwarfSegmentStart, 0x1000); in generateDsymCompanion() 463 uint64_t DwarfVMAddr = RoundUpToAlignment(EndAddress, 0x1000); in generateDsymCompanion() 513 Writer.WriteZeros(RoundUpToAlignment(Pos, Sec.getAlignment()) - Pos); in generateDsymCompanion()
|
/external/llvm/lib/Target/Sparc/ |
D | SparcSubtarget.cpp | 67 frameSize = RoundUpToAlignment(frameSize, 16); in getAdjustedFrameSize() 80 frameSize = RoundUpToAlignment(frameSize, 8); in getAdjustedFrameSize()
|
/external/llvm/include/llvm/Target/ |
D | TargetFrameLowering.h | 78 SPAdj = -RoundUpToAlignment(-SPAdj, StackAlignment); in alignSPAdjust() 80 SPAdj = RoundUpToAlignment(SPAdj, StackAlignment); in alignSPAdjust()
|
/external/clang/include/clang/AST/ |
D | CharUnits.h | 176 CharUnits RoundUpToAlignment(const CharUnits &Align) const { in RoundUpToAlignment() function 177 return CharUnits(llvm::RoundUpToAlignment(Quantity, in RoundUpToAlignment()
|
/external/llvm/tools/yaml2obj/ |
D | yaml2coff.cpp | 176 CurrentSectionDataOffset = RoundUpToAlignment( in layoutCOFF() 181 RoundUpToAlignment(S.Header.SizeOfRawData, CP.getFileAlignment()); in layoutCOFF() 295 uint32_t SizeOfHeaders = RoundUpToAlignment( in initializeOptionalHeader() 298 RoundUpToAlignment(SizeOfHeaders, Header->SectionAlignment); in initializeOptionalHeader() 313 RoundUpToAlignment(S.Header.VirtualSize, Header->SectionAlignment); in initializeOptionalHeader()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | PaddingChecker.cpp | 263 CharUnits NextOffset = NewOffset.RoundUpToAlignment(Fields[0].Align); in calculateOptimalPad() 269 CharUnits NewSize = NewOffset.RoundUpToAlignment(RL.getAlignment()); in calculateOptimalPad()
|
/external/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyAsmBackend.cpp | 76 unsigned NumBytes = RoundUpToAlignment(Info.TargetSize, 8); in applyFixup()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyPEI.cpp | 531 Offset = RoundUpToAlignment(Offset, Align, Skew); in AdjustStackOffset() 615 Offset = RoundUpToAlignment(Offset, Align, Skew); in calculateFrameObjectOffsets() 624 Offset = RoundUpToAlignment(Offset, Align, Skew); in calculateFrameObjectOffsets() 657 Offset = RoundUpToAlignment(Offset, Align, Skew); in calculateFrameObjectOffsets() 776 Offset = RoundUpToAlignment(Offset, StackAlign, Skew); in calculateFrameObjectOffsets()
|
/external/llvm/lib/CodeGen/ |
D | PrologEpilogInserter.cpp | 515 Offset = RoundUpToAlignment(Offset, Align, Skew); in AdjustStackOffset() 599 Offset = RoundUpToAlignment(Offset, Align, Skew); in calculateFrameObjectOffsets() 608 Offset = RoundUpToAlignment(Offset, Align, Skew); in calculateFrameObjectOffsets() 641 Offset = RoundUpToAlignment(Offset, Align, Skew); in calculateFrameObjectOffsets() 760 Offset = RoundUpToAlignment(Offset, StackAlign, Skew); in calculateFrameObjectOffsets()
|
/external/llvm/include/llvm/CodeGen/ |
D | CallingConvLower.h | 284 return RoundUpToAlignment(StackOffset, MaxStackArgAlign); in getAlignedCallFrameSize() 415 StackOffset = RoundUpToAlignment(StackOffset, Align); in AllocateStack()
|
/external/clang/lib/CodeGen/ |
D | CGExprConstant.cpp | 114 NextFieldOffsetInChars.RoundUpToAlignment(FieldAlignment); in AppendBytes() 124 NextFieldOffsetInChars.RoundUpToAlignment(FieldAlignment); in AppendBytes() 165 llvm::RoundUpToAlignment(FieldOffset - NextFieldOffsetInBits, in AppendBitField() 337 ElementOffsetInChars.RoundUpToAlignment(ElementAlign); in ConvertStructToPacked() 511 NextFieldOffsetInChars.RoundUpToAlignment(LLVMStructAlignment); in Finalize() 517 NextFieldOffsetInChars.RoundUpToAlignment(LLVMStructAlignment); in Finalize() 530 NextFieldOffsetInChars.RoundUpToAlignment(LLVMStructAlignment); in Finalize() 549 assert(NextFieldOffsetInChars.RoundUpToAlignment(getAlignment(Result)) == in Finalize()
|
D | CGRecordLayoutBuilder.cpp | 124 (unsigned)llvm::RoundUpToAlignment(NumBits, 8)); in getIntNType() 558 Prior->Data = getByteArrayType(bitsToCharUnits(llvm::RoundUpToAlignment( in clipTailPadding() 612 if (Offset != Size.RoundUpToAlignment(Packed ? CharUnits::One() : in insertPadding()
|
/external/llvm/lib/Transforms/Utils/ |
D | ASanStackFrameLayout.cpp | 47 return RoundUpToAlignment(Res, Alignment); in VarAndRedzoneSize()
|
/external/llvm/lib/IR/ |
D | Mangler.cpp | 102 ArgWords += RoundUpToAlignment(DL.getTypeAllocSize(Ty), PtrSize); in addByteCountSuffix()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | SafeStack.cpp | 537 StaticOffset = RoundUpToAlignment(StaticOffset, Align); in moveStaticAllocasToUnsafeStack() 568 StaticOffset = RoundUpToAlignment(StaticOffset, Align); in moveStaticAllocasToUnsafeStack() 585 StaticOffset = RoundUpToAlignment(StaticOffset, StackAlignment); in moveStaticAllocasToUnsafeStack()
|
/external/llvm/include/llvm/ADT/ |
D | BitVector.h | 247 I = RoundUpToAlignment(I, BITWORD_SIZE); in set() 286 I = RoundUpToAlignment(I, BITWORD_SIZE); in reset()
|