Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp58 Seg.ContentSize = alignToBlock(Seg.ContentSize, *B); in BasicLayout()
60 Seg.Alignment = std::max(Seg.Alignment, Align(B->getAlignment())); in BasicLayout()
67 Seg.Alignment = std::max(Seg.Alignment, Align(B->getAlignment())); in BasicLayout()
69 Seg.ZeroFillSize = SegEndOffset - Seg.ContentSize; in BasicLayout()
106 assert(!(Seg.ContentBlocks.empty() && Seg.ZeroFillBlocks.empty()) && in apply()
111 Seg.Addr = alignToBlock(Seg.Addr, *B); in apply()
112 Seg.NextWorkingMemOffset = alignToBlock(Seg.NextWorkingMemOffset, *B); in apply()
123 {Seg.WorkingMem + Seg.NextWorkingMemOffset, B->getSize()}); in apply()
129 Seg.Addr = alignToBlock(Seg.Addr, *B); in apply()
310 alignTo(Seg.ContentSize + Seg.ZeroFillSize, MemMgr.PageSize); in applyProtections()
[all …]
/freebsd-14.2/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()
128 char *Mem = Seg.Addr.toPtr<char *>(); in finalize()
129 if (!Seg.Content.empty()) in finalize()
130 memcpy(Mem, Seg.Content.data(), Seg.Content.size()); in finalize()
131 memset(Mem + Seg.Content.size(), 0, Seg.Size - Seg.Content.size()); in finalize()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h350 for (auto &Seg : Segments) {
351 Seg.cmdsize +=
353 Seg.nsects = Seg.Sections.size();
354 Offset += Seg.cmdsize;
363 for (auto &Seg : Segments) {
364 Seg.vmaddr = SegVMAddr;
365 Seg.fileoff = Offset;
379 SegVMAddr += Seg.vmsize;
390 for (auto &Seg : Segments) {
478 for (auto &Seg : Segments)
[all …]
/freebsd-14.2/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()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp220 << Seg.fileoff << ")"; in printDarwinSectionSizes()
222 total += Seg.vmsize; in printDarwinSectionSizes()
238 if (Seg.nsects != 0) in printDarwinSectionSizes()
249 total += Seg.vmsize; in printDarwinSectionSizes()
266 if (Seg.nsects != 0) in printDarwinSectionSizes()
301 total_text += Seg.vmsize; in printDarwinSegmentSizes()
303 total_data += Seg.vmsize; in printDarwinSegmentSizes()
305 total_objc += Seg.vmsize; in printDarwinSegmentSizes()
327 total_text += Seg.vmsize; in printDarwinSegmentSizes()
329 total_data += Seg.vmsize; in printDarwinSegmentSizes()
[all …]
/freebsd-14.2/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 …]
/freebsd-14.2/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp41 Phdr.p_type = Seg.Type; in writePhdr()
329 if (Seg && Seg->Type != ELF::PT_LOAD) in sectionPhysicalAddr()
330 Seg = nullptr; in sectionPhysicalAddr()
331 return Seg ? Seg->PAddr + Sec->OriginalOffset - Seg->OriginalOffset in sectionPhysicalAddr()
1214 Seg.VAddr + Seg.MemSize >= Sec.Addr + SecSize; in sectionWithinSegment()
1218 Seg.Offset + Seg.FileSize >= Sec.OriginalOffset + SecSize; in sectionWithinSegment()
2042 writePhdr(Seg); in writePhdrs()
2289 Seg->Offset = in layoutSegments()
2292 Seg->Offset = in layoutSegments()
2295 Offset = std::max(Offset, Seg->Offset + Seg->FileSize); in layoutSegments()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveInterval.cpp1174 LR->addSegmentToSet(Seg); in add()
1188 LastStart = Seg.start; in add()
1198 ReadI = WriteI = LR->find(Seg.start); in add()
1210 if (ReadI->end >= Seg.end) in add()
1213 Seg.start = ReadI->start; in add()
1219 Seg.end = std::max(Seg.end, ReadI->end); in add()
1225 Seg.start = Spills.back().start; in add()
1226 Seg.end = std::max(Spills.back().end, Seg.end); in add()
1238 *WriteI++ = Seg; in add()
1244 LR->segments.push_back(Seg); 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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp400 OS << " @" << B.Pos << " [" << B.Seg.Start << ',' << B.Seg.Size << "] "; in operator <<()
404 OS << *B.Seg.Val; in operator <<()
596 Section.Blocks.emplace_back(B.Seg.Val, B.Seg.Start + Off, R - L, L); in section()
1140 ASpan.Blocks[Index].Seg.Val = in realignLoadGroup()
1178 EarliestUser[S.Seg.Val], earliestUser(B.Seg.Val->uses()), isEarlier); in realignLoadGroup()
1275 if (S.Seg.Val != nullptr) in realignLoadGroup()
1290 HVC.insertb(Builder, Accum, Pay, S->Seg.Start, S->Seg.Size, S->Pos); in realignLoadGroup()
1345 S.Seg.Start, S.Seg.Size, S.Pos); in realignStoreGroup()
1349 S.Seg.Start, S.Seg.Size, S.Pos); in realignStoreGroup()
1366 Value *PrevV = ASpanV[Index - 1].Seg.Val, *ThisV = ASpanV[Index].Seg.Val; in realignStoreGroup()
[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 …]
/freebsd-14.2/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCWin64EH.cpp765 if (Seg->Epilogs.size() != 1) in checkARM64PackedEpilog()
775 (uint32_t)(Seg->Offset + Seg->Length - Seg->Epilogs.begin()->second); in checkARM64PackedEpilog()
1087 for (auto &I : Seg->Epilogs) in ARM64ProcessEpilogs()
1112 if (!Seg->HasProlog) in ARM64ProcessEpilogs()
1186 auto Seg = WinEH::FrameInfo::Segment( in ARM64FindSegmentsInFunction() local
1189 info->Segments.push_back(Seg); in ARM64FindSegmentsInFunction()
1215 Seg.Symbol = Label; in ARM64EmitUnwindInfoForSegment()
1217 if (Seg.Offset == 0) in ARM64EmitUnwindInfoForSegment()
1220 bool HasProlog = Seg.HasProlog; in ARM64EmitUnwindInfoForSegment()
1309 uint32_t EpilogOffset = (uint32_t)(Seg.Epilogs[EpilogStart] - Seg.Offset); in ARM64EmitUnwindInfoForSegment()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DRawMemProfReader.h147 llvm::SmallVectorImpl<SegmentEntry> &Seg,
150 : SegmentInfo(Seg.begin(), Seg.end()), CallstackProfileData(Prof),
/freebsd-14.2/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 __anonc03b2a1e0111::MachODebugObjectSynthesizer
/freebsd-14.2/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86EncodingOptimization.cpp363 MCOperand Seg = MI.getOperand(AddrBase + X86::AddrSegmentReg); in optimizeMOV() local
367 MI.addOperand(Seg); in optimizeMOV()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DJSON.h663 Path(Root &R) : Parent(nullptr), Seg(&R) {} in Path()
693 Segment Seg; variable
695 Path(const Path *Parent, Segment S) : Parent(Parent), Seg(S) {} in Path()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DMachODump.cpp660 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols()
688 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols()
996 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations()
1016 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations()
3226 for (unsigned J = 0; J < Seg.nsects; ++J) { in GuessCstringPointer()
3247 for (unsigned J = 0; J < Seg.nsects; ++J) { in GuessCstringPointer()
3282 for (unsigned J = 0; J < Seg.nsects; ++J) { in GuessIndirectSymbol()
10169 if (Seg.fileoff == 0 && Seg.filesize != 0) { in printMachOExportsTrie()
10170 BaseSegmentAddress = Seg.vmaddr; in printMachOExportsTrie()
10175 if (Seg.fileoff == 0 && Seg.filesize != 0) { in printMachOExportsTrie()
[all …]
/freebsd-14.2/stand/i386/cdboot/
H A Dcdboot.S560 edd_addr: .word 0x0,0x0 # Seg:Off

12