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