/llvm-project/llvm/unittests/Support/ |
H A D | AlignmentTest.cpp | 160 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 D | CoverageMappingWriter.cpp | 317 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 D | ArchiveWriter.cpp | 245 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 D | Alignment.h | 197 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 D | OnDiskHashTable.h | 210 uint64_t N = offsetToAlignment(TableOff, Align(alignof(offset_type))); in Emit()
|
/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCBranchSelector.cpp | 93 return offsetToAlignment(Offset, Alignment); in GetAlignmentAdjustment() 99 return Alignment.value() + offsetToAlignment(Offset, Alignment); in GetAlignmentAdjustment()
|
/llvm-project/llvm/lib/MC/ |
H A D | MCDXContainerWriter.cpp | 115 W.OS.write_zeros(offsetToAlignment(Size, Align(4))); in writeObject()
|
H A D | MachObjectWriter.cpp | 141 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 D | MCAssembler.cpp | 278 unsigned Size = offsetToAlignment(Offset, AF.getAlignment()); in computeFragmentSize() 1186 ? offsetToAlignment(AlignedOffset, BoundaryAlignment) in isAgainstBoundary()
|
H A D | WasmObjectWriter.cpp | 393 uint64_t Paddings = offsetToAlignment(Offset, Align(Alignment)); in writeStringWithAlignment()
|
/llvm-project/bolt/lib/Passes/ |
H A D | LongJmp.cpp | 319 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 D | MachOLayoutBuilder.cpp | 168 offsetToAlignment(SegFileSize, Align(1ull << Sec->Align)); in layoutSegments()
|
/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVFrameLowering.cpp | 439 offsetToAlignment(ScalarLocalVarSize, RVFI->getRVVStackAlign())) in adjustStackForRVV() 1495 offsetToAlignment(StackSize, Align(RVVStackAlignVScale))) { in spillCalleeSavedRegisters()
|
/llvm-project/llvm/lib/Target/X86/ |
H A D | X86AsmPrinter.cpp | 150 emitNops(offsetToAlignment(PrefixBytes, MF.getAlignment())); in EmitKCFITypePadding()
|
/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | DeadStoreElimination.cpp | 594 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 D | CSKYConstantIslandPass.cpp | 751 Growth += offsetToAlignment(CPEEnd, NextBlockAlignment); in isWaterInRange()
|
/llvm-project/llvm/lib/Target/Mips/AsmParser/ |
H A D | MipsAsmParser.cpp | 1904 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 D | MipsConstantIslandPass.cpp | 950 Growth += offsetToAlignment(CPEEnd, NextBlockAlignment); in isWaterInRange()
|
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyld.cpp | 782 offsetToAlignment((uint64_t)Addr, Align(Alignment)); in emitCommonSymbols()
|
/llvm-project/llvm/lib/DWARFLinker/Classic/ |
H A D | DWARFStreamer.cpp | 452 unsigned Padding = offsetToAlignment(HeaderSize, Align(TupleSize)); in emitDwarfDebugArangesTable()
|
/llvm-project/clang/lib/AST/ |
H A D | DeclBase.cpp | 99 llvm::offsetToAlignment(sizeof(Module *), llvm::Align(alignof(Decl))); in operator new()
|
/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
H A D | DWARFLinkerCompileUnit.cpp | 856 unsigned Padding = offsetToAlignment(HeaderSize, Align(TupleSize)); in emitAranges()
|
/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMConstantIslandPass.cpp | 1153 Growth += offsetToAlignment(CPEEnd, NextBlockAlignment); in isWaterInRange()
|
/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroFrame.cpp | 271 offsetToAlignment(MaxFrameAlignment->value(), FieldAlignment); in computeBlockData()
|
/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DwarfDebug.cpp | 3362 unsigned Padding = offsetToAlignment( in constructSkeletonCU()
|