Lines Matching +full:align +full:- +full:end

1 //===----- EPCGenericRTDyldMemoryManager.cpp - EPC-bbasde MemMgr -----===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
74 alignAddr(Seg.back().Contents.get(), Align(Alignment))); in allocateCodeSection()
83 << (IsReadOnly ? "ro" : "rw") << "-data section " << SectionName in allocateDataSection()
93 alignAddr(Seg.back().Contents.get(), Align(Alignment))); in allocateDataSection()
97 uintptr_t CodeSize, Align CodeAlign, uintptr_t RODataSize, in reserveAllocationSpace()
98 Align RODataAlign, uintptr_t RWDataSize, Align RWDataAlign) { in reserveAllocationSpace()
111 ErrMsg = "Invalid ro-data alignment in reserveAllocationSpace"; in reserveAllocationSpace()
115 ErrMsg = "Invalid rw-data alignment in reserveAllocationSpace"; in reserveAllocationSpace()
149 Unmapped.back().RemoteCode.End, in reserveAllocationSpace()
152 Unmapped.back().RemoteROData.End, in reserveAllocationSpace()
164 dbgs() << "Allocator " << (void *)this << " added unfinalized eh-frame " in registerEHFrames()
181 ErrMsg = "eh-frame does not lie inside unfinalized alloc"; in registerEHFrames()
185 // This is a no-op for us: We've registered a deallocation action for it. in deregisterEHFrames()
211 if (ErrMsg && !this->ErrMsg.empty()) { in finalizeMemory()
212 *ErrMsg = std::move(this->ErrMsg); in finalizeMemory()
239 Seg.Addr = RemoteAddrs[I]->Start; in finalizeMemory()
241 Seg.Size = alignTo(Seg.Size, SecAlloc.Align); in finalizeMemory()
247 SecOffset = alignTo(SecOffset, SecAlloc.Align); in finalizeMemory()
250 alignAddr(SecAlloc.Contents.get(), Align(SecAlloc.Align))), in finalizeMemory()
268 // We'll also need to make an extra allocation for the eh-frame wrapper call in finalizeMemory()
275 this->ErrMsg = toString(std::move(Err)); in finalizeMemory()
276 dbgs() << "Serialization error: " << this->ErrMsg << "\n"; in finalizeMemory()
278 *ErrMsg = this->ErrMsg; in finalizeMemory()
283 this->ErrMsg = toString(std::move(FinalizeErr)); in finalizeMemory()
284 dbgs() << "Finalization error: " << this->ErrMsg << "\n"; in finalizeMemory()
286 *ErrMsg = this->ErrMsg; in finalizeMemory()
298 NextAddr.setValue(alignTo(NextAddr.getValue(), Alloc.Align)); in mapAllocsToRemoteAddrs()
300 dbgs() << " " << static_cast<void *>(Alloc.Contents.get()) << " -> " in mapAllocsToRemoteAddrs()
304 Alloc.Contents.get(), Align(Alloc.Align))), in mapAllocsToRemoteAddrs()
307 // Only advance NextAddr if it was non-null to begin with, in mapAllocsToRemoteAddrs()
314 } // end namespace orc
315 } // end namespace llvm