| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.cpp | 31 auto &Seg = Segments[{Sec.getMemProt(), Sec.getMemDeallocPolicy()}]; in BasicLayout() local 34 Seg.ContentBlocks.push_back(B); in BasicLayout() 36 Seg.ZeroFillBlocks.push_back(B); in BasicLayout() 51 auto &Seg = KV.second; in BasicLayout() local 53 llvm::sort(Seg.ContentBlocks, CompareBlocks); in BasicLayout() 54 llvm::sort(Seg.ZeroFillBlocks, CompareBlocks); in BasicLayout() 56 for (auto *B : Seg.ContentBlocks) { in BasicLayout() 57 Seg.ContentSize = alignToBlock(Seg.ContentSize, *B); in BasicLayout() 58 Seg.ContentSize += B->getSize(); in BasicLayout() 59 Seg.Alignment = std::max(Seg.Alignment, Align(B->getAlignment())); in BasicLayout() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
| H A D | SimpleExecutorMemoryManager.cpp | 51 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 …]
|
| /openbsd-src/gnu/llvm/llvm/tools/obj2yaml/ |
| H A D | wasm2yaml.cpp | 333 WasmYAML::ElemSegment Seg; in dump() local 334 Seg.Flags = Segment.Flags; in dump() 335 Seg.TableNumber = Segment.TableNumber; in dump() 336 Seg.ElemKind = Segment.ElemKind; in dump() 337 Seg.Offset.Extended = Segment.Offset.Extended; in dump() 338 if (Seg.Offset.Extended) { in dump() 339 Seg.Offset.Body = yaml::BinaryRef(Segment.Offset.Body); in dump() 341 Seg.Offset.Inst = Segment.Offset.Inst; in dump() 343 append_range(Seg.Functions, Segment.Functions); in dump() 344 ElemSec->Segments.push_back(Seg); in dump() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCGenericRTDyldMemoryManager.cpp | 71 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.AG = 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 D | MapperJITLinkMemoryManager.cpp | 89 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()
|
| H A D | EPCGenericJITLinkMemoryManager.cpp | 151 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 = ExecutorAddr(Seg.Addr); in completeAllocation() 162 SegInfo.WorkingMem = Seg.WorkingMem; in completeAllocation()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-size/ |
| H A D | llvm-size.cpp | 223 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); in printDarwinSectionSizes() local 224 outs() << "Segment " << Seg.segname << ": " in printDarwinSectionSizes() 225 << format(fmt.str().c_str(), Seg.vmsize); in printDarwinSectionSizes() 227 outs() << " (vmaddr 0x" << format("%" PRIx64, Seg.vmaddr) << " fileoff " in printDarwinSectionSizes() 228 << Seg.fileoff << ")"; in printDarwinSectionSizes() 230 total += Seg.vmsize; in printDarwinSectionSizes() 232 for (unsigned J = 0; J < Seg.nsects; ++J) { in printDarwinSectionSizes() 246 if (Seg.nsects != 0) in printDarwinSectionSizes() 249 MachO::segment_command Seg = MachO->getSegmentLoadCommand(Load); in printDarwinSectionSizes() local 250 uint64_t Seg_vmsize = Seg.vmsize; in printDarwinSectionSizes() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/ |
| H A D | WasmDumper.cpp | 177 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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjCopy/MachO/ |
| H A D | MachOObject.cpp | 170 constructSegment(SegmentType &Seg, llvm::MachO::LoadCommandType CmdType, in constructSegment() argument 172 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment() 173 memset(&Seg, 0, sizeof(SegmentType)); in constructSegment() 174 Seg.cmd = CmdType; in constructSegment() 175 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment() 176 Seg.maxprot |= in constructSegment() 178 Seg.initprot |= in constructSegment() 180 Seg.vmaddr = SegVMAddr; in constructSegment() 181 Seg.vmsize = SegVMSize; in constructSegment()
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 37 template <class ELFT> void ELFWriter<ELFT>::writePhdr(const Segment &Seg) { in writePhdr() argument 39 Obj.ProgramHdrSegment.Offset + Seg.Index * sizeof(Elf_Phdr); in writePhdr() 41 Phdr.p_type = Seg.Type; in writePhdr() 42 Phdr.p_flags = Seg.Flags; in writePhdr() 43 Phdr.p_offset = Seg.Offset; in writePhdr() 44 Phdr.p_vaddr = Seg.VAddr; in writePhdr() 45 Phdr.p_paddr = Seg.PAddr; in writePhdr() 46 Phdr.p_filesz = Seg.FileSize; in writePhdr() 47 Phdr.p_memsz = Seg.MemSize; in writePhdr() 48 Phdr.p_align = Seg.Align; in writePhdr() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/dsymutil/ |
| H A D | MachOUtils.cpp | 124 struct MachO::segment_command_64 adaptFrom32bits(MachO::segment_command Seg) { in adaptFrom32bits() argument 126 Seg64.cmd = Seg.cmd; in adaptFrom32bits() 127 Seg64.cmdsize = Seg.cmdsize; in adaptFrom32bits() 128 memcpy(Seg64.segname, Seg.segname, sizeof(Seg.segname)); in adaptFrom32bits() 129 Seg64.vmaddr = Seg.vmaddr; in adaptFrom32bits() 130 Seg64.vmsize = Seg.vmsize; in adaptFrom32bits() 131 Seg64.fileoff = Seg.fileoff; in adaptFrom32bits() 132 Seg64.filesize = Seg.filesize; in adaptFrom32bits() 133 Seg64.maxprot = Seg.maxprot; in adaptFrom32bits() 134 Seg64.initprot = Seg.initprot; in adaptFrom32bits() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | LiveInterval.cpp | 1165 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add() argument 1171 LR->addSegmentToSet(Seg); in add() 1176 if (!LastStart.isValid() || LastStart > Seg.start) { in add() 1185 LastStart = Seg.start; in add() 1189 if (ReadI != E && ReadI->end <= Seg.start) { in add() 1195 ReadI = WriteI = LR->find(Seg.start); in add() 1197 while (ReadI != E && ReadI->end <= Seg.start) in add() 1201 assert(ReadI == E || ReadI->end > Seg.start); in add() 1204 if (ReadI != E && ReadI->start <= Seg.start) { in add() 1205 assert(ReadI->valno == Seg.valno && "Cannot overlap different values"); in add() [all …]
|
| H A D | LiveRegMatrix.cpp | 214 LiveRange::Segment Seg(Start, End, &valno); in checkInterference() local 216 LR.addSegment(Seg); in checkInterference()
|
| H A D | LiveRangeCalc.cpp | 161 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 D | VirtRegMap.cpp | 365 for (const auto &Seg : LI) { in addMBBLiveIns() local 366 I = Indexes->advanceMBBIndex(I, Seg.start); in addMBBLiveIns() 367 for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) { in addMBBLiveIns()
|
| H A D | SplitKit.cpp | 1232 const LiveRange::Segment *Seg = LR.getSegmentContaining(Def); in removeDeadSegment() local 1233 if (Seg == nullptr) in removeDeadSegment() 1235 if (Seg->end != Def.getDeadSlot()) in removeDeadSegment() 1238 LR.removeSegment(*Seg, true); in removeDeadSegment()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVectorCombine.cpp | 219 Segment(const Segment &Seg) = default; 220 Segment &operator=(const Segment &Seg) = default; 227 Block(Value *Val, int Len, int Pos) : Seg(Val, 0, Len), Pos(Pos) {} in Block() 229 : Seg(Val, Off, Len), Pos(Pos) {} in Block() 232 Segment Seg; // Value segment. member 319 OS << " @" << B.Pos << " [" << B.Seg.Start << ',' << B.Seg.Size << "] " in operator <<() 320 << *B.Seg.Val; in operator <<() 463 int Max = Blocks[0].Pos + Blocks[0].Seg.Size; in extent() 466 Max = std::max(Max, Blocks[i].Pos + Blocks[i].Seg.Size); in extent() 475 int R = std::min(B.Pos + B.Seg.Size, Start + Length); // Right end+1. in section() [all …]
|
| H A D | HexagonExpandCondsets.cpp | 418 for (auto &Seg : Range) { in updateDeadsInRange() local 419 if (!Seg.start.isRegister()) in updateDeadsInRange() 421 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 424 PredDefs.push_back(Seg.start); in updateDeadsInRange() 472 for (auto &Seg : Range) { in updateDeadsInRange() local 473 if (!Seg.start.isRegister()) in updateDeadsInRange() 475 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 478 if (P.second && Seg.end.isDead()) { in updateDeadsInRange() 489 for (auto &Seg : Range) { in updateDeadsInRange() local 490 if (!Seg.start.isRegister() || !Range.liveAt(Seg.start.getPrevSlot())) in updateDeadsInRange() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ProfileData/ |
| H A D | RawMemProfReader.h | 75 llvm::SmallVectorImpl<SegmentEntry> &Seg, 78 : Symbolizer(std::move(Sym)), SegmentInfo(Seg.begin(), Seg.end()), in Symbolizer()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | LiveInterval.h | 630 auto Seg = segments.begin(), EndSeg = segments.end(); in findIndexesLiveAt() local 632 while (Idx != EndIdx && Seg != EndSeg) { in findIndexesLiveAt() 635 if (Seg->end <= *Idx) { in findIndexesLiveAt() 636 Seg = in findIndexesLiveAt() 637 std::upper_bound(++Seg, EndSeg, *Idx, [=](auto V, const auto &S) { in findIndexesLiveAt() 640 if (Seg == EndSeg) in findIndexesLiveAt() 643 auto NotLessStart = std::lower_bound(Idx, EndIdx, Seg->start); in findIndexesLiveAt() 646 auto NotLessEnd = std::lower_bound(NotLessStart, EndIdx, Seg->end); in findIndexesLiveAt() 652 ++Seg; in findIndexesLiveAt()
|
| /openbsd-src/gnu/llvm/llvm/lib/MC/ |
| H A D | MCWin64EH.cpp | 754 WinEH::FrameInfo::Segment *Seg, in checkARM64PackedEpilog() argument 757 if (Seg->Epilogs.size() != 1) in checkARM64PackedEpilog() 760 MCSymbol *Sym = Seg->Epilogs.begin()->first; in checkARM64PackedEpilog() 767 (uint32_t)(Seg->Offset + Seg->Length - Seg->Epilogs.begin()->second); in checkARM64PackedEpilog() 1073 WinEH::FrameInfo::Segment *Seg, in ARM64ProcessEpilogs() argument 1078 for (auto &I : Seg->Epilogs) in ARM64ProcessEpilogs() 1103 if (!Seg->HasProlog) in ARM64ProcessEpilogs() 1177 auto Seg = WinEH::FrameInfo::Segment( in ARM64FindSegmentsInFunction() local 1179 Seg.Epilogs = std::move(EpilogsInSegment); in ARM64FindSegmentsInFunction() 1180 info->Segments.push_back(Seg); in ARM64FindSegmentsInFunction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-nm/ |
| H A D | llvm-nm.cpp | 1225 MachO::segment_command Seg = MachO.getSegmentLoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local 1226 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO() 1227 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO() 1231 MachO::segment_command_64 Seg = MachO.getSegment64LoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local 1232 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO() 1233 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | JSON.h | 642 Path(Root &R) : Parent(nullptr), Seg(&R) {} in Path() 672 Segment Seg; variable 674 Path(const Path *Parent, Segment S) : Parent(Parent), Seg(S) {} in Path()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-objdump/ |
| H A D | MachODump.cpp | 685 MachO::segment_command_64 Seg = O->getSegment64LoadCommand(Load); in PrintIndirectSymbols() local 686 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols() 713 MachO::segment_command Seg = O->getSegmentLoadCommand(Load); in PrintIndirectSymbols() local 714 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols() 1021 const MachO::segment_command_64 Seg = O->getSegment64LoadCommand(Load); in PrintRelocations() local 1022 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations() 1041 const MachO::segment_command Seg = O->getSegmentLoadCommand(Load); in PrintRelocations() local 1042 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations() 3263 MachO::segment_command_64 Seg = info->O->getSegment64LoadCommand(Load); in GuessCstringPointer() local 3264 for (unsigned J = 0; J < Seg.nsects; ++J) { in GuessCstringPointer() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | JSON.cpp | 215 Path::Root *R = P->Seg.root(); in report() 221 *It++ = P->Seg; in report()
|