Home
last modified time | relevance | path

Searched refs:offsetToAlignment (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project/llvm/unittests/Support/
H A DAlignmentTest.cpp160 TEST(AlignmentTest, offsetToAlignment) { in TEST() argument
176 EXPECT_EQ(offsetToAlignment(T.offset, A), T.alignedOffset); in TEST()
/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMappingWriter.cpp317 for (unsigned Pad = offsetToAlignment(OS.tell(), Align(8)); Pad; --Pad) in write()
322 for (unsigned Pad = offsetToAlignment(OS.tell(), Align(8)); Pad; --Pad) in write()
/llvm-project/llvm/lib/Object/
H A DArchiveWriter.cpp245 unsigned Pad = offsetToAlignment(PosAfterHeader, Align(8)); in printBSDMemberHeader()
344 unsigned Pad = offsetToAlignment(Size, Align(2)); in computeStringTable()
405 : offsetToAlignment(Size, Align(isBSDLike(Kind) ? 8 : 2)); in computeSymbolTableSize()
421 uint32_t Pad = offsetToAlignment(Size, Align(2)); in computeSymbolMapSize()
435 uint32_t Pad = offsetToAlignment(Size, Align(2)); in computeECSymbolsSize()
902 isDarwin(Kind) ? offsetToAlignment(Data.size(), Align(8)) : 0; in computeMemberData()
904 offsetToAlignment(Data.size() + MemberPadding, Align(2)); in computeMemberData()
/llvm-project/llvm/include/llvm/Support/
H A DAlignment.h197 inline uint64_t offsetToAlignment(uint64_t Value, Align Alignment) { in offsetToAlignment() function
204 return offsetToAlignment(reinterpret_cast<uintptr_t>(Addr), Alignment); in offsetToAlignedAddr()
H A DOnDiskHashTable.h210 uint64_t N = offsetToAlignment(TableOff, Align(alignof(offset_type))); in Emit()
/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCBranchSelector.cpp93 return offsetToAlignment(Offset, Alignment); in GetAlignmentAdjustment()
99 return Alignment.value() + offsetToAlignment(Offset, Alignment); in GetAlignmentAdjustment()
/llvm-project/llvm/lib/MC/
H A DMCDXContainerWriter.cpp115 W.OS.write_zeros(offsetToAlignment(Size, Align(4))); in writeObject()
H A DMachObjectWriter.cpp141 return offsetToAlignment(EndAddr, NextSec.getAlign()); in isSymbolLinkerVisible()
502 offsetToAlignment(BytesWritten, is64Bit() ? Align(8) : Align(4))); in recordRelocation()
901 offsetToAlignment(SectionDataFileSize, is64Bit() ? Align(8) : Align(4)); in writeObject()
1080 offsetToAlignment(LOHRawSize, is64Bit() ? Align(8) : Align(4))); in writeObject()
H A DMCAssembler.cpp278 unsigned Size = offsetToAlignment(Offset, AF.getAlignment()); in computeFragmentSize()
1186 ? offsetToAlignment(AlignedOffset, BoundaryAlignment) in isAgainstBoundary()
H A DWasmObjectWriter.cpp393 uint64_t Paddings = offsetToAlignment(Offset, Align(Alignment)); in writeStringWithAlignment()
/llvm-project/bolt/lib/Passes/
H A DLongJmp.cpp319 offsetToAlignment(DotAddress, llvm::Align(Func->getAlignment())); in tentativeLayoutRelocColdPart()
378 offsetToAlignment(DotAddress, llvm::Align(Func->getAlignment())); in tentativeLayoutRelocMode()
431 offsetToAlignment(DotAddress, llvm::Align(opts::AlignText)); in usesStub()
/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOLayoutBuilder.cpp168 offsetToAlignment(SegFileSize, Align(1ull << Sec->Align)); in layoutSegments()
/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp439 offsetToAlignment(ScalarLocalVarSize, RVFI->getRVVStackAlign())) in adjustStackForRVV()
1495 offsetToAlignment(StackSize, Align(RVVStackAlignVScale))) { in spillCalleeSavedRegisters()
/llvm-project/llvm/lib/Target/X86/
H A DX86AsmPrinter.cpp150 emitNops(offsetToAlignment(PrefixBytes, MF.getAlignment())); in EmitKCFITypePadding()
/llvm-project/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp594 offsetToAlignment(uint64_t(KillingStart - DeadStart), PrefAlign); in tryToShorten()
606 uint64_t Off = offsetToAlignment(ToRemoveSize, PrefAlign); in tryToShorten()
/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYConstantIslandPass.cpp751 Growth += offsetToAlignment(CPEEnd, NextBlockAlignment); in isWaterInRange()
/llvm-project/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp1904 if (offsetToAlignment(Offset.getImm(), in processInstruction()
1934 if (offsetToAlignment(Offset.getImm(), in processInstruction()
1950 if (offsetToAlignment(Offset.getImm(), Align(4))) in processInstruction()
1963 if (offsetToAlignment(Offset.getImm(), Align(4))) in processInstruction()
1974 if (offsetToAlignment(Offset.getImm(), Align(4))) in processInstruction()
1987 if (offsetToAlignment(Offset.getImm(), Align(2))) in processInstruction()
3664 if (offsetToAlignment(Offset.getImm(), Align(2))) in expandUncondBranchMMPseudo()
/llvm-project/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp950 Growth += offsetToAlignment(CPEEnd, NextBlockAlignment); in isWaterInRange()
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyld.cpp782 offsetToAlignment((uint64_t)Addr, Align(Alignment)); in emitCommonSymbols()
/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFStreamer.cpp452 unsigned Padding = offsetToAlignment(HeaderSize, Align(TupleSize)); in emitDwarfDebugArangesTable()
/llvm-project/clang/lib/AST/
H A DDeclBase.cpp99 llvm::offsetToAlignment(sizeof(Module *), llvm::Align(alignof(Decl))); in operator new()
/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFLinkerCompileUnit.cpp856 unsigned Padding = offsetToAlignment(HeaderSize, Align(TupleSize)); in emitAranges()
/llvm-project/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp1153 Growth += offsetToAlignment(CPEEnd, NextBlockAlignment); in isWaterInRange()
/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp271 offsetToAlignment(MaxFrameAlignment->value(), FieldAlignment); in computeBlockData()
/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfDebug.cpp3362 unsigned Padding = offsetToAlignment( in constructSkeletonCU()

12