| /freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.cpp | 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() 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 97 TotalSize += Seg.getContentSize(); in allocate() 98 TotalSize += Seg.getZeroFillSize(); in allocate() 112 const auto &Seg = KV.second; in allocate() local 114 uint64_t SegmentSize = alignTo(Seg.getContentSize() + Seg.getZeroFillSize(), in allocate() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-size/ |
| H A D | llvm-size.cpp | 225 << Seg.fileoff << ")"; in printDarwinSectionSizes() 227 total += Seg.vmsize; in printDarwinSectionSizes() 243 if (Seg.nsects != 0) in printDarwinSectionSizes() 254 total += Seg.vmsize; in printDarwinSectionSizes() 271 if (Seg.nsects != 0) in printDarwinSectionSizes() 306 total_text += Seg.vmsize; in printDarwinSegmentSizes() 308 total_data += Seg.vmsize; in printDarwinSegmentSizes() 310 total_objc += Seg.vmsize; in printDarwinSegmentSizes() 332 total_text += Seg.vmsize; in printDarwinSegmentSizes() 334 total_data += Seg.vmsize; in printDarwinSegmentSizes() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/ |
| H A D | Object.cpp | 138 constructSegment(SegmentType &Seg, llvm::MachO::LoadCommandType CmdType, in constructSegment() argument 140 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment() 141 memset(&Seg, 0, sizeof(SegmentType)); in constructSegment() 142 Seg.cmd = CmdType; in constructSegment() 143 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment() 144 Seg.maxprot |= in constructSegment() 146 Seg.initprot |= in constructSegment() 148 Seg.vmaddr = SegVMAddr; in constructSegment() 149 Seg.vmsize = SegVMSize; in constructSegment()
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/ELF/ |
| H A D | Object.cpp | 41 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() 1226 Seg.VAddr + Seg.MemSize >= Sec.Addr + SecSize; in sectionWithinSegment() 1230 Seg.Offset + Seg.FileSize >= Sec.OriginalOffset + SecSize; in sectionWithinSegment() 2045 writePhdr(Seg); in writePhdrs() 2240 Seg->Offset = in layoutSegments() 2243 Seg->Offset = in layoutSegments() 2246 Offset = std::max(Offset, Seg->Offset + Seg->FileSize); in layoutSegments() [all …]
|
| H A D | Object.h | 331 void writePhdr(const Segment &Seg);
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| H A D | ELFDumper.cpp | 1381 StringRef Seg = segmentTypeToString(Arch, Type); in getGNUPtType() local 1382 if (Seg.empty()) in getGNUPtType() 1386 if (Seg.startswith("PT_ARM_")) in getGNUPtType() 1387 return Seg.drop_front(7).str(); in getGNUPtType() 1390 if (Seg.startswith("PT_MIPS_")) in getGNUPtType() 1391 return Seg.drop_front(8).str(); in getGNUPtType() 1394 assert(Seg.startswith("PT_")); in getGNUPtType() 1395 return Seg.drop_front(3).str(); in getGNUPtType()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVectorCombine.cpp | 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 <<() 350 Section.Blocks.emplace_back(B.Seg.Val, B.Seg.Start + Off, R - L, L); in section() 365 Values[i] = Blocks[i].Seg.Val; in values() 805 ASpan[j].Seg.Val = HVC.vralignb(Builder, ASpan[j].Seg.Val, in realignGroup() 816 HVC.insertb(Builder, Accum, Pay, S.Seg.Start, S.Seg.Size, S.Pos); in realignGroup() 857 S.Seg.Start, S.Seg.Size, S.Pos); in realignGroup() 859 S.Seg.Start, S.Seg.Size, S.Pos); in realignGroup() 868 ASpanV[j - 1].Seg.Val = HVC.vlalignb(Builder, ASpanV[j - 1].Seg.Val, in realignGroup() [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 …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | LiveInterval.cpp | 1185 LR->addSegmentToSet(Seg); in add() 1199 LastStart = Seg.start; in add() 1209 ReadI = WriteI = LR->find(Seg.start); in add() 1221 if (ReadI->end >= Seg.end) in add() 1224 Seg.start = ReadI->start; in add() 1230 Seg.end = std::max(Seg.end, ReadI->end); in add() 1236 Seg.start = Spills.back().start; in add() 1237 Seg.end = std::max(Spills.back().end, Seg.end); in add() 1249 *WriteI++ = Seg; in add() 1255 LR->segments.push_back(Seg); 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 | 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 | 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()
|
| H A D | RegisterCoalescer.cpp | 1647 LiveRange::Segment *Seg = DstLI.getSegmentContaining(RegIndex); in eliminateUndefCopy() local 1648 assert(Seg != nullptr && "No segment for defining instruction"); in eliminateUndefCopy() 1649 if (VNInfo *V = DstLI.getVNInfoAt(Seg->end)) { in eliminateUndefCopy()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | OrcRemoteTargetClient.h | 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 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() 424 memset(ZeroFillBegin, 0, Seg.getZeroFillSize()); in allocateHostBlocks() 502 const auto &Seg = KV.second; in calcTotalAllocSize() local 504 if (Seg.getAlignment() > TargetPageSize) in calcTotalAllocSize() 510 TotalSize += Seg.getContentSize(); in calcTotalAllocSize() [all …]
|
| H A D | OrcRPCExecutorProcessControl.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()
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/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;
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-nm/ |
| H A D | llvm-nm.cpp | 1137 MachO::segment_command Seg = MachO.getSegmentLoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local 1138 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO() 1139 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO() 1143 MachO::segment_command_64 Seg = MachO.getSegment64LoadCommand(Command); in dumpSymbolsFromDLInfoMachO() local 1144 if (Seg.fileoff == 0 && Seg.filesize != 0) { in dumpSymbolsFromDLInfoMachO() 1145 BaseSegmentAddress = Seg.vmaddr; in dumpSymbolsFromDLInfoMachO()
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | MachODump.cpp | 667 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols() 695 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintIndirectSymbols() 1003 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations() 1023 for (unsigned J = 0; J < Seg.nsects; ++J) { in PrintRelocations() 3007 for (unsigned J = 0; J < Seg.nsects; ++J) { in GuessCstringPointer() 3028 for (unsigned J = 0; J < Seg.nsects; ++J) { in GuessCstringPointer() 3063 for (unsigned J = 0; J < Seg.nsects; ++J) { in GuessIndirectSymbol() 10259 if (Seg.fileoff == 0 && Seg.filesize != 0) { in printMachOExportsTrie() 10260 BaseSegmentAddress = Seg.vmaddr; in printMachOExportsTrie() 10265 if (Seg.fileoff == 0 && Seg.filesize != 0) { in printMachOExportsTrie() [all …]
|
| /freebsd-13.1/stand/i386/cdboot/ |
| H A D | cdboot.S | 562 edd_addr: .word 0x0,0x0 # Seg:Off
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | JSON.cpp | 210 Path::Root *R = P->Seg.root(); in report() 216 *It++ = P->Seg; in report()
|
| /freebsd-13.1/contrib/file/magic/Magdir/ |
| H A D | macintosh | 53 0 string Seg StuffIt Deluxe Segment (data) 255 >0 string Seg\ StuffIt segment
|