Home
last modified time | relevance | path

Searched refs:Segment (Results 1 – 25 of 134) sorted by relevance

123456

/openbsd-src/gnu/llvm/llvm/tools/dsymutil/
H A DMachOUtils.cpp145 MachO::segment_command_64 Segment; in iterateOnSegments() local
147 Segment = adaptFrom32bits(Obj.getSegmentLoadCommand(LCI)); in iterateOnSegments()
149 Segment = Obj.getSegment64LoadCommand(LCI); in iterateOnSegments()
153 Handler(Segment); in iterateOnSegments()
257 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections() argument
262 if (StringRef("__DWARF") == Segment.segname) in transferSegmentAndSections()
265 if (StringRef("__TEXT") == Segment.segname && EHFrameSize > 0) { in transferSegmentAndSections()
266 Segment.fileoff = EHFrameOffset; in transferSegmentAndSections()
267 Segment.filesize = EHFrameSize; in transferSegmentAndSections()
268 } else if (StringRef("__LINKEDIT") == Segment.segname) { in transferSegmentAndSections()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dwasm2yaml.cpp101 for (const object::WasmSegment &Segment : Obj.dataSegments()) { in dumpCustomSection() local
102 if (!Segment.Data.Name.empty()) { in dumpCustomSection()
104 SegmentInfo.Name = Segment.Data.Name; in dumpCustomSection()
106 SegmentInfo.Alignment = Segment.Data.Alignment; in dumpCustomSection()
107 SegmentInfo.Flags = Segment.Data.LinkingFlags; in dumpCustomSection()
110 if (Segment.Data.Comdat != UINT32_MAX) { in dumpCustomSection()
111 LinkingSec->Comdats[Segment.Data.Comdat].Entries.emplace_back( in dumpCustomSection()
332 for (auto &Segment : Obj.elements()) { in dump() local
334 Seg.Flags = Segment.Flags; in dump()
335 Seg.TableNumber = Segment.TableNumber; in dump()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DExecutorSharedMemoryMapperService.cpp128 for (auto &Segment : FR.Segments) { in initialize() local
129 if (Segment.Addr < MinAddr) in initialize()
130 MinAddr = Segment.Addr; in initialize()
135 if ((Segment.AG.getMemProt() & MemProt::Read) == MemProt::Read) in initialize()
137 if ((Segment.AG.getMemProt() & MemProt::Write) == MemProt::Write) in initialize()
139 if ((Segment.AG.getMemProt() & MemProt::Exec) == MemProt::Exec) in initialize()
142 if (mprotect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt)) in initialize()
148 getWindowsProtectionFlags(Segment.AG.getMemProt()); in initialize()
150 if (!VirtualProtect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt, in initialize()
156 if ((Segment.AG.getMemProt() & MemProt::Exec) == MemProt::Exec) in initialize()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DLiveInterval.cpp73 using Segment = LiveRange::Segment; typedef in __anon01eff5e00111::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 *S = segmentAt(I); in extendSegmentStartTo()
210 Segment *MergeToSeg = segmentAt(MergeTo); in extendSegmentStartTo()
219 iterator addSegment(Segment S) { in addSegment()
[all …]
H A DLiveIntervals.cpp364 LR.addSegment(LiveRange::Segment(Def, Def.getDeadSlot(), VNI)); in createSegmentsForValues()
422 Segments.addSegment(LiveRange::Segment(BlockStart, Idx, VNI)); in extendSegmentsToUses()
604 const LiveRange::Segment *Segment = SR.getSegmentContaining(VNI->def); in shrinkToUses() local
605 assert(Segment != nullptr && "Missing segment for VNI"); in shrinkToUses()
606 if (Segment->end != VNI->def.getDeadSlot()) in shrinkToUses()
613 SR.removeSegment(*Segment); in shrinkToUses()
766 for (const LiveRange::Segment &Segment : SR.segments) { in addKillFlags() local
767 if (Segment.start >= RI->end) in addKillFlags()
769 if (Segment.end == RI->end) { in addKillFlags()
869 LiveRange::Segment
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DLiveInterval.h162 struct Segment { struct
168 Segment() = default; argument
170 Segment(SlotIndex S, SlotIndex E, VNInfo *V) in Segment() function
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 …]
/openbsd-src/gnu/llvm/compiler-rt/lib/xray/
H A Dxray_segmented_array.h34 struct Segment { struct
35 Segment *Prev; argument
36 Segment *Next; argument
62 static constexpr uint64_t SegmentControlBlockSize = sizeof(Segment *) * 2;
75 static Segment SentinelSegment;
82 Segment *S = &SentinelSegment;
87 Iterator(Segment *IS, uint64_t Off, uint64_t S) XRAY_NEVER_INSTRUMENT in Iterator()
165 Segment *Head;
166 Segment *Tail;
170 Segment *Freelist;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp68 for (auto &Segment : AI.Segments) { in initialize() local
69 auto Base = AI.MappingBase + Segment.Offset; in initialize()
70 auto Size = Segment.ContentSize + Segment.ZeroFillSize; in initialize()
78 std::memset((Base + Segment.ContentSize).toPtr<void *>(), 0, in initialize()
79 Segment.ZeroFillSize); in initialize()
83 toSysMemoryProtectionFlags(Segment.AG.getMemProt()))) { in initialize()
86 if ((Segment.AG.getMemProt() & MemProt::Exec) == MemProt::Exec) in initialize()
319 for (auto Segment : AI.Segments) { in initialize() local
321 AllocationOffset + Segment.Offset; in initialize()
322 std::memset(Base + Segment.ContentSize, 0, Segment.ZeroFillSize); in initialize()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-cov/
H A DCoverageExporterJson.cpp79 json::Array renderSegment(const coverage::CoverageSegment &Segment) { in renderSegment() argument
80 return json::Array({Segment.Line, Segment.Col, in renderSegment()
81 clamp_uint64_to_int64(Segment.Count), Segment.HasCount, in renderSegment()
82 Segment.IsRegionEntry, Segment.IsGapRegion}); in renderSegment()
196 for (const auto &Segment : FileCoverage) in renderFileSegments() local
197 SegmentArray.push_back(renderSegment(Segment)); in renderFileSegments()
/openbsd-src/gnu/llvm/llvm/lib/Object/
H A DWasmObjectFile.cpp45 Out << ", Segment=" << Info.DataRef.Segment; in print()
1440 wasm::WasmElemSegment Segment; in parseElemSection() local
1441 Segment.Flags = readVaruint32(Ctx); in parseElemSection()
1446 if (Segment.Flags & ~SupportedFlags) in parseElemSection()
1450 if (Segment.Flags & wasm::WASM_ELEM_SEGMENT_HAS_TABLE_NUMBER) in parseElemSection()
1451 Segment.TableNumber = readVaruint32(Ctx); in parseElemSection()
1453 Segment.TableNumber = 0; in parseElemSection()
1454 if (!isValidTableNumber(Segment.TableNumber)) in parseElemSection()
1458 if (Segment.Flags & wasm::WASM_ELEM_SEGMENT_IS_PASSIVE) { in parseElemSection()
1459 Segment.Offset.Extended = false; in parseElemSection()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DWasmYAML.cpp377 IO &IO, WasmYAML::ElemSegment &Segment) { in mapping() argument
378 IO.mapOptional("Flags", Segment.Flags, 0); in mapping()
380 Segment.Flags & wasm::WASM_ELEM_SEGMENT_HAS_TABLE_NUMBER) in mapping()
381 IO.mapOptional("TableNumber", Segment.TableNumber); in mapping()
383 Segment.Flags & wasm::WASM_ELEM_SEGMENT_MASK_HAS_ELEM_KIND) in mapping()
384 IO.mapOptional("ElemKind", Segment.ElemKind); in mapping()
385 IO.mapRequired("Offset", Segment.Offset); in mapping()
386 IO.mapRequired("Functions", Segment.Functions); in mapping()
459 IO &IO, WasmYAML::DataSegment &Segment) { in mapping() argument
460 IO.mapOptional("SectionOffset", Segment.SectionOffset); in mapping()
[all …]
H A DWasmEmitter.cpp214 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 …]
/openbsd-src/gnu/llvm/llvm/lib/MC/
H A DMCSectionMachO.cpp92 MCSectionMachO::MCSectionMachO(StringRef Segment, StringRef Section, in MCSectionMachO() argument
97 assert(Segment.size() <= 16 && Section.size() <= 16 && in MCSectionMachO()
100 if (i < Segment.size()) in MCSectionMachO()
101 SegmentName[i] = Segment[i]; in MCSectionMachO()
187 StringRef &Segment, // Out. in ParseSectionSpecifier() argument
200 Segment = GetEmptyOrTrim(0); in ParseSectionSpecifier()
H A DWasmObjectWriter.cpp706 const WasmDataSegment &Segment = DataSegments[SymRef.Segment]; in getProvisionalValue() local
708 return Segment.Offset + SymRef.Offset + RelEntry.Addend; in getProvisionalValue()
1085 for (const WasmDataSegment &Segment : DataSegments) { in writeDataSection() local
1086 encodeULEB128(Segment.InitFlags, W->OS); // flags in writeDataSection()
1087 if (Segment.InitFlags & wasm::WASM_DATA_SEGMENT_HAS_MEMINDEX) in writeDataSection()
1089 if ((Segment.InitFlags & wasm::WASM_DATA_SEGMENT_IS_PASSIVE) == 0) { in writeDataSection()
1092 encodeSLEB128(Segment.Offset, W->OS); // offset in writeDataSection()
1095 encodeULEB128(Segment.Data.size(), W->OS); // size in writeDataSection()
1096 Segment.Section->setSectionOffset(W->OS.tell() - Section.ContentsOffset); in writeDataSection()
1097 W->OS << Segment.Data; // data in writeDataSection()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/
H A DMachODumper.cpp372 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.initprot = SC.initprot; in getSegment()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.h220 class Segment {
224 Segment() in Segment() function
249 using SegmentMap = orc::AllocGroupSmallMap<Segment>;
297 struct Segment { struct
298 Segment() = default;
299 Segment(size_t ContentSize, Align ContentAlign) in Segment() function
312 using SegmentMap = orc::AllocGroupSmallMap<Segment>; argument
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/PDB/Native/
H A DNativePublicSymbol.cpp35 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 DNativeFunctionSymbol.cpp48 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()
/openbsd-src/gnu/llvm/compiler-rt/lib/xray/tests/unit/
H A Dsegmented_array_test.cpp136 constexpr auto Segment = Array<TestData>::SegmentSize; in TEST() local
137 constexpr auto SegmentX2 = Segment * 2; in TEST()
149 Data.trim(Segment); in TEST()
150 ASSERT_EQ(Data.size(), Segment); in TEST()
155 ASSERT_EQ(Back.First, static_cast<s64>(Segment + 1)); in TEST()
156 ASSERT_EQ(Back.Second, static_cast<s64>(Segment + 1)); in TEST()
160 Data.trim(Segment); in TEST()
177 constexpr auto Segment = Array<TestData>::SegmentSize; in TEST() local
179 AllocatorType A(Segment); in TEST()
/openbsd-src/gnu/llvm/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/
H A DDynamicLoaderDarwin.h76 class Segment {
78 Segment() : name() {} in Segment() function
90 bool operator==(const Segment &rhs) const {
113 std::vector<Segment> segments;
166 const Segment *FindSegment(lldb_private::ConstString name) const;
/openbsd-src/gnu/llvm/llvm/include/llvm/MC/
H A DMCWinEH.h67 struct Segment { struct
75 Segment(int64_t Offset, int64_t Length, bool HasProlog = false)
79 std::vector<Segment> Segments;
H A DMCSectionMachO.h35 MCSectionMachO(StringRef Segment, StringRef Section, unsigned TAA,
65 StringRef &Segment, // Out.
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/CodeView/
H A DSymbolRecordMapping.cpp53 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 …]
/openbsd-src/gnu/llvm/clang/lib/Driver/
H A DMultilib.cpp29 static void normalizePathSegment(std::string &Segment) { in normalizePathSegment() argument
30 StringRef seg = Segment; in normalizePathSegment()
41 Segment.clear(); in normalizePathSegment()
47 Segment = "/" + seg.str(); in normalizePathSegment()
49 Segment = std::string(seg); in normalizePathSegment()
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/CodeView/
H A DSymbolRecord.h61 uint16_t Segment = 0; variable
79 uint16_t Segment = 0; variable
132 uint16_t Segment = 0; variable
355 ulittle16_t Segment; member
370 uint16_t Segment = 0; variable
616 uint16_t Segment = 0; variable
636 uint16_t Segment = 0; variable
813 uint16_t Segment = 0; variable
834 uint16_t Segment = 0; variable
949 uint16_t Segment = 0; variable
[all …]

123456