Home
last modified time | relevance | path

Searched refs:alignTo (Results 1 – 25 of 197) sorted by relevance

12345678

/external/clang/lib/AST/
DStmtOpenMP.cpp61 llvm::alignTo(sizeof(OMPParallelDirective), llvm::alignOf<OMPClause *>()); in Create()
76 llvm::alignTo(sizeof(OMPParallelDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
88 llvm::alignTo(sizeof(OMPSimdDirective), llvm::alignOf<OMPClause *>()); in Create()
117 llvm::alignTo(sizeof(OMPSimdDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
130 llvm::alignTo(sizeof(OMPForDirective), llvm::alignOf<OMPClause *>()); in Create()
170 llvm::alignTo(sizeof(OMPForDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
183 llvm::alignTo(sizeof(OMPForSimdDirective), llvm::alignOf<OMPClause *>()); in Create()
222 llvm::alignTo(sizeof(OMPForSimdDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
233 llvm::alignTo(sizeof(OMPSectionsDirective), llvm::alignOf<OMPClause *>()); in Create()
248 llvm::alignTo(sizeof(OMPSectionsDirective), llvm::alignOf<OMPClause *>()); in CreateEmpty()
[all …]
DRecordLayoutBuilder.cpp976 setSize(getSize().alignTo(BaseAlign)); in EnsureVTablePointerAlignment()
1197 Offset = getDataSize().alignTo(BaseAlign); in LayoutBase()
1207 if (InferAlignment && Offset < getDataSize().alignTo(BaseAlign)) { in LayoutBase()
1295 llvm::alignTo(getSizeInBits(), Context.getTargetInfo().getCharAlign())); in Layout()
1366 return llvm::alignTo(Size, CharAlignment); in roundUpSizeToCharAlignment()
1413 FieldOffset = llvm::alignTo(getDataSizeInBits(), Context.toBits(TypeAlign)); in LayoutWideBitField()
1418 llvm::alignTo(NewSizeInBits, Context.getTargetInfo().getCharAlign())); in LayoutWideBitField()
1591 FieldOffset = llvm::alignTo(FieldOffset, FieldAlign); in LayoutBitField()
1593 llvm::alignTo(UnpackedFieldOffset, UnpackedFieldAlign); in LayoutBitField()
1605 FieldOffset = llvm::alignTo(FieldOffset, FieldAlign); in LayoutBitField()
[all …]
DTypeLoc.cpp83 Total = llvm::alignTo(Total, Align); in getFullDataSizeForType()
87 Total = llvm::alignTo(Total, MaxAlign); in getFullDataSizeForType()
153 llvm::alignTo(reinterpret_cast<uintptr_t>(Data), in copy()
156 llvm::alignTo(reinterpret_cast<uintptr_t>(other.Data), in copy()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DTrailingObjectsTest.cpp118 llvm::alignTo(Class1::totalSizeToAlloc<short>(1), alignof(Class1))); in TEST()
124 llvm::alignTo(Class1::totalSizeToAlloc<short>(3), alignof(Class1))); in TEST()
138 EXPECT_EQ(sizeof(Class2), llvm::alignTo(sizeof(bool) * 2, alignof(double))); in TEST()
154 llvm::alignTo(Class2::totalSizeToAlloc<double, short>(1, 1), in TEST()
189 EXPECT_EQ(sizeof(Class3), llvm::alignTo(1, alignof(double))); in TEST()
198 llvm::alignTo(Class3::totalSizeToAlloc<double, short, bool>(1, 1, 3), in TEST()
220 llvm::alignTo(sizeof(long) + 1, alignof(long))); in TEST()
221 EXPECT_EQ(sizeof(Class4), llvm::alignTo(1, alignof(long))); in TEST()
228 llvm::alignTo(Class4::totalSizeToAlloc<char, long>(1, 1), in TEST()
DMathExtrasTest.cpp255 TEST(MathExtras, alignTo) { in TEST() argument
256 EXPECT_EQ(8u, alignTo(5, 8)); in TEST()
257 EXPECT_EQ(24u, alignTo(17, 8)); in TEST()
258 EXPECT_EQ(0u, alignTo(~0LL, 8)); in TEST()
260 EXPECT_EQ(7u, alignTo(5, 8, 7)); in TEST()
261 EXPECT_EQ(17u, alignTo(17, 8, 1)); in TEST()
262 EXPECT_EQ(3u, alignTo(~0LL, 8, 3)); in TEST()
263 EXPECT_EQ(552u, alignTo(321, 255, 42)); in TEST()
/external/llvm/lib/Target/Mips/
DMipsFrameLowering.cpp123 Offset = alignTo(Offset + Size, Size); in estimateStackSize()
134 Offset = alignTo(Offset + MFI->getObjectSize(I), MaxAlign); in estimateStackSize()
138 Offset = alignTo(Offset + MFI->getMaxCallFrameSize(), in estimateStackSize()
141 return alignTo(Offset, getStackAlignment()); in estimateStackSize()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600FrameLowering.cpp39 OffsetBytes = alignTo(OffsetBytes, MFI.getObjectAlignment(i)); in getFrameIndexReference()
43 OffsetBytes = alignTo(OffsetBytes, 4); in getFrameIndexReference()
47 OffsetBytes = alignTo(OffsetBytes, MFI.getObjectAlignment(FI)); in getFrameIndexReference()
DAMDGPUCallLowering.cpp166 uint64_t ArgOffset = alignTo(ExplicitArgOffset, ABIAlign) + BaseOffset; in lowerFormalArguments()
167 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABIAlign) + AllocSize; in lowerFormalArguments()
170 ArgOffset = alignTo(ArgOffset, DL.getABITypeAlignment(ArgTy)); in lowerFormalArguments()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUFrameLowering.cpp92 OffsetBytes = alignTo(OffsetBytes, MFI->getObjectAlignment(i)); in getFrameIndexReference()
96 OffsetBytes = alignTo(OffsetBytes, 4); in getFrameIndexReference()
100 OffsetBytes = alignTo(OffsetBytes, MFI->getObjectAlignment(FI)); in getFrameIndexReference()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
DMachOUtils.cpp255 Segment.vmsize = alignTo(LinkeditSize, 0x1000); in transferSegmentAndSections()
262 EndAddress = alignTo(EndAddress, 0x1000); in transferSegmentAndSections()
288 alignTo(FileSize, 0x1000), FileOffset, in createDwarfSegment()
299 VMAddr = alignTo(VMAddr, Align); in createDwarfSegment()
300 FileOffset = alignTo(FileOffset, Align); in createDwarfSegment()
422 DwarfSegmentSize = alignTo(DwarfSegmentSize, Sec->getAlignment()); in generateDsymCompanion()
446 SymtabStart = alignTo(SymtabStart, 0x1000); in generateDsymCompanion()
467 DwarfSegmentStart = alignTo(DwarfSegmentStart, 0x1000); in generateDsymCompanion()
486 uint64_t DwarfVMAddr = alignTo(EndAddress, 0x1000); in generateDsymCompanion()
538 OutFile.write_zeros(alignTo(Pos, Sec.getAlignment()) - Pos); in generateDsymCompanion()
/external/llvm/unittests/Support/
DMathExtrasTest.cpp211 TEST(MathExtras, alignTo) { in TEST() argument
212 EXPECT_EQ(8u, alignTo(5, 8)); in TEST()
213 EXPECT_EQ(24u, alignTo(17, 8)); in TEST()
214 EXPECT_EQ(0u, alignTo(~0LL, 8)); in TEST()
216 EXPECT_EQ(7u, alignTo(5, 8, 7)); in TEST()
217 EXPECT_EQ(17u, alignTo(17, 8, 1)); in TEST()
218 EXPECT_EQ(3u, alignTo(~0LL, 8, 3)); in TEST()
219 EXPECT_EQ(552u, alignTo(321, 255, 42)); in TEST()
DTrailingObjectsTest.cpp124 llvm::alignTo(sizeof(bool) * 2, llvm::alignOf<double>())); in TEST()
167 EXPECT_EQ(sizeof(Class3), llvm::alignTo(1, llvm::alignOf<double>())); in TEST()
187 llvm::alignTo(sizeof(long) + 1, llvm::alignOf<long>())); in TEST()
188 EXPECT_EQ(sizeof(Class4), llvm::alignTo(1, llvm::alignOf<long>())); in TEST()
/external/llvm/tools/dsymutil/
DMachOUtils.cpp245 EndAddress = alignTo(EndAddress, 0x1000); in transferSegmentAndSections()
272 alignTo(FileSize, 0x1000), FileOffset, in createDwarfSegment()
283 VMAddr = alignTo(VMAddr, Align); in createDwarfSegment()
284 FileOffset = alignTo(FileOffset, Align); in createDwarfSegment()
398 DwarfSegmentSize = alignTo(DwarfSegmentSize, Sec->getAlignment()); in generateDsymCompanion()
422 SymtabStart = alignTo(SymtabStart, 0x1000); in generateDsymCompanion()
444 DwarfSegmentStart = alignTo(DwarfSegmentStart, 0x1000); in generateDsymCompanion()
463 uint64_t DwarfVMAddr = alignTo(EndAddress, 0x1000); in generateDsymCompanion()
513 Writer.WriteZeros(alignTo(Pos, Sec.getAlignment()) - Pos); in generateDsymCompanion()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
DSparcSubtarget.cpp81 frameSize = alignTo(frameSize, 16); in getAdjustedFrameSize()
94 frameSize = alignTo(frameSize, 8); in getAdjustedFrameSize()
/external/llvm/lib/Target/Sparc/
DSparcSubtarget.cpp84 frameSize = alignTo(frameSize, 16); in getAdjustedFrameSize()
97 frameSize = alignTo(frameSize, 8); in getAdjustedFrameSize()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DStringTableBuilder.cpp151 Size = alignTo(Size, Alignment); in finalizeStringTable()
162 Size = alignTo(Size, 4); // Pad to multiple of 4. in finalizeStringTable()
184 size_t Start = alignTo(Size, Alignment); in add()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DWindowsResource.cpp397 SectionOneSize += alignTo(TotalStringTableSize, sizeof(uint32_t)); in performSectionOneLayout()
404 FileSize = alignTo(FileSize, SECTION_ALIGNMENT); in performSectionOneLayout()
414 SectionTwoSize += alignTo(Entry.size(), sizeof(uint64_t)); in performSectionTwoLayout()
417 FileSize = alignTo(FileSize, SECTION_ALIGNMENT); in performSectionTwoLayout()
498 CurrentOffset = alignTo(CurrentOffset, SECTION_ALIGNMENT); in writeFirstSection()
506 CurrentOffset += alignTo(RawDataEntry.size(), sizeof(uint64_t)); in writeSecondSection()
509 CurrentOffset = alignTo(CurrentOffset, SECTION_ALIGNMENT); in writeSecondSection()
680 alignTo(TotalStringTableSize, sizeof(uint32_t)) - TotalStringTableSize; in writeDirectoryStringTable()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/
DDebugSubsectionRecord.cpp69 return sizeof(DebugSubsectionHeader) + alignTo(DataSize, 4); in calculateSerializedLength()
82 Header.Length = alignTo(DataSize, alignOf(Container)); in commit()
DDebugChecksumsSubsection.cpp48 Len = alignTo(Header->ChecksumSize + sizeof(FileChecksumEntryHeader), 4); in operator ()()
87 uint32_t Len = alignTo(sizeof(FileChecksumEntryHeader) + Bytes.size(), 4); in addChecksum()
/external/llvm/include/llvm/Target/
DTargetFrameLowering.h78 SPAdj = -alignTo(-SPAdj, StackAlignment); in alignSPAdjust()
80 SPAdj = alignTo(SPAdj, StackAlignment); in alignSPAdjust()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DTargetFrameLowering.h78 SPAdj = -alignTo(-SPAdj, StackAlignment); in alignSPAdjust()
80 SPAdj = alignTo(SPAdj, StackAlignment); in alignSPAdjust()
/external/clang/include/clang/AST/
DCharUnits.h184 CharUnits alignTo(const CharUnits &Align) const { in alignTo() function
185 return CharUnits(llvm::alignTo(Quantity, Align.Quantity)); in alignTo()
/external/llvm/lib/MC/
DStringTableBuilder.cpp137 size_t Start = alignTo(StringTable.size(), Alignment); in finalizeStringTable()
186 size_t Start = alignTo(Size, Alignment); in add()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/
DLanaiFrameLowering.cpp45 MaxCallFrameSize = alignTo(MaxCallFrameSize, StackAlign); in determineFrameLayout()
55 FrameSize = alignTo(FrameSize, StackAlign); in determineFrameLayout()
/external/llvm/lib/Target/Lanai/
DLanaiFrameLowering.cpp45 MaxCallFrameSize = alignTo(MaxCallFrameSize, StackAlign); in determineFrameLayout()
55 FrameSize = alignTo(FrameSize, StackAlign); in determineFrameLayout()

12345678