/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
H A D | ExecutorSharedMemoryMapperService.cpp | 148 for (auto &Segment : FR.Segments) { in initialize() local 149 if (Segment.Addr < MinAddr) in initialize() 150 MinAddr = Segment.Addr; in initialize() 158 if ((Segment.RAG.Prot & MemProt::Read) == MemProt::Read) in initialize() 160 if ((Segment.RAG.Prot & MemProt::Write) == MemProt::Write) in initialize() 162 if ((Segment.RAG.Prot & MemProt::Exec) == MemProt::Exec) in initialize() 165 if (mprotect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt)) in initialize() 171 DWORD NativeProt = getWindowsProtectionFlags(Segment.RAG.Prot); in initialize() 173 if (!VirtualProtect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt, in initialize() 179 if ((Segment.RAG.Prot & MemProt::Exec) == MemProt::Exec) in initialize() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LiveInterval.cpp | 15 // individual segment is represented as an instance of LiveRange::Segment, 73 using Segment = LiveRange::Segment; typedef in __anon418b83490111::CalcLiveRangeUtilBase 95 impl().insertAtEnd(Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 99 Segment *S = segmentAt(I); in createDeadDef() 116 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 124 impl().findInsertPos(Segment(Use.getPrevSlot(), Use, nullptr)); in extendInBlock() 140 iterator I = impl().findInsertPos(Segment(BeforeUse, Use, nullptr)); in extendInBlock() 160 Segment *S = segmentAt(I); in extendSegmentEndTo() 188 Segment * in extendSegmentStartTo() [all...] |
H A D | LiveIntervals.cpp | 384 LR.addSegment(LiveRange::Segment(Def, Def.getDeadSlot(), VNI)); in createSegmentsForValues() 442 Segments.addSegment(LiveRange::Segment(BlockStart, Idx, VNI)); in extendSegmentsToUses() 624 const LiveRange::Segment *Segment = SR.getSegmentContaining(VNI->def); in shrinkToUses() local 625 assert(Segment != nullptr && "Missing segment for VNI"); in shrinkToUses() 626 if (Segment->end != VNI->def.getDeadSlot()) in shrinkToUses() 633 SR.removeSegment(*Segment); in shrinkToUses() 785 for (const LiveRange::Segment &Segment : SR.segments) { in addKillFlags() local 786 if (Segment.start >= RI->end) in addKillFlags() 788 if (Segment.end == RI->end) { in addKillFlags() 888 LiveRange::Segment [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | LiveInterval.h | 162 struct Segment { struct 168 Segment() = default; argument 170 Segment(SlotIndex S, SlotIndex E, VNInfo *V) in Segment() argument 186 bool operator<(const Segment &Other) const { argument 189 bool operator==(const Segment &Other) const { 193 bool operator!=(const Segment &Other) const { 200 using Segments = SmallVector<Segment, 2>; 209 using SegmentSet = std::set<Segment>; 262 for (const Segment &S : Other.segments) in assign() 263 segments.push_back(Segment(S.start, S.end, valnos[S.valno->id])); in assign() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | MemoryMapper.cpp | 72 for (auto &Segment : AI.Segments) { in initialize() local 73 auto Base = AI.MappingBase + Segment.Offset; in initialize() 74 auto Size = Segment.ContentSize + Segment.ZeroFillSize; in initialize() 82 std::memset((Base + Segment.ContentSize).toPtr<void *>(), 0, in initialize() 83 Segment.ZeroFillSize); in initialize() 87 toSysMemoryProtectionFlags(Segment.AG.getMemProt()))) { in initialize() 90 if ((Segment.AG.getMemProt() & MemProt::Exec) == MemProt::Exec) in initialize() 340 for (auto Segment : AI.Segments) { in initialize() local 342 AllocationOffset + Segment.Offset; in initialize() 343 std::memset(Base + Segment.ContentSize, 0, Segment.ZeroFillSize); in initialize() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_segmented_array.h | 34 struct Segment { struct 35 Segment *Prev; argument 36 Segment *Next; argument 61 static constexpr uint64_t SegmentControlBlockSize = sizeof(Segment *) * 2; 74 static Segment SentinelSegment; 81 Segment *S = &SentinelSegment; 86 Iterator(Segment *IS, uint64_t Off, uint64_t S) XRAY_NEVER_INSTRUMENT in Iterator() 164 Segment *Head; 165 Segment *Tail; 169 Segment *Freelist; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUMarkLastScratchLoad.cpp | 84 for (const LiveRange::Segment &Segment : LI.segments) { in runOnMachineFunction() local 88 if (Segment.end.isBlock()) in runOnMachineFunction() 94 MachineInstr *MISegmentEnd = SI->getInstructionFromIndex(Segment.end); in runOnMachineFunction() 99 SlotIndex NextSlot = Slots.getNextNonNullIndex(Segment.end); in runOnMachineFunction() 103 MachineInstr *MISegmentStart = SI->getInstructionFromIndex(Segment.start); in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
H A D | WasmYAML.cpp | 379 IO &IO, WasmYAML::ElemSegment &Segment) { in mapping() argument 380 IO.mapOptional("Flags", Segment.Flags, 0); in mapping() 382 Segment.Flags & wasm::WASM_ELEM_SEGMENT_HAS_TABLE_NUMBER) in mapping() 383 IO.mapOptional("TableNumber", Segment.TableNumber); in mapping() 385 Segment.Flags & wasm::WASM_ELEM_SEGMENT_MASK_HAS_ELEM_KIND) in mapping() 386 IO.mapOptional("ElemKind", Segment.ElemKind); in mapping() 389 IO.mapRequired("Offset", Segment.Offset); in mapping() 390 IO.mapRequired("Functions", Segment.Functions); in mapping() 463 IO &IO, WasmYAML::DataSegment &Segment) { in mapping() argument 464 IO.mapOptional("SectionOffset", Segment.SectionOffset); in mapping() [all …]
|
H A D | WasmEmitter.cpp | 214 encodeULEB128(Info.DataRef.Segment, SubSection.getStream()); in writeSectionContent() 493 for (auto &Segment : Section.Segments) { in writeSectionContent() local 494 encodeULEB128(Segment.Flags, OS); in writeSectionContent() 495 if (Segment.Flags & wasm::WASM_ELEM_SEGMENT_HAS_TABLE_NUMBER) in writeSectionContent() 496 encodeULEB128(Segment.TableNumber, OS); in writeSectionContent() 498 writeInitExpr(OS, Segment.Offset); in writeSectionContent() 500 if (Segment.Flags & wasm::WASM_ELEM_SEGMENT_MASK_HAS_ELEM_KIND) { in writeSectionContent() 504 if (Segment.ElemKind != uint32_t(wasm::ValType::FUNCREF)) { in writeSectionContent() 505 reportError("unexpected elemkind: " + Twine(Segment.ElemKind)); in writeSectionContent() 512 encodeULEB128(Segment.Functions.size(), OS); in writeSectionContent() [all …]
|
H A D | CodeViewYAMLSymbols.cpp | 321 IO.mapRequired("Seg", Symbol.Segment); in map() 348 IO.mapRequired("Segment", Symbol.Segment); in map() 367 IO.mapOptional("Segment", Symbol.Segment, uint16_t(0)); in map() 381 IO.mapOptional("Segment", Symbol.Segment, uint16_t(0)); in map() 462 IO.mapOptional("Segment", Symbol.Segment, uint16_t(0)); in map() 468 IO.mapOptional("Segment", Symbol.Segment, uint16_t(0)); in map() 518 IO.mapOptional("Segment", Symbol.Segment, uint16_t(0)); in map() 531 IO.mapOptional("Segment", Symbol.Segment, uint16_t(0)); in map() 577 IO.mapOptional("Segment", Symbol.Segment, uint16_t(0)); in map() 584 IO.mapOptional("Segment", Symbol.Segment, uint16_t(0)); in map() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | WasmObjectFile.cpp | 58 Out << ", Segment=" << Info.DataRef.Segment; in print() 1643 wasm::WasmElemSegment Segment; in parseElemSection() local 1644 Segment.Flags = readVaruint32(Ctx); in parseElemSection() 1649 if (Segment.Flags & ~SupportedFlags) in parseElemSection() 1653 bool IsPassive = (Segment.Flags & wasm::WASM_ELEM_SEGMENT_IS_PASSIVE) != 0; in parseElemSection() 1655 IsPassive && (Segment.Flags & wasm::WASM_ELEM_SEGMENT_IS_DECLARATIVE); in parseElemSection() 1658 (Segment.Flags & wasm::WASM_ELEM_SEGMENT_HAS_TABLE_NUMBER); in parseElemSection() 1660 (Segment.Flags & wasm::WASM_ELEM_SEGMENT_HAS_INIT_EXPRS); in parseElemSection() 1662 (Segment.Flags & wasm::WASM_ELEM_SEGMENT_MASK_HAS_ELEM_KIND) && in parseElemSection() 1666 Segment.TableNumber = readVaruint32(Ctx); in parseElemSection() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | MachODumper.cpp | 372 MachOSegment &Segment) { in getSegment() argument 375 Segment.CmdName = "LC_SEGMENT"; in getSegment() 376 Segment.SegName = SC.segname; in getSegment() 377 Segment.cmdsize = SC.cmdsize; in getSegment() 378 Segment.vmaddr = SC.vmaddr; in getSegment() 379 Segment.vmsize = SC.vmsize; in getSegment() 380 Segment.fileoff = SC.fileoff; in getSegment() 381 Segment.filesize = SC.filesize; in getSegment() 382 Segment.maxprot = SC.maxprot; in getSegment() 383 Segment in getSegment() [all...] |
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/ |
H A D | CoverageExporterJson.cpp | 83 json::Array renderSegment(const coverage::CoverageSegment &Segment) { in renderSegment() argument 84 return json::Array({Segment.Line, Segment.Col, in renderSegment() 85 clamp_uint64_to_int64(Segment.Count), Segment.HasCount, in renderSegment() 86 Segment.IsRegionEntry, Segment.IsGapRegion}); in renderSegment() 228 for (const auto &Segment : FileCoverage) in renderFileSegments() local 229 SegmentArray.push_back(renderSegment(Segment)); in renderFileSegments()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCSectionMachO.cpp | 92 MCSectionMachO::MCSectionMachO(StringRef Segment, StringRef Section, in MCSectionMachO() argument 98 assert(Segment.size() <= 16 && Section.size() <= 16 && in MCSectionMachO() 101 if (i < Segment.size()) in MCSectionMachO() 102 SegmentName[i] = Segment[i]; in MCSectionMachO() 182 StringRef &Segment, // Out. in ParseSectionSpecifier() argument 195 Segment = GetEmptyOrTrim(0); in ParseSectionSpecifier()
|
H A D | WasmObjectWriter.cpp | 702 const WasmDataSegment &Segment = DataSegments[SymRef.Segment]; in getProvisionalValue() local 704 return Segment.Offset + SymRef.Offset + RelEntry.Addend; in getProvisionalValue() 1084 for (const WasmDataSegment &Segment : DataSegments) { in writeDataSection() local 1085 encodeULEB128(Segment.InitFlags, W->OS); // flags in writeDataSection() 1086 if (Segment.InitFlags & wasm::WASM_DATA_SEGMENT_HAS_MEMINDEX) in writeDataSection() 1088 if ((Segment.InitFlags & wasm::WASM_DATA_SEGMENT_IS_PASSIVE) == 0) { in writeDataSection() 1091 encodeSLEB128(Segment.Offset, W->OS); // offset in writeDataSection() 1094 encodeULEB128(Segment.Data.size(), W->OS); // size in writeDataSection() 1095 Segment in writeDataSection() 1202 for (const WasmDataSegment &Segment : DataSegments) { writeLinkingMetaDataSection() local 1497 WasmDataSegment &Segment = DataSegments.back(); writeOneObject() local 1749 const WasmDataSegment &Segment = writeOneObject() local [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
H A D | JITLinkMemoryManager.h | 220 class Segment { 224 Segment() in Segment() function 249 using SegmentMap = orc::AllocGroupSmallMap<Segment>; 291 /// Segment. Clients can obtain a pointer to the working memory and executor 292 /// address of that block using the Segment's AllocGroup. Once memory has been 300 struct Segment { struct 301 Segment() = default; 302 Segment(size_t ContentSize, Align ContentAlign) in Segment() argument 315 using SegmentMap = orc::AllocGroupSmallMap<Segment>; argument
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_rawprofile.cpp | 40 for (const auto &Segment : Module.ranges()) { in SegmentSizeBytes() local 41 if (Segment.executable) in SegmentSizeBytes() 70 for (const auto &Segment : Module.ranges()) { in SerializeSegmentsToBuffer() local 71 if (Segment.executable) { in SerializeSegmentsToBuffer() 72 SegmentEntry Entry(Segment.beg, Segment.end, Module.base_address()); in SerializeSegmentsToBuffer()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | NativePublicSymbol.cpp | 35 uint32_t NativePublicSymbol::getAddressSection() const { return Sym.Segment; } in getAddressSection() 42 return Session.getRVAFromSectOffset(Sym.Segment, Sym.Offset); in getRelativeVirtualAddress() 46 return Session.getVAFromSectOffset(Sym.Segment, Sym.Offset); in getVirtualAddress()
|
H A D | NativeFunctionSymbol.cpp | 48 uint32_t NativeFunctionSymbol::getAddressSection() const { return Sym.Segment; } in getAddressSection() 56 return Session.getRVAFromSectOffset(Sym.Segment, Sym.CodeOffset); in getRelativeVirtualAddress() 60 return Session.getVAFromSectOffset(Sym.Segment, Sym.CodeOffset); in getVirtualAddress()
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ |
H A D | MultilibBuilder.cpp | 21 static void normalizePathSegment(std::string &Segment) { in normalizePathSegment() argument 22 StringRef seg = Segment; in normalizePathSegment() 33 Segment.clear(); in normalizePathSegment() 39 Segment = "/" + seg.str(); in normalizePathSegment() 41 Segment = std::string(seg); in normalizePathSegment()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | SymbolRecordMapping.cpp | 53 error(IO.mapInteger(Block.Segment)); in visitKnownRecord() 65 error(IO.mapInteger(Thunk.Segment)); in visitKnownRecord() 108 error(IO.mapInteger(CoffGroup.Segment)); in visitKnownRecord() 137 error(IO.mapInteger(CallSiteInfo.Segment)); in visitKnownRecord() 223 error(IO.mapInteger(Data.Segment)); in visitKnownRecord() 332 error(IO.mapInteger(HeapAllocSite.Segment)); in visitKnownRecord() 365 error(IO.mapInteger(Public.Segment)); in visitKnownRecord() 385 error(IO.mapInteger(Label.Segment)); in visitKnownRecord() 418 error(IO.mapInteger(Proc.Segment)); in visitKnownRecord() 452 error(IO.mapInteger(Data.Segment)); in visitKnownRecord() [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCWinEH.h | 67 struct Segment { struct 75 Segment(int64_t Offset, int64_t Length, bool HasProlog = false) 79 std::vector<Segment> Segments;
|
H A D | MCSectionMachO.h | 42 MCSectionMachO(StringRef Segment, StringRef Section, unsigned TAA, 72 StringRef &Segment, // Out.
|
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/ |
H A D | TextStubV5.cpp | 305 Error collectSymbolsFromSegment(const Object *Segment, TargetsToSymbols &Result, in collectSymbolsFromSegment() argument 308 TBDKey::Globals, Segment, [&Result, &SectionFlag](StringRef Name) { in collectSymbolsFromSegment() 316 TBDKey::ObjCClass, Segment, [&Result, &SectionFlag](StringRef Name) { in collectSymbolsFromSegment() 323 Err = collectFromArray(TBDKey::ObjCEHType, Segment, in collectSymbolsFromSegment() 333 TBDKey::ObjCIvar, Segment, [&Result, &SectionFlag](StringRef Name) { in collectSymbolsFromSegment() 347 TBDKey::Weak, Segment, [&Result, WeakFlag](StringRef Name) { in collectSymbolsFromSegment() 355 TBDKey::ThreadLocal, Segment, [&Result, SectionFlag](StringRef Name) { in collectSymbolsFromSegment() 898 Object Segment; in serializeSymbols() local 899 insertNonEmptyValues(Segment, TBDKey::Globals, std::move(SymField.Globals)); in serializeSymbols() 900 insertNonEmptyValues(Segment, TBDKey::ThreadLocal, std::move(SymField.TLV)); in serializeSymbols() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | SymbolRecord.h | 61 uint16_t Segment = 0; variable 79 uint16_t Segment = 0; variable 132 uint16_t Segment = 0; variable 376 ulittle16_t Segment; 391 uint16_t Segment = 0; 637 uint16_t Segment = 0; 657 uint16_t Segment = 0; 834 uint16_t Segment = 0; variable 855 uint16_t Segment = 0; 970 uint16_t Segment 355 ulittle16_t Segment; global() member 370 uint16_t Segment = 0; global() variable 616 uint16_t Segment = 0; global() variable 636 uint16_t Segment = 0; global() variable 813 uint16_t Segment = 0; global() variable 949 uint16_t Segment = 0; global() variable 971 uint16_t Segment = 0; global() variable 999 uint16_t Segment = 0; global() variable [all...] |