Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/tools/llvm-cov/
H A DTestingSupport.cpp115 for (unsigned Pad = offsetToAlignment(OS.tell(), Align(8)); Pad; --Pad) in convertForTestingMain()
119 for (unsigned Pad = offsetToAlignment(OS.tell(), Align(8)); Pad; --Pad) in convertForTestingMain()
/llvm-project-15.0.7/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-15.0.7/llvm/include/llvm/Support/
H A DAlignment.h198 inline uint64_t offsetToAlignment(uint64_t Value, Align Alignment) { in offsetToAlignment() function
205 return offsetToAlignment(reinterpret_cast<uintptr_t>(Addr), Alignment); in offsetToAlignedAddr()
H A DOnDiskHashTable.h211 uint64_t N = offsetToAlignment(TableOff, Align(alignof(offset_type))); in Emit()
/llvm-project-15.0.7/llvm/lib/Object/
H A DArchiveWriter.cpp224 unsigned Pad = offsetToAlignment(PosAfterHeader, Align(8)); in printBSDMemberHeader()
317 unsigned Pad = offsetToAlignment(Size, Align(2)); in computeStringTable()
378 : offsetToAlignment(Size, Align(isBSDLike(Kind) ? 8 : 2)); in computeSymbolTableSize()
565 isDarwin(Kind) ? offsetToAlignment(Data.size(), Align(8)) : 0; in computeMemberData()
567 offsetToAlignment(Data.size() + MemberPadding, Align(2)); in computeMemberData()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCBranchSelector.cpp94 return offsetToAlignment(Offset, Alignment); in GetAlignmentAdjustment()
100 return Alignment.value() + offsetToAlignment(Offset, Alignment); in GetAlignmentAdjustment()
/llvm-project-15.0.7/bolt/lib/Passes/
H A DLongJmp.cpp298 offsetToAlignment(DotAddress, llvm::Align(Func->getAlignment())); in tentativeLayoutRelocColdPart()
357 offsetToAlignment(DotAddress, llvm::Align(Func->getAlignment())); in tentativeLayoutRelocMode()
405 offsetToAlignment(DotAddress, llvm::Align(opts::AlignText)); in tentativeLayout()
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCDXContainerWriter.cpp135 W.OS.write_zeros(offsetToAlignment(Size, Align(4))); in writeObject()
H A DMachObjectWriter.cpp132 return offsetToAlignment(EndAddr, Align(NextSec.getAlignment())); in getPaddingSize()
451 offsetToAlignment(BytesWritten, is64Bit() ? Align(8) : Align(4))); in writeLinkerOptionsLoadCommand()
882 offsetToAlignment(SectionDataFileSize, is64Bit() ? Align(8) : Align(4)); in writeObject()
1053 offsetToAlignment(LOHRawSize, is64Bit() ? Align(8) : Align(4))); in writeObject()
H A DMCAssembler.cpp334 unsigned Size = offsetToAlignment(Offset, AF.getAlignment()); in computeFragmentSize()
1082 ? offsetToAlignment(AlignedOffset, BoundaryAlignment) in relaxBoundaryAlign()
H A DWasmObjectWriter.cpp396 uint64_t Paddings = offsetToAlignment(Offset, Align(Alignment)); in writeStringWithAlignment()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp278 offsetToAlignment(ScalarLocalVarSize, RVFI->getRVVStackAlign())) in determineFrameLayout()
946 if (auto AlignmentPadding = offsetToAlignment(StackSize, RVVStackAlign)) { in assignRVVStackObjectOffsets()
/llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/
H A DMachOLayoutBuilder.cpp162 offsetToAlignment(SegFileSize, Align(1ull << Sec->Align)); in layoutSegments()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp503 offsetToAlignment(uint64_t(KillingStart - DeadStart), PrefAlign); in tryToShorten()
515 uint64_t Off = offsetToAlignment(ToRemoveSize, PrefAlign); in tryToShorten()
/llvm-project-15.0.7/llvm/lib/DWARFLinker/
H A DDWARFStreamer.cpp394 unsigned Padding = offsetToAlignment(HeaderSize, Align(TupleSize)); in emitUnitRangesEntries()
/llvm-project-15.0.7/llvm/lib/Target/CSKY/
H A DCSKYConstantIslandPass.cpp761 Growth += offsetToAlignment(CPEEnd, NextBlockAlignment); in isWaterInRange()
/llvm-project-15.0.7/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp1905 if (offsetToAlignment(Offset.getImm(), in processInstruction()
1935 if (offsetToAlignment(Offset.getImm(), in processInstruction()
1951 if (offsetToAlignment(Offset.getImm(), Align(4))) in processInstruction()
1964 if (offsetToAlignment(Offset.getImm(), Align(4))) in processInstruction()
1975 if (offsetToAlignment(Offset.getImm(), Align(4))) in processInstruction()
1988 if (offsetToAlignment(Offset.getImm(), Align(2))) in processInstruction()
3591 if (offsetToAlignment(Offset.getImm(), Align(2))) in expandUncondBranchMMPseudo()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyld.cpp778 offsetToAlignment((uint64_t)Addr, Align(Alignment)); in emitCommonSymbols()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp952 Growth += offsetToAlignment(CPEEnd, NextBlockAlignment); in isWaterInRange()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclBase.cpp103 llvm::offsetToAlignment(sizeof(Module *), llvm::Align(alignof(Decl))); in operator new()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp1134 Growth += offsetToAlignment(CPEEnd, NextBlockAlignment); in isWaterInRange()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp529 offsetToAlignment(MaxFrameAlignment->value(), FieldAlignment); in addField()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfDebug.cpp3023 unsigned Padding = offsetToAlignment( in emitDebugARanges()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp3977 offsetToAlignment(Offset, llvm::Align(Alignment)); in appendPadding()