Home
last modified time | relevance | path

Searched refs:Seg (Results 1 – 25 of 40) sorted by relevance

12

/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp32 auto &Seg = Segments[{Sec.getMemProt(), Sec.getMemLifetime()}]; in BasicLayout() local
35 Seg.ContentBlocks.push_back(B); in BasicLayout()
37 Seg.ZeroFillBlocks.push_back(B); in BasicLayout()
52 auto &Seg = KV.second; in BasicLayout() local
54 llvm::sort(Seg.ContentBlocks, CompareBlocks); in BasicLayout()
55 llvm::sort(Seg.ZeroFillBlocks, CompareBlocks); in BasicLayout()
57 for (auto *B : Seg.ContentBlocks) { in BasicLayout()
58 Seg.ContentSize = alignToBlock(Seg.ContentSize, *B); in BasicLayout()
59 Seg in BasicLayout()
86 auto &Seg = KV.second; getContiguousPageBasedLayoutSizes() local
104 auto &Seg = KV.second; apply() local
165 auto &Seg = KV.second; Create() local
305 auto &Seg = KV.second; applyProtections() local
420 auto &Seg = KV.second; allocate() local
[all...]
/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DSimpleExecutorMemoryManager.cpp51 for (auto &Seg : FR.Segments) in finalize() local
52 Base = std::min(Base, Seg.Addr); in finalize()
110 for (auto &Seg : FR.Segments) { in finalize() local
113 if (LLVM_UNLIKELY(Seg.Size < Seg.Content.size())) in finalize()
117 Seg.Addr.getValue(), Seg.Content.size(), Seg.Size), in finalize()
119 ExecutorAddr SegEnd = Seg.Addr + ExecutorAddrDiff(Seg.Size); in finalize()
120 if (LLVM_UNLIKELY(Seg.Addr < Base || SegEnd > AllocEnd)) in finalize()
124 Seg.Addr.getValue(), SegEnd.getValue(), Base.getValue(), in finalize()
128 char *Mem = Seg.Addr.toPtr<char *>(); in finalize()
129 if (!Seg.Content.empty()) in finalize()
[all …]
/llvm-project/llvm/unittests/ExecutionEngine/Orc/
H A DEPCGenericJITLinkMemoryManagerTest.cpp42 for (auto &Seg : FR.Segments) { in finalize() local
43 char *Mem = Seg.Addr.toPtr<char *>(); in finalize()
44 memcpy(Mem, Seg.Content.data(), Seg.Content.size()); in finalize()
45 memset(Mem + Seg.Content.size(), 0, Seg.Size - Seg.Content.size()); in finalize()
46 assert(Seg.Size <= std::numeric_limits<size_t>::max()); in finalize()
48 {Mem, static_cast<size_t>(Seg.Size)}, in finalize()
49 toSysMemoryProtectionFlags(Seg in finalize()
[all...]
/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h350 for (auto &Seg : Segments) {
351 Seg.cmdsize +=
352 Seg.Sections.size() * sizeof(typename MachOTraits::Section);
353 Seg.nsects = Seg.Sections.size();
354 Offset += Seg.cmdsize;
363 for (auto &Seg : Segments) {
364 Seg.vmaddr = SegVMAddr;
365 Seg.fileoff = Offset;
366 for (auto &Sec : Seg
[all...]
/llvm-project/llvm/tools/obj2yaml/
H A Dwasm2yaml.cpp335 WasmYAML::ElemSegment Seg; in dump() local
336 Seg.Flags = Segment.Flags; in dump()
337 Seg.TableNumber = Segment.TableNumber; in dump()
338 Seg.ElemKind = (uint32_t)Segment.ElemKind; in dump()
339 Seg.Offset.Extended = Segment.Offset.Extended; in dump()
340 if (Seg.Offset.Extended) { in dump()
341 Seg.Offset.Body = yaml::BinaryRef(Segment.Offset.Body); in dump()
343 Seg.Offset.Inst = Segment.Offset.Inst; in dump()
345 append_range(Seg.Functions, Segment.Functions); in dump()
346 ElemSec->Segments.push_back(Seg); in dump()
[all …]
/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DEPCGenericRTDyldMemoryManager.cpp70 auto &Seg = Unmapped.back().CodeAllocs; in allocateCodeSection()
71 Seg.emplace_back(Size, Alignment); in allocateCodeSection() local
73 alignAddr(Seg.back().Contents.get(), Align(Alignment))); in allocateCodeSection()
87 auto &Seg = in allocateDataSection()
90 Seg.emplace_back(Size, Alignment); in allocateDataSection()
92 alignAddr(Seg.back().Contents.get(), Align(Alignment))); in allocateDataSection()
236 auto &Seg = FR.Segments.back(); in finalizeMemory()
237 Seg.RAG = SegMemProts[I]; in finalizeMemory() local
238 Seg.Addr = RemoteAddrs[I]->Start; in finalizeMemory()
240 Seg in finalizeMemory()
88 auto &Seg = allocateDataSection() local
[all...]
H A DMapperJITLinkMemoryManager.cpp88 auto &Seg = KV.second; in allocate()
90 auto TotalSize = Seg.ContentSize + Seg.ZeroFillSize; in allocate()
92 Seg.Addr = NextSegAddr; in allocate()
93 Seg.WorkingMem = Mapper->prepare(NextSegAddr, TotalSize); in allocate()
98 SI.Offset = Seg.Addr - Result->Start; in allocate()
99 SI.ContentSize = Seg.ContentSize; in allocate()
100 SI.ZeroFillSize = Seg.ZeroFillSize; in allocate()
102 SI.WorkingMem = Seg.WorkingMem; in allocate()
89 auto &Seg = KV.second; allocate() local
H A DEPCGenericJITLinkMemoryManager.cpp150 auto &Seg = KV.second; in completeAllocation()
152 Seg.Addr = NextSegAddr; in completeAllocation()
153 KV.second.WorkingMem = BL.getGraph().allocateBuffer(Seg.ContentSize).data(); in completeAllocation()
155 alignTo(Seg.ContentSize + Seg.ZeroFillSize, EPC.getPageSize())); in completeAllocation()
158 SegInfo.ContentSize = Seg.ContentSize; in completeAllocation()
159 SegInfo.ZeroFillSize = Seg.ZeroFillSize; in completeAllocation()
160 SegInfo.Addr = Seg.Addr; in completeAllocation()
161 SegInfo.WorkingMem = Seg.WorkingMem; in completeAllocation()
151 auto &Seg = KV.second; completeAllocation() local
/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp219 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); in printDarwinSectionSizes()
220 outs() << "Segment " << Seg.segname << ": " in printDarwinSectionSizes()
221 << format(fmtbuf.c_str(), Seg.vmsize); in printDarwinSectionSizes()
223 outs() << " (vmaddr 0x" << format("%" PRIx64, Seg.vmaddr) << " fileoff " in printDarwinSectionSizes()
224 << Seg.fileoff << ")"; in printDarwinSectionSizes()
226 total += Seg.vmsize; in printDarwinSectionSizes()
228 for (unsigned J = 0; J < Seg.nsects; ++J) { in printDarwinSectionSizes()
242 if (Seg.nsects != 0) in printDarwinSectionSizes()
245 MachO::segment_command Seg = MachO->getSegmentLoadCommand(Load); in printDarwinSectionSizes()
246 uint64_t Seg_vmsize = Seg in printDarwinSectionSizes()
215 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); printDarwinSectionSizes() local
241 MachO::segment_command Seg = MachO->getSegmentLoadCommand(Load); printDarwinSectionSizes() local
284 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); printDarwinSegmentSizes() local
310 MachO::segment_command Seg = MachO->getSegmentLoadCommand(Load); printDarwinSegmentSizes() local
[all...]
/llvm-project/llvm/tools/llvm-readobj/
H A DWasmDumper.cpp177 const wasm::WasmDataSegment &Seg = Segment.Data; in printSectionHeaders() local
179 if (!Seg.Name.empty()) in printSectionHeaders()
180 W.printString("Name", Seg.Name); in printSectionHeaders()
181 W.printNumber("Size", static_cast<uint64_t>(Seg.Content.size())); in printSectionHeaders()
182 if (Seg.Offset.Extended) in printSectionHeaders()
184 else if (Seg.Offset.Inst.Opcode == wasm::WASM_OPCODE_I32_CONST) in printSectionHeaders()
185 W.printNumber("Offset", Seg.Offset.Inst.Value.Int32); in printSectionHeaders()
186 else if (Seg.Offset.Inst.Opcode == wasm::WASM_OPCODE_I64_CONST) in printSectionHeaders()
187 W.printNumber("Offset", Seg.Offset.Inst.Value.Int64); in printSectionHeaders()
188 else if (Seg.Offset.Inst.Opcode == wasm::WASM_OPCODE_GLOBAL_GET) { in printSectionHeaders()
[all …]
/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp188 constructSegment(SegmentType &Seg, llvm::MachO::LoadCommandType CmdType, in addSegment()
190 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in addSegment()
191 memset(&Seg, 0, sizeof(SegmentType)); in addSegment()
192 Seg.cmd = CmdType; in addSegment()
193 strncpy(Seg.segname, SegName.data(), SegName.size()); in addSegment()
194 Seg.maxprot |= in addSegment()
196 Seg.initprot |= in addSegment()
198 Seg.vmaddr = SegVMAddr;
199 Seg.vmsize = SegVMSize;
171 constructSegment(SegmentType & Seg,llvm::MachO::LoadCommandType CmdType,StringRef SegName,uint64_t SegVMAddr,uint64_t SegVMSize) constructSegment() argument
/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp36 template <class ELFT> void ELFWriter<ELFT>::writePhdr(const Segment &Seg) {
38 Obj.ProgramHdrSegment.Offset + Seg.Index * sizeof(Elf_Phdr);
40 Phdr.p_type = Seg.Type; in writePhdr()
41 Phdr.p_flags = Seg.Flags; in writePhdr()
42 Phdr.p_offset = Seg.Offset; in writePhdr()
43 Phdr.p_vaddr = Seg.VAddr; in writePhdr()
44 Phdr.p_paddr = Seg.PAddr; in writePhdr()
45 Phdr.p_filesz = Seg.FileSize; in writePhdr()
46 Phdr.p_memsz = Seg.MemSize; in writePhdr()
47 Phdr.p_align = Seg in writePhdr()
39 writePhdr(const Segment & Seg) writePhdr() argument
347 Segment *Seg = Sec->ParentSegment; sectionPhysicalAddr() local
1219 sectionWithinSegment(const SectionBase & Sec,const Segment & Seg) sectionWithinSegment() argument
1468 Segment &Seg = Obj.addSegment(Data); readProgramHeaders() local
2080 for (auto &Seg : Obj.segments()) writePhdrs() local
[all...]
H A DELFObjcopy.cpp679 for (Segment &Seg : Obj.segments()) { in handleArgs()
680 if (Seg.Type == PT_NOTE) { in handleArgs()
824 for (Segment &Seg : Obj.segments()) { in writeOutput()
825 if (Seg.FileSize > 0) { in writeOutput()
827 Seg.PAddr > std::numeric_limits<uint64_t>::max() - in writeOutput()
831 "address 0x" + Twine::utohexstr(Seg.PAddr) + in writeOutput()
836 Seg.PAddr < std::numeric_limits<uint64_t>::min() - in executeObjcopyOnIHex()
840 "address 0x" + Twine::utohexstr(Seg.PAddr) + in executeObjcopyOnIHex()
845 Seg.PAddr += Config.ChangeSectionLMAValAll; in executeObjcopyOnIHex()
/llvm-project/llvm/tools/dsymutil/
H A DMachOUtils.cpp141 struct MachO::segment_command_64 adaptFrom32bits(MachO::segment_command Seg) { in adaptFrom32bits() argument
143 Seg64.cmd = Seg.cmd; in adaptFrom32bits()
144 Seg64.cmdsize = Seg.cmdsize; in adaptFrom32bits()
145 memcpy(Seg64.segname, Seg.segname, sizeof(Seg.segname)); in adaptFrom32bits()
146 Seg64.vmaddr = Seg.vmaddr; in adaptFrom32bits()
147 Seg64.vmsize = Seg.vmsize; in adaptFrom32bits()
148 Seg64.fileoff = Seg.fileoff; in adaptFrom32bits()
149 Seg64.filesize = Seg.filesize; in adaptFrom32bits()
150 Seg64.maxprot = Seg in adaptFrom32bits()
247 getSection(const object::MachOObjectFile & Obj,const MachO::segment_command & Seg,const object::MachOObjectFile::LoadCommandInfo & LCI,unsigned Idx) getSection() argument
254 getSection(const object::MachOObjectFile & Obj,const MachO::segment_command_64 & Seg,const object::MachOObjectFile::LoadCommandInfo & LCI,unsigned Idx) getSection() argument
[all...]
/llvm-project/llvm/lib/CodeGen/
H A DLiveInterval.cpp1190 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add()
1196 LR->addSegmentToSet(Seg); in add()
1201 if (!LastStart.isValid() || LastStart > Seg.start) { in add()
1210 LastStart = Seg.start; in add()
1212 // Advance ReadI until it ends after Seg.start. in add()
1214 if (ReadI != E && ReadI->end <= Seg.start) { in add()
1220 ReadI = WriteI = LR->find(Seg.start); in add()
1222 while (ReadI != E && ReadI->end <= Seg.start) in add()
1226 assert(ReadI == E || ReadI->end > Seg.start); in add()
1229 if (ReadI != E && ReadI->start <= Seg in add()
1168 add(LiveRange::Segment Seg) add() argument
[all...]
H A DLiveRegMatrix.cpp222 LiveRange::Segment Seg(Start, End, &valno); in checkInterference()
224 LR.addSegment(Seg); in checkInterference()
253 LiveRange::Segment Seg(Start, End, &valno);
255 LR.addSegment(Seg);
214 LiveRange::Segment Seg(Start, End, &valno); checkInterference() local
H A DLiveRangeCalc.cpp160 LiveRange::Segment &Seg = *std::prev(UB); in isDefOnEntry()
161 if (Seg.end > Begin) { in isDefOnEntry() local
166 if (LR.isUndefIn(Undefs, Seg.end, End)) in isDefOnEntry()
H A DVirtRegMap.cpp391 for (const auto &Seg : LI) { in readsUndefSubreg()
392 I = Indexes->getMBBLowerBound(I, Seg.start); in readsUndefSubreg()
393 for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) { in readsUndefSubreg()
365 for (const auto &Seg : LI) { addMBBLiveIns() local
/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp266 Segment(const Segment &Seg) = default;
267 Segment &operator=(const Segment &Seg) = default;
274 Block(Value *Val, int Len, int Pos) : Seg(Val, 0, Len), Pos(Pos) {} in Block()
276 : Seg(Val, Off, Len), Pos(Pos) {} in Block()
279 Segment Seg; // Value segment. member
399 OS << " @" << B.Pos << " [" << B.Seg.Start << ',' << B.Seg.Size << "] "; in operator <<()
400 if (B.Seg.Val == reinterpret_cast<const Value *>(&B)) { in operator <<()
401 OS << "(self:" << B.Seg.Val << ')'; in operator <<()
402 } else if (B.Seg in operator <<()
[all...]
H A DHexagonExpandCondsets.cpp415 for (auto &Seg : Range) { in updateDeadsInRange()
416 if (!Seg.start.isRegister()) in updateDeadsInRange()
418 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange()
421 PredDefs.push_back(Seg.start); in updateDeadsInRange()
469 for (auto &Seg : Range) { in updateDeadsInRange()
470 if (!Seg.start.isRegister()) in updateDeadsInRange()
472 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange()
475 if (P.second && Seg.end.isDead()) { in updateDeadsInRange()
486 for (auto &Seg : Range) { in updateDeadsInRange()
487 if (!Seg in updateDeadsInRange()
419 for (auto &Seg : Range) { updateDeadsInRange() local
473 for (auto &Seg : Range) { updateDeadsInRange() local
490 for (auto &Seg : Range) { updateDeadsInRange() local
[all...]
/llvm-project/llvm/include/llvm/CodeGen/
H A DLiveInterval.h631 auto Seg = segments.begin(), EndSeg = segments.end(); in findIndexesLiveAt() local
633 while (Idx != EndIdx && Seg != EndSeg) { in findIndexesLiveAt()
634 // if the Seg is lower find first segment that is above Idx using binary in findIndexesLiveAt()
636 if (Seg->end <= *Idx) { in findIndexesLiveAt()
637 Seg = in findIndexesLiveAt()
638 std::upper_bound(++Seg, EndSeg, *Idx, [=](auto V, const auto &S) { in findIndexesLiveAt()
641 if (Seg == EndSeg) in findIndexesLiveAt()
644 auto NotLessStart = std::lower_bound(Idx, EndIdx, Seg->start); in findIndexesLiveAt()
647 auto NotLessEnd = std::lower_bound(NotLessStart, EndIdx, Seg->end); in findIndexesLiveAt()
653 ++Seg; in findIndexesLiveAt()
[all...]
/llvm-project/llvm/lib/MC/
H A DMCWin64EH.cpp762 WinEH::FrameInfo::Segment *Seg, in checkARM64PackedEpilog() argument
765 if (Seg->Epilogs.size() != 1) in checkARM64PackedEpilog()
768 MCSymbol *Sym = Seg->Epilogs.begin()->first; in checkARM64PackedEpilog()
775 (uint32_t)(Seg->Offset + Seg->Length - Seg->Epilogs.begin()->second); in checkARM64PackedEpilog()
1082 WinEH::FrameInfo::Segment *Seg, in ARM64ProcessEpilogs() argument
1087 for (auto &I : Seg->Epilogs) in ARM64ProcessEpilogs()
1112 if (!Seg->HasProlog) in ARM64ProcessEpilogs()
1186 auto Seg = WinEH::FrameInfo::Segment( in ARM64FindSegmentsInFunction() local
1188 Seg.Epilogs = std::move(EpilogsInSegment); in ARM64FindSegmentsInFunction()
1189 info->Segments.push_back(Seg); in ARM64FindSegmentsInFunction()
[all …]
/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProfReader.h142 llvm::SmallVectorImpl<SegmentEntry> &Seg,
145 : SegmentInfo(Seg.begin(), Seg.end()), CallstackProfileData(Prof),
/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/
H A DDebuggerSupportPlugin.cpp133 Seg = &Builder.addSegment(""); in startSynthesis()
139 DSec.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
208 NDSP.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
318 typename MachOBuilder<MachOTraits>::Segment *Seg = nullptr;
312 typename MachOBuilder<MachOTraits>::Segment *Seg = nullptr; global() member in __anon5f69fc7b0111::MachODebugObjectSynthesizer
/llvm-project/llvm/unittests/ProfileData/
H A DMemProfTest.cpp159 auto Seg = makeSegments(); in TEST()
161 RawMemProfReader Reader(std::move(Symbolizer), Seg, Prof, CSM, in TEST()
394 auto Seg = makeSegments(); in TEST()
396 RawMemProfReader Reader(std::move(Symbolizer), Seg, Prof, CSM);
166 auto Seg = makeSegments(); TEST() local
447 auto Seg = makeSegments(); TEST() local

12