Lines Matching full:auto

26   for (auto &Sec : G.sections()) {  in BasicLayout()
32 auto &Seg = Segments[{Sec.getMemProt(), Sec.getMemLifetime()}]; in BasicLayout()
33 for (auto *B : Sec.blocks()) in BasicLayout()
41 auto CompareBlocks = [](const Block *LHS, const Block *RHS) { in BasicLayout()
51 for (auto &KV : Segments) { in BasicLayout()
52 auto &Seg = KV.second; in BasicLayout()
57 for (auto *B : Seg.ContentBlocks) { in BasicLayout()
64 for (auto *B : Seg.ZeroFillBlocks) { in BasicLayout()
84 for (auto &KV : segments()) { in getContiguousPageBasedLayoutSizes()
85 auto &AG = KV.first; in getContiguousPageBasedLayoutSizes()
86 auto &Seg = KV.second; in getContiguousPageBasedLayoutSizes()
103 for (auto &KV : Segments) { in apply()
104 auto &Seg = KV.second; in apply()
109 for (auto *B : Seg.ContentBlocks) { in apply()
127 for (auto *B : Seg.ZeroFillBlocks) { in apply()
158 auto G = std::make_unique<LinkGraph>("", Triple(), 0, in Create()
163 for (auto &KV : Segments) { in Create()
164 auto &AG = KV.first; in Create()
165 auto &Seg = KV.second; in Create()
170 auto AGSectionName = in Create()
174 auto &Sec = G->createSection(AGSectionName, AG.getMemProt()); in Create()
180 auto &B = in Create()
189 auto &GRef = *G; in Create()
207 auto AllocF = AllocP.get_future(); in Create()
222 auto I = ContentBlocks.find(AG); in getSegInfo()
224 auto &B = *I->second; in getSegInfo()
254 if (auto Err = applyProtections()) { in finalize()
260 auto DeallocActions = runFinalizeActions(G->allocActions()); in finalize()
267 if (auto EC = sys::Memory::releaseMappedMemory(FinalizationSegments)) { in finalize()
286 if (auto EC = sys::Memory::releaseMappedMemory(FinalizationSegments)) in abandon()
288 if (auto EC = sys::Memory::releaseMappedMemory(StandardSegments)) in abandon()
303 for (auto &KV : BL.segments()) { in applyProtections()
304 const auto &AG = KV.first; in applyProtections()
305 auto &Seg = KV.second; in applyProtections()
307 auto Prot = toSysMemoryProtectionFlags(AG.getMemProt()); in applyProtections()
312 if (auto EC = sys::Memory::protectMappedMemory(MB, Prot)) in applyProtections()
329 if (auto PageSize = sys::Process::getPageSize()) in Create()
349 auto SegsSizes = BL.getContiguousPageBasedLayoutSizes(PageSize); in allocate()
398 auto NextStandardSegAddr = orc::ExecutorAddr::fromPtr(StandardSegsMem.base()); in allocate()
399 auto NextFinalizeSegAddr = orc::ExecutorAddr::fromPtr(FinalizeSegsMem.base()); in allocate()
418 for (auto &KV : BL.segments()) { in allocate()
419 auto &AG = KV.first; in allocate()
420 auto &Seg = KV.second; in allocate()
422 auto &SegAddr = (AG.getMemLifetime() == orc::MemLifetime::Standard) in allocate()
432 if (auto Err = BL.apply()) { in allocate()
449 for (auto &Alloc : Allocs) { in deallocate()
450 auto *FA = Alloc.release().toPtr<FinalizedAllocInfo *>(); in deallocate()
461 auto &DeallocActions = DeallocActionsList.back(); in deallocate()
462 auto &StandardSegments = StandardSegmentsList.back(); in deallocate()
466 if (auto Err = DeallocActions.back().runWithSPSRetErrorMerged()) in deallocate()
472 if (auto EC = sys::Memory::releaseMappedMemory(StandardSegments)) in deallocate()
487 auto *FA = FinalizedAllocInfos.Allocate<FinalizedAllocInfo>(); in createFinalizedAlloc()