Home
last modified time | relevance | path

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

12

/freebsd/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 …]
/freebsd/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 …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h345 for (auto &Seg : Segments) {
346 Seg.cmdsize +=
347 Seg.Sections.size() * sizeof(typename MachOTraits::Section);
348 Seg.nsects = Seg.Sections.size();
349 Offset += Seg.cmdsize;
358 for (auto &Seg : Segments) {
359 Seg.vmaddr = SegVMAddr;
360 Seg.fileoff = Offset;
361 for (auto &Sec : Seg.Sections) {
366 Sec->addr = SegVMAddr + Sec->offset - Seg.fileoff;
[all …]
/freebsd/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 DMapperJITLinkMemoryManager.cpp88 auto &Seg = KV.second; in allocate() local
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()
H A DEPCGenericJITLinkMemoryManager.cpp150 auto &Seg = KV.second; in completeAllocation() local
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()
/freebsd/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp219 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); in printDarwinSectionSizes() local
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() local
246 uint64_t Seg_vmsize = Seg.vmsize; in printDarwinSectionSizes()
[all …]
/freebsd/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 in printSectionHeaders()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp184 constructSegment(SegmentType &Seg, llvm::MachO::LoadCommandType CmdType, in constructSegment() argument
186 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment()
187 memset(&Seg, 0, sizeof(SegmentType)); in constructSegment()
188 Seg.cmd = CmdType; in constructSegment()
189 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment()
190 Seg.maxprot |= in constructSegment()
192 Seg.initprot |= in constructSegment()
194 Seg.vmaddr = SegVMAddr; in constructSegment()
195 Seg.vmsize = SegVMSize; in constructSegment()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp36 template <class ELFT> void ELFWriter<ELFT>::writePhdr(const Segment &Seg) { in writePhdr() argument
38 Obj.ProgramHdrSegment.Offset + Seg.Index * sizeof(Elf_Phdr); in writePhdr()
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.Align; in writePhdr()
[all …]
H A DELFObjcopy.cpp680 for (Segment &Seg : Obj.segments()) { in removeNotes()
681 if (Seg.Type == PT_NOTE) { in removeNotes()
826 for (Segment &Seg : Obj.segments()) { in handleArgs()
827 if (Seg.MemSize > 0) { in handleArgs()
829 Seg.PAddr > std::numeric_limits<uint64_t>::max() - in handleArgs()
833 "address 0x" + Twine::utohexstr(Seg.PAddr) + in handleArgs()
838 Seg.PAddr < std::numeric_limits<uint64_t>::min() - in handleArgs()
842 "address 0x" + Twine::utohexstr(Seg.PAddr) + in handleArgs()
847 Seg.PAddr += Config.ChangeSectionLMAValAll; in handleArgs()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveInterval.cpp1190 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add() argument
1196 LR->addSegmentToSet(Seg); in add()
1201 if (!LastStart.isValid() || LastStart > Seg.start) { in add()
1210 LastStart = 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.start) { in add()
1230 assert(ReadI->valno == Seg.valno && "Cannot overlap different values"); in add()
[all …]
H A DLiveRegMatrix.cpp222 LiveRange::Segment Seg(Start, End, &valno); in checkInterference() local
224 LR.addSegment(Seg); in checkInterference()
253 LiveRange::Segment Seg(Start, End, &valno); in checkInterferenceLanes() local
255 LR.addSegment(Seg); in checkInterferenceLanes()
H A DLiveRangeCalc.cpp160 LiveRange::Segment &Seg = *std::prev(UB); in isDefOnEntry() local
161 if (Seg.end > Begin) { in isDefOnEntry()
166 if (LR.isUndefIn(Undefs, Seg.end, End)) in isDefOnEntry()
H A DVirtRegMap.cpp435 for (const auto &Seg : LI) { in addMBBLiveIns() local
436 I = Indexes->getMBBLowerBound(I, Seg.start); in addMBBLiveIns()
437 for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) { in addMBBLiveIns()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp267 Segment(const Segment &Seg) = default;
268 Segment &operator=(const Segment &Seg) = default;
275 Block(Value *Val, int Len, int Pos) : Seg(Val, 0, Len), Pos(Pos) {} in Block()
277 : Seg(Val, Off, Len), Pos(Pos) {} in Block()
280 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.cpp402 for (auto &Seg : Range) { in updateDeadsInRange() local
403 if (!Seg.start.isRegister()) in updateDeadsInRange()
405 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange()
408 PredDefs.push_back(Seg.start); in updateDeadsInRange()
456 for (auto &Seg : Range) { in updateDeadsInRange() local
457 if (!Seg.start.isRegister()) in updateDeadsInRange()
459 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange()
462 if (P.second && Seg.end.isDead()) { in updateDeadsInRange()
473 for (auto &Seg : Range) { in updateDeadsInRange() local
474 if (!Seg.start.isRegister() || !Range.liveAt(Seg.start.getPrevSlot())) in updateDeadsInRange()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DLiveInterval.h634 auto Seg = segments.begin(), EndSeg = segments.end(); in findIndexesLiveAt() local
636 while (Idx != EndIdx && Seg != EndSeg) { in findIndexesLiveAt()
639 if (Seg->end <= *Idx) { in findIndexesLiveAt()
640 Seg = in findIndexesLiveAt()
641 std::upper_bound(++Seg, EndSeg, *Idx, [=](auto V, const auto &S) { in findIndexesLiveAt()
644 if (Seg == EndSeg) in findIndexesLiveAt()
647 auto NotLessStart = std::lower_bound(Idx, EndIdx, Seg->start); in findIndexesLiveAt()
650 auto NotLessEnd = std::lower_bound(NotLessStart, EndIdx, Seg->end); in findIndexesLiveAt()
656 ++Seg; in findIndexesLiveAt()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCWin64EH.cpp963 WinEH::FrameInfo::Segment *Seg, in checkARM64PackedEpilog() argument
966 if (Seg->Epilogs.size() != 1) in checkARM64PackedEpilog()
969 MCSymbol *Sym = Seg->Epilogs.begin()->first; in checkARM64PackedEpilog()
976 (uint32_t)(Seg->Offset + Seg->Length - Seg->Epilogs.begin()->second); in checkARM64PackedEpilog()
1288 WinEH::FrameInfo::Segment *Seg, in ARM64ProcessEpilogs() argument
1293 for (auto &I : Seg->Epilogs) in ARM64ProcessEpilogs()
1318 if (!Seg->HasProlog) in ARM64ProcessEpilogs()
1392 auto Seg = WinEH::FrameInfo::Segment( in ARM64FindSegmentsInFunction() local
1394 Seg.Epilogs = std::move(EpilogsInSegment); in ARM64FindSegmentsInFunction()
1395 info->Segments.push_back(Seg); in ARM64FindSegmentsInFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProfReader.h143 llvm::SmallVectorImpl<SegmentEntry> &Seg,
146 : SegmentInfo(Seg.begin(), Seg.end()), CallstackProfileData(Prof),
/freebsd/contrib/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; member in __anon8485bb280111::MachODebugObjectSynthesizer
/freebsd/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp1248 MachO::segment_command Seg = MachO.getSegmentLoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local
1249 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO()
1250 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO()
1254 MachO::segment_command_64 Seg = MachO.getSegment64LoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local
1255 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO()
1256 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86EncodingOptimization.cpp387 MCOperand Seg = MI.getOperand(AddrBase + X86::AddrSegmentReg); in optimizeMOV() local
391 MI.addOperand(Seg); in optimizeMOV()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DJSON.h674 Path(Root &R) : Parent(nullptr), Seg(&R) {} in Path()
704 Segment Seg; variable
706 Path(const Path *Parent, Segment S) : Parent(Parent), Seg(S) {} in Path()
/freebsd/stand/i386/cdboot/
H A Dcdboot.S560 edd_addr: .word 0x0,0x0 # Seg:Off

12