/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/JITLink/ |
H A D | JITLinkMemoryManager.cpp | 29 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in allocate() argument 30 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 31 return {static_cast<char *>(SegBlocks[Seg].base()), in allocate() 32 SegBlocks[Seg].allocatedSize()}; in allocate() 34 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in allocate() argument 35 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 36 return pointerToJITTargetAddress(SegBlocks[Seg].base()); in allocate() 89 const auto &Seg = KV.second; in allocate() local 91 if (Seg.getAlignment() > sys::Process::getPageSizeEstimate()) in allocate() 97 TotalSize += Seg.getContentSize(); in allocate() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-size/ |
H A D | llvm-size.cpp | 230 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); in printDarwinSectionSizes() local 231 outs() << "Segment " << Seg.segname << ": " in printDarwinSectionSizes() 232 << format(fmt.str().c_str(), Seg.vmsize); in printDarwinSectionSizes() 234 outs() << " (vmaddr 0x" << format("%" PRIx64, Seg.vmaddr) << " fileoff " in printDarwinSectionSizes() 235 << Seg.fileoff << ")"; in printDarwinSectionSizes() 237 total += Seg.vmsize; in printDarwinSectionSizes() 239 for (unsigned J = 0; J < Seg.nsects; ++J) { in printDarwinSectionSizes() 253 if (Seg.nsects != 0) in printDarwinSectionSizes() 256 MachO::segment_command Seg = MachO->getSegmentLoadCommand(Load); in printDarwinSectionSizes() local 257 uint64_t Seg_vmsize = Seg.vmsize; in printDarwinSectionSizes() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/MachO/ |
H A D | Object.cpp | 136 constructSegment(SegmentType &Seg, llvm::MachO::LoadCommandType CmdType, in constructSegment() argument 138 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment() 139 memset(&Seg, 0, sizeof(SegmentType)); in constructSegment() 140 Seg.cmd = CmdType; in constructSegment() 141 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment() 142 Seg.maxprot |= in constructSegment() 144 Seg.initprot |= in constructSegment() 146 Seg.vmaddr = SegVMAddr; in constructSegment() 147 Seg.vmsize = SegVMSize; in constructSegment()
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/ELF/ |
H A D | Object.cpp | 39 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 …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/ |
H A D | wasm2yaml.cpp | 329 WasmYAML::ElemSegment Seg; in dump() local 330 Seg.Flags = Segment.Flags; in dump() 331 Seg.TableNumber = Segment.TableNumber; in dump() 332 Seg.ElemKind = Segment.ElemKind; in dump() 333 Seg.Offset = Segment.Offset; in dump() 334 append_range(Seg.Functions, Segment.Functions); in dump() 335 ElemSec->Segments.push_back(Seg); in dump() 360 WasmYAML::DataSegment Seg; in dump() local 361 Seg.SectionOffset = Segment.SectionOffset; in dump() 362 Seg.InitFlags = Segment.Data.InitFlags; in dump() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/dsymutil/ |
H A D | MachOUtils.cpp | 121 struct MachO::segment_command_64 adaptFrom32bits(MachO::segment_command Seg) { in adaptFrom32bits() argument 123 Seg64.cmd = Seg.cmd; in adaptFrom32bits() 124 Seg64.cmdsize = Seg.cmdsize; in adaptFrom32bits() 125 memcpy(Seg64.segname, Seg.segname, sizeof(Seg.segname)); in adaptFrom32bits() 126 Seg64.vmaddr = Seg.vmaddr; in adaptFrom32bits() 127 Seg64.vmsize = Seg.vmsize; in adaptFrom32bits() 128 Seg64.fileoff = Seg.fileoff; in adaptFrom32bits() 129 Seg64.filesize = Seg.filesize; in adaptFrom32bits() 130 Seg64.maxprot = Seg.maxprot; in adaptFrom32bits() 131 Seg64.initprot = Seg.initprot; in adaptFrom32bits() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
H A D | HexagonVectorCombine.cpp | 187 Segment(const Segment &Seg) = default; 194 Block(Value *Val, int Len, int Pos) : Seg(Val, 0, Len), Pos(Pos) {} in Block() 196 : Seg(Val, Off, Len), Pos(Pos) {} in Block() 198 Segment Seg; // Value segment. member 278 OS << " @" << B.Pos << " [" << B.Seg.Start << ',' << B.Seg.Size << "] " in operator <<() 279 << *B.Seg.Val << '\n'; in operator <<() 334 int Max = Blocks[0].Pos + Blocks[0].Seg.Size; in extent() 337 Max = std::max(Max, Blocks[i].Pos + Blocks[i].Seg.Size); in extent() 346 int R = std::min(B.Pos + B.Seg.Size, Start + Length); // Right end+1. in section() 350 Section.Blocks.emplace_back(B.Seg.Val, B.Seg.Start + Off, R - L, L); in section() [all …]
|
H A D | HexagonExpandCondsets.cpp | 417 for (auto &Seg : Range) { in updateDeadsInRange() local 418 if (!Seg.start.isRegister()) in updateDeadsInRange() 420 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 423 PredDefs.push_back(Seg.start); in updateDeadsInRange() 471 for (auto &Seg : Range) { in updateDeadsInRange() local 472 if (!Seg.start.isRegister()) in updateDeadsInRange() 474 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 477 if (P.second && Seg.end.isDead()) { in updateDeadsInRange() 488 for (auto &Seg : Range) { in updateDeadsInRange() local 489 if (!Seg.start.isRegister() || !Range.liveAt(Seg.start.getPrevSlot())) in updateDeadsInRange() [all …]
|
/netbsd-src/external/apache2/llvm/dist/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.Opcode == wasm::WASM_OPCODE_I32_CONST) in printSectionHeaders() 183 W.printNumber("Offset", Seg.Offset.Value.Int32); in printSectionHeaders() 184 else if (Seg.Offset.Opcode == wasm::WASM_OPCODE_I64_CONST) in printSectionHeaders() 185 W.printNumber("Offset", Seg.Offset.Value.Int64); in printSectionHeaders()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | LiveInterval.cpp | 1179 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add() argument 1185 LR->addSegmentToSet(Seg); in add() 1190 if (!LastStart.isValid() || LastStart > Seg.start) { in add() 1199 LastStart = Seg.start; in add() 1203 if (ReadI != E && ReadI->end <= Seg.start) { in add() 1209 ReadI = WriteI = LR->find(Seg.start); in add() 1211 while (ReadI != E && ReadI->end <= Seg.start) in add() 1215 assert(ReadI == E || ReadI->end > Seg.start); in add() 1218 if (ReadI != E && ReadI->start <= Seg.start) { in add() 1219 assert(ReadI->valno == Seg.valno && "Cannot overlap different values"); in add() [all …]
|
H A D | LiveRegMatrix.cpp | 213 LiveRange::Segment Seg(Start, End, &valno); in checkInterference() local 215 LR.addSegment(Seg); in checkInterference()
|
H A D | LiveRangeCalc.cpp | 163 LiveRange::Segment &Seg = *std::prev(UB); in isDefOnEntry() local 164 if (Seg.end > Begin) { in isDefOnEntry() 169 if (LR.isUndefIn(Undefs, Seg.end, End)) in isDefOnEntry()
|
H A D | VirtRegMap.cpp | 349 for (const auto &Seg : LI) { in addMBBLiveIns() local 350 I = Indexes->advanceMBBIndex(I, Seg.start); in addMBBLiveIns() 351 for (; I != Indexes->MBBIndexEnd() && I->first < Seg.end; ++I) { in addMBBLiveIns()
|
H A D | SplitKit.cpp | 1238 const LiveRange::Segment *Seg = LR.getSegmentContaining(Def); in removeDeadSegment() local 1239 if (Seg == nullptr) in removeDeadSegment() 1241 if (Seg->end != Def.getDeadSlot()) in removeDeadSegment() 1244 LR.removeSegment(*Seg, true); in removeDeadSegment()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/Orc/ |
H A D | OrcRemoteTargetClient.h | 359 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in getWorkingMemory() argument 360 assert(HostSegBlocks.count(Seg) && "No allocation for segment"); in getWorkingMemory() 361 return {static_cast<char *>(HostSegBlocks[Seg].base()), in getWorkingMemory() 362 HostSegBlocks[Seg].allocatedSize()}; in getWorkingMemory() 365 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in getTargetMemory() argument 366 assert(TargetSegBlocks.count(Seg) && "No allocation for segment"); in getTargetMemory() 367 return pointerToJITTargetAddress(TargetSegBlocks[Seg].base()); in getTargetMemory() 417 const auto &Seg = KV.second; in allocateHostBlocks() local 419 uint64_t SegmentSize = Seg.getContentSize() + Seg.getZeroFillSize(); in allocateHostBlocks() 423 char *ZeroFillBegin = SlabAddr + Seg.getContentSize(); in allocateHostBlocks() [all …]
|
H A D | OrcRPCTargetProcessControl.h | 58 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in getWorkingMemory() argument 59 auto I = HostAllocs.find(Seg); in getWorkingMemory() 65 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in getTargetMemory() argument 66 auto I = TargetAllocs.find(Seg); in getTargetMemory()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
H A D | LiveInterval.h | 622 auto Seg = segments.begin(), EndSeg = segments.end(); in findIndexesLiveAt() local 624 while (Idx != EndIdx && Seg != EndSeg) { in findIndexesLiveAt() 627 if (Seg->end <= *Idx) { in findIndexesLiveAt() 628 Seg = std::upper_bound( in findIndexesLiveAt() 629 ++Seg, EndSeg, *Idx, in findIndexesLiveAt() 631 const std::remove_reference_t<decltype(*Seg)> &S) { in findIndexesLiveAt() 634 if (Seg == EndSeg) in findIndexesLiveAt() 637 auto NotLessStart = std::lower_bound(Idx, EndIdx, Seg->start); in findIndexesLiveAt() 640 auto NotLessEnd = std::lower_bound(NotLessStart, EndIdx, Seg->end); in findIndexesLiveAt() 646 ++Seg; in findIndexesLiveAt()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/JITLink/ |
H A D | JITLinkMemoryManager.h | 71 virtual MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) = 0; 75 virtual JITTargetAddress getTargetMemory(ProtectionFlags Seg) = 0;
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-jitlink/ |
H A D | llvm-jitlink.cpp | 354 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in allocate() argument 355 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 356 return {static_cast<char *>(SegBlocks[Seg].base()), in allocate() 357 SegBlocks[Seg].allocatedSize()}; in allocate() 359 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in allocate() argument 360 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 361 return pointerToJITTargetAddress(SegBlocks[Seg].base()) + in allocate() 395 auto &Seg = KV.second; in allocate() local 397 if (Seg.getAlignment() > PageSize) in allocate() 402 if (PageSize % Seg.getAlignment() != 0) in allocate() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-nm/ |
H A D | llvm-nm.cpp | 1252 MachO::segment_command Seg = MachO.getSegmentLoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local 1253 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO() 1254 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO() 1258 MachO::segment_command_64 Seg = MachO.getSegment64LoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local 1259 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO() 1260 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | JSON.h | 580 Path(Root &R) : Parent(nullptr), Seg(&R) {} in Path() 610 Segment Seg; variable 612 Path(const Path *Parent, Segment S) : Parent(Parent), Seg(S) {} in Path()
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objdump/ |
H A D | MachODump.cpp | 666 MachO::segment_command_64 Seg = O->getSegment64LoadCommand(Load); in PrintIndirectSymbols() local 667 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols() 694 MachO::segment_command Seg = O->getSegmentLoadCommand(Load); in PrintIndirectSymbols() local 695 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols() 1002 const MachO::segment_command_64 Seg = O->getSegment64LoadCommand(Load); in PrintRelocations() local 1003 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations() 1022 const MachO::segment_command Seg = O->getSegmentLoadCommand(Load); in PrintRelocations() local 1023 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations() 3006 MachO::segment_command_64 Seg = info->O->getSegment64LoadCommand(Load); in GuessCstringPointer() local 3007 for (unsigned J = 0; J < Seg.nsects; ++J) { in GuessCstringPointer() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | JSON.cpp | 210 Path::Root *R = P->Seg.root(); in report() 216 *It++ = P->Seg; in report()
|
/netbsd-src/external/bsd/file/dist/magic/magdir/ |
H A D | macintosh | 53 0 string Seg StuffIt Deluxe Segment (data) 263 >0 string Seg\ StuffIt segment
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/sancov/ |
H A D | sancov.cpp | 612 MachO::segment_command_64 Seg = O.getSegment64LoadCommand(Load); in findMachOIndirectCovFunctions() local 613 for (unsigned J = 0; J < Seg.nsects; ++J) { in findMachOIndirectCovFunctions()
|