/external/clang/lib/AST/ |
D | StmtOpenMP.cpp | 61 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 …]
|
D | RecordLayoutBuilder.cpp | 976 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 …]
|
/external/llvm-project/llvm/unittests/Support/ |
D | TrailingObjectsTest.cpp | 117 llvm::alignTo(Class1::totalSizeToAlloc<short>(1), alignof(Class1))); in TEST() 123 llvm::alignTo(Class1::totalSizeToAlloc<short>(3), alignof(Class1))); in TEST() 137 EXPECT_EQ(sizeof(Class2), llvm::alignTo(sizeof(bool) * 2, alignof(double))); in TEST() 153 llvm::alignTo(Class2::totalSizeToAlloc<double, short>(1, 1), in TEST() 188 EXPECT_EQ(sizeof(Class3), llvm::alignTo(1, alignof(double))); in TEST() 197 llvm::alignTo(Class3::totalSizeToAlloc<double, short, bool>(1, 1, 3), in TEST() 219 llvm::alignTo(sizeof(long) + 1, alignof(long))); in TEST() 220 EXPECT_EQ(sizeof(Class4), llvm::alignTo(1, alignof(long))); in TEST() 227 llvm::alignTo(Class4::totalSizeToAlloc<char, long>(1, 1), in TEST()
|
D | AlignmentTest.cpp | 119 EXPECT_EQ(alignTo(T.offset, A), T.rounded); in TEST() 122 EXPECT_EQ(alignTo(T.offset, A.getValue()), T.rounded); in TEST() 129 EXPECT_EQ(alignTo(5, Align(8), 0), alignTo(5, Align(8))); in TEST() 130 EXPECT_EQ(alignTo(5, Align(8), 7), 7U); in TEST() 131 EXPECT_EQ(alignTo(17, Align(8), 1), 17U); in TEST() 132 EXPECT_EQ(alignTo(~0LL, Align(8), 3), 3U); in TEST()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | R600FrameLowering.cpp | 38 OffsetBytes = alignTo(OffsetBytes, MFI.getObjectAlignment(i)); in getFrameIndexReference() 42 OffsetBytes = alignTo(OffsetBytes, 4); in getFrameIndexReference() 46 OffsetBytes = alignTo(OffsetBytes, MFI.getObjectAlignment(FI)); in getFrameIndexReference()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | R600FrameLowering.cpp | 38 OffsetBytes = alignTo(OffsetBytes, MFI.getObjectAlign(i)); in getFrameIndexReference() 42 OffsetBytes = alignTo(OffsetBytes, Align(4)); in getFrameIndexReference() 46 OffsetBytes = alignTo(OffsetBytes, MFI.getObjectAlign(FI)); in getFrameIndexReference()
|
D | AMDGPUMachineFunction.cpp | 52 unsigned Offset = StaticLDSSize = alignTo(StaticLDSSize, Alignment); in allocateLDSGlobal() 59 LDSSize = alignTo(StaticLDSSize, DynLDSAlign); in allocateLDSGlobal() 73 LDSSize = alignTo(StaticLDSSize, Alignment); in setDynLDSAlign()
|
/external/llvm/lib/Target/Mips/ |
D | MipsFrameLowering.cpp | 123 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/llvm/lib/Target/AMDGPU/ |
D | AMDGPUFrameLowering.cpp | 92 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/llvm-project/llvm/unittests/Object/ |
D | ELFTypesTest.cpp | 23 alignTo<Elf_Nhdr_Impl<ELFT>::Align>(Name.size()) + in getElfNote() 24 alignTo<Elf_Nhdr_Impl<ELFT>::Align>(Desc.size()), in getElfNote() 37 NameOffset + alignTo<Elf_Nhdr_Impl<ELFT>::Align>(Nhdr->n_namesz); in getElfNote()
|
/external/llvm/unittests/Support/ |
D | TrailingObjectsTest.cpp | 124 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()
|
D | MathExtrasTest.cpp | 211 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()
|
/external/llvm-project/llvm/tools/dsymutil/ |
D | MachOUtils.cpp | 262 Segment.vmsize = alignTo(LinkeditSize, 0x1000); in transferSegmentAndSections() 269 EndAddress = alignTo(EndAddress, 0x1000); in transferSegmentAndSections() 295 alignTo(FileSize, 0x1000), FileOffset, in createDwarfSegment() 306 VMAddr = alignTo(VMAddr, Align); in createDwarfSegment() 307 FileOffset = alignTo(FileOffset, Align); in createDwarfSegment() 442 DwarfSegmentSize = alignTo(DwarfSegmentSize, Sec->getAlignment()); in generateDsymCompanion() 471 SymtabStart = alignTo(SymtabStart, 0x1000); in generateDsymCompanion() 500 DwarfSegmentStart = alignTo(DwarfSegmentStart, 0x1000); in generateDsymCompanion() 519 uint64_t DwarfVMAddr = alignTo(EndAddress, 0x1000); in generateDsymCompanion() 570 OutFile.write_zeros(alignTo(Pos, Sec.getAlignment()) - Pos); in generateDsymCompanion()
|
/external/llvm/tools/dsymutil/ |
D | MachOUtils.cpp | 245 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/llvm-project/llvm/lib/MC/ |
D | StringTableBuilder.cpp | 159 Size = alignTo(Size, Alignment); in finalizeStringTable() 170 Size = alignTo(Size, 4); // Pad to multiple of 4. in finalizeStringTable() 172 Size = alignTo(Size, 8); // Pad to multiple of 8. in finalizeStringTable() 207 size_t Start = alignTo(Size, Alignment); in add()
|
/external/llvm-project/lld/test/ELF/ |
D | x86-64-tls-le-align.s | 6 # -alignTo(p_memsz, p_align) = -alignTo(4, 64) = -64
|
D | i386-tls-le-align.s | 6 # -alignTo(p_memsz, p_align) = -alignTo(4, 64) = -64
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | Alignment.h | 158 inline uint64_t alignTo(uint64_t Size, Align A) { in alignTo() function 183 inline uint64_t alignTo(uint64_t Size, Align A, uint64_t Skew) { in alignTo() function 191 inline uint64_t alignTo(uint64_t Size, MaybeAlign A) { in alignTo() function 192 return A ? alignTo(Size, A.getValue()) : Size; in alignTo() 201 return alignTo(ArithAddr, Alignment); in alignAddr() 207 return alignTo(Value, Alignment) - Value; in offsetToAlignment()
|
/external/llvm-project/lld/test/COFF/ |
D | strtab-size.s | 5 # where alignTo(N*18, 512) < alignTo(N*18 + 4, 512), where the first
|
/external/llvm-project/llvm/lib/Support/ |
D | OptimizedStructLayout.cpp | 151 auto Offset = alignTo(LastEnd, I->Alignment); in performOptimizedStructLayout() 331 assert(Offset == alignTo(LastEnd, Cur->Alignment)); in performOptimizedStructLayout() 352 assert(StartOffset == alignTo(LastEnd, Queue->Alignment)); in performOptimizedStructLayout() 408 Offset = alignTo(LastEnd, FirstQueueToSearch->Alignment); in performOptimizedStructLayout() 410 Offset == alignTo(LastEnd, FirstQueueToSearch[-1].Alignment)) in performOptimizedStructLayout()
|
/external/llvm-project/llvm/lib/Target/Sparc/ |
D | SparcSubtarget.cpp | 82 frameSize = alignTo(frameSize, 16); in getAdjustedFrameSize() 95 frameSize = alignTo(frameSize, 8); in getAdjustedFrameSize()
|
/external/llvm/lib/Target/Sparc/ |
D | SparcSubtarget.cpp | 84 frameSize = alignTo(frameSize, 16); in getAdjustedFrameSize() 97 frameSize = alignTo(frameSize, 8); in getAdjustedFrameSize()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/ |
D | SparcSubtarget.cpp | 82 frameSize = alignTo(frameSize, 16); in getAdjustedFrameSize() 95 frameSize = alignTo(frameSize, 8); in getAdjustedFrameSize()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | StringTableBuilder.cpp | 154 Size = alignTo(Size, Alignment); in finalizeStringTable() 165 Size = alignTo(Size, 4); // Pad to multiple of 4. in finalizeStringTable() 194 size_t Start = alignTo(Size, Alignment); in add()
|
/external/llvm-project/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 1015 setSize(getSize().alignTo(BaseAlign)); in EnsureVTablePointerAlignment() 1277 Offset = getDataSize().alignTo(AlignTo); in LayoutBase() 1287 if (InferAlignment && Offset < getDataSize().alignTo(AlignTo)) { in LayoutBase() 1379 llvm::alignTo(getSizeInBits(), Context.getTargetInfo().getCharAlign())); in Layout() 1451 return llvm::alignTo(Size, CharAlignment); in roundUpSizeToCharAlignment() 1498 FieldOffset = llvm::alignTo(getDataSizeInBits(), Context.toBits(TypeAlign)); in LayoutWideBitField() 1503 llvm::alignTo(NewSizeInBits, Context.getTargetInfo().getCharAlign())); in LayoutWideBitField() 1677 FieldOffset = llvm::alignTo(FieldOffset, FieldAlign); in LayoutBitField() 1679 llvm::alignTo(UnpackedFieldOffset, UnpackedFieldAlign); in LayoutBitField() 1691 FieldOffset = llvm::alignTo(FieldOffset, FieldAlign); in LayoutBitField() [all …]
|