Home
last modified time | relevance | path

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

12

/src/contrib/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.ContentSize += B->getSize(); in BasicLayout()
60 Seg.Alignment = std::max(Seg.Alignment, Align(B->getAlignment())); in BasicLayout()
[all …]
/src/contrib/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 …]
/src/contrib/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.Sections) {
371 Sec->addr = SegVMAddr + Sec->offset - Seg.fileoff;
[all …]
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DEPCGenericRTDyldMemoryManager.cpp71 auto &Seg = Unmapped.back().CodeAllocs; in allocateCodeSection() local
72 Seg.emplace_back(Size, Alignment); in allocateCodeSection()
74 alignAddr(Seg.back().Contents.get(), Align(Alignment))); in allocateCodeSection()
88 auto &Seg = in allocateDataSection() local
91 Seg.emplace_back(Size, Alignment); in allocateDataSection()
93 alignAddr(Seg.back().Contents.get(), Align(Alignment))); in allocateDataSection()
237 auto &Seg = FR.Segments.back(); in finalizeMemory() local
238 Seg.RAG = SegMemProts[I]; in finalizeMemory()
239 Seg.Addr = RemoteAddrs[I]->Start; in finalizeMemory()
241 Seg.Size = alignTo(Seg.Size, SecAlloc.Align); in finalizeMemory()
[all …]
H A DEPCGenericJITLinkMemoryManager.cpp151 auto &Seg = KV.second; in completeAllocation() local
153 Seg.Addr = NextSegAddr; in completeAllocation()
154 KV.second.WorkingMem = BL.getGraph().allocateBuffer(Seg.ContentSize).data(); in completeAllocation()
156 alignTo(Seg.ContentSize + Seg.ZeroFillSize, EPC.getPageSize())); in completeAllocation()
159 SegInfo.ContentSize = Seg.ContentSize; in completeAllocation()
160 SegInfo.ZeroFillSize = Seg.ZeroFillSize; in completeAllocation()
161 SegInfo.Addr = Seg.Addr; in completeAllocation()
162 SegInfo.WorkingMem = Seg.WorkingMem; in completeAllocation()
H A DMapperJITLinkMemoryManager.cpp89 auto &Seg = KV.second; in allocate() local
91 auto TotalSize = Seg.ContentSize + Seg.ZeroFillSize; in allocate()
93 Seg.Addr = NextSegAddr; in allocate()
94 Seg.WorkingMem = Mapper->prepare(NextSegAddr, TotalSize); in allocate()
99 SI.Offset = Seg.Addr - Result->Start; in allocate()
100 SI.ContentSize = Seg.ContentSize; in allocate()
101 SI.ZeroFillSize = Seg.ZeroFillSize; in allocate()
103 SI.WorkingMem = Seg.WorkingMem; in allocate()
/src/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp215 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); in printDarwinSectionSizes() local
216 outs() << "Segment " << Seg.segname << ": " in printDarwinSectionSizes()
217 << format(fmt.str().c_str(), Seg.vmsize); in printDarwinSectionSizes()
219 outs() << " (vmaddr 0x" << format("%" PRIx64, Seg.vmaddr) << " fileoff " in printDarwinSectionSizes()
220 << Seg.fileoff << ")"; in printDarwinSectionSizes()
222 total += Seg.vmsize; in printDarwinSectionSizes()
224 for (unsigned J = 0; J < Seg.nsects; ++J) { in printDarwinSectionSizes()
238 if (Seg.nsects != 0) in printDarwinSectionSizes()
241 MachO::segment_command Seg = MachO->getSegmentLoadCommand(Load); in printDarwinSectionSizes() local
242 uint64_t Seg_vmsize = Seg.vmsize; in printDarwinSectionSizes()
[all …]
/src/contrib/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 …]
/src/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp171 constructSegment(SegmentType &Seg, llvm::MachO::LoadCommandType CmdType, in constructSegment() argument
173 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment()
174 memset(&Seg, 0, sizeof(SegmentType)); in constructSegment()
175 Seg.cmd = CmdType; in constructSegment()
176 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment()
177 Seg.maxprot |= in constructSegment()
179 Seg.initprot |= in constructSegment()
181 Seg.vmaddr = SegVMAddr; in constructSegment()
182 Seg.vmsize = SegVMSize; in constructSegment()
/src/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp39 template <class ELFT> void ELFWriter<ELFT>::writePhdr(const Segment &Seg) { in writePhdr() argument
41 Obj.ProgramHdrSegment.Offset + Seg.Index * sizeof(Elf_Phdr); in writePhdr()
43 Phdr.p_type = Seg.Type; in writePhdr()
44 Phdr.p_flags = Seg.Flags; in writePhdr()
45 Phdr.p_offset = Seg.Offset; in writePhdr()
46 Phdr.p_vaddr = Seg.VAddr; in writePhdr()
47 Phdr.p_paddr = Seg.PAddr; in writePhdr()
48 Phdr.p_filesz = Seg.FileSize; in writePhdr()
49 Phdr.p_memsz = Seg.MemSize; in writePhdr()
50 Phdr.p_align = Seg.Align; in writePhdr()
[all …]
H A DELFObjcopy.cpp723 for (Segment &Seg : Obj.segments()) { in handleArgs()
724 if (Seg.FileSize > 0) { in handleArgs()
726 Seg.PAddr > std::numeric_limits<uint64_t>::max() - in handleArgs()
730 "address 0x" + Twine::utohexstr(Seg.PAddr) + in handleArgs()
735 Seg.PAddr < std::numeric_limits<uint64_t>::min() - in handleArgs()
739 "address 0x" + Twine::utohexstr(Seg.PAddr) + in handleArgs()
744 Seg.PAddr += Config.ChangeSectionLMAValAll; in handleArgs()
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveInterval.cpp1168 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add() argument
1174 LR->addSegmentToSet(Seg); in add()
1179 if (!LastStart.isValid() || LastStart > Seg.start) { in add()
1188 LastStart = Seg.start; in add()
1192 if (ReadI != E && ReadI->end <= Seg.start) { in add()
1198 ReadI = WriteI = LR->find(Seg.start); in add()
1200 while (ReadI != E && ReadI->end <= Seg.start) in add()
1204 assert(ReadI == E || ReadI->end > Seg.start); in add()
1207 if (ReadI != E && ReadI->start <= Seg.start) { in add()
1208 assert(ReadI->valno == Seg.valno && "Cannot overlap different values"); in add()
[all …]
H A DLiveRegMatrix.cpp214 LiveRange::Segment Seg(Start, End, &valno); in checkInterference() local
216 LR.addSegment(Seg); in checkInterference()
H A DLiveRangeCalc.cpp161 LiveRange::Segment &Seg = *std::prev(UB); in isDefOnEntry() local
162 if (Seg.end > Begin) { in isDefOnEntry()
167 if (LR.isUndefIn(Undefs, Seg.end, End)) in isDefOnEntry()
H A DVirtRegMap.cpp365 for (const auto &Seg : LI) { in addMBBLiveIns() local
366 I = Indexes->getMBBLowerBound(I, Seg.start); in addMBBLiveIns()
367 for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) { in addMBBLiveIns()
/src/contrib/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
400 OS << " @" << B.Pos << " [" << B.Seg.Start << ',' << B.Seg.Size << "] "; in operator <<()
401 if (B.Seg.Val == reinterpret_cast<const Value *>(&B)) { in operator <<()
402 OS << "(self:" << B.Seg.Val << ')'; in operator <<()
403 } else if (B.Seg.Val != nullptr) { in operator <<()
404 OS << *B.Seg.Val; in operator <<()
[all …]
H A DHexagonExpandCondsets.cpp419 for (auto &Seg : Range) { in updateDeadsInRange() local
420 if (!Seg.start.isRegister()) in updateDeadsInRange()
422 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange()
425 PredDefs.push_back(Seg.start); in updateDeadsInRange()
473 for (auto &Seg : Range) { in updateDeadsInRange() local
474 if (!Seg.start.isRegister()) in updateDeadsInRange()
476 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange()
479 if (P.second && Seg.end.isDead()) { in updateDeadsInRange()
490 for (auto &Seg : Range) { in updateDeadsInRange() local
491 if (!Seg.start.isRegister() || !Range.liveAt(Seg.start.getPrevSlot())) in updateDeadsInRange()
[all …]
/src/contrib/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()
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()
/src/contrib/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 …]
/src/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProfReader.h170 llvm::SmallVectorImpl<SegmentEntry> &Seg,
173 : SegmentInfo(Seg.begin(), Seg.end()), CallstackProfileData(Prof),
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/
H A DDebuggerSupportPlugin.cpp137 Seg = &Builder.addSegment(""); in startSynthesis()
143 DSec.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
202 NDSP.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
312 typename MachOBuilder<MachOTraits>::Segment *Seg = nullptr; member in __anon35c4419d0111::MachODebugObjectSynthesizer
/src/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp1246 MachO::segment_command Seg = MachO.getSegmentLoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local
1247 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO()
1248 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO()
1252 MachO::segment_command_64 Seg = MachO.getSegment64LoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local
1253 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO()
1254 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO()
/src/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86EncodingOptimization.cpp386 MCOperand Seg = MI.getOperand(AddrBase + X86::AddrSegmentReg); in optimizeMOV() local
390 MI.addOperand(Seg); in optimizeMOV()
/src/contrib/llvm-project/llvm/include/llvm/Support/
H A DJSON.h665 Path(Root &R) : Parent(nullptr), Seg(&R) {} in Path()
695 Segment Seg; variable
697 Path(const Path *Parent, Segment S) : Parent(Parent), Seg(S) {} in Path()
/src/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DMachODump.cpp659 MachO::segment_command_64 Seg = O->getSegment64LoadCommand(Load); in PrintIndirectSymbols() local
660 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols()
687 MachO::segment_command Seg = O->getSegmentLoadCommand(Load); in PrintIndirectSymbols() local
688 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols()
995 const MachO::segment_command_64 Seg = O->getSegment64LoadCommand(Load); in PrintRelocations() local
996 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations()
1015 const MachO::segment_command Seg = O->getSegmentLoadCommand(Load); in PrintRelocations() local
1016 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations()
3225 MachO::segment_command_64 Seg = info->O->getSegment64LoadCommand(Load); in GuessCstringPointer() local
3226 for (unsigned J = 0; J < Seg.nsects; ++J) { in GuessCstringPointer()
[all …]

12