Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/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.RAG.Prot & MemProt::Read) == MemProt::Read) in initialize()
137 if ((Segment.RAG.Prot & MemProt::Write) == MemProt::Write) in initialize()
139 if ((Segment.RAG.Prot & MemProt::Exec) == MemProt::Exec) in initialize()
142 if (mprotect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt)) in initialize()
147 DWORD NativeProt = getWindowsProtectionFlags(Segment.RAG.Prot); in initialize()
149 if (!VirtualProtect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt, in initialize()
155 if ((Segment.RAG.Prot & MemProt::Exec) == MemProt::Exec) in initialize()
[all …]
/freebsd/contrib/llvm-project/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()
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()
325 SegReq.RAG = {Segment.AG.getMemProt(), in initialize()
327 SegReq.Addr = AI.MappingBase + Segment.Offset; in initialize()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveInterval.cpp73 using Segment = LiveRange::Segment; typedef in __anon24ee6c110111::CalcLiveRangeUtilBase
99 Segment *S = segmentAt(I); in createDeadDef()
160 Segment *S = segmentAt(I); in extendSegmentEndTo()
188 Segment *S = segmentAt(I); in extendSegmentStartTo()
219 iterator addSegment(Segment S) { in addSegment()
273 Segment *segmentAt(iterator I) { return const_cast<Segment *>(&(*I)); } in segmentAt()
336 iterator findInsertPos(Segment S) { in findInsertPos()
519 for (const Segment &S : segments) { in RenumberValues()
684 for (Segment &S : Other.segments) in join()
705 for (Segment &S : Other.segments) in join()
[all …]
H A DLiveIntervals.cpp599 const LiveRange::Segment *Segment = SR.getSegmentContaining(VNI->def); in shrinkToUses() local
600 assert(Segment != nullptr && "Missing segment for VNI"); in shrinkToUses()
601 if (Segment->end != VNI->def.getDeadSlot()) in shrinkToUses()
608 SR.removeSegment(*Segment); in shrinkToUses()
760 for (const LiveRange::Segment &Segment : SR.segments) { in addKillFlags() local
761 if (Segment.start >= RI->end) in addKillFlags()
763 if (Segment.end == RI->end) { in addKillFlags()
863 LiveRange::Segment
1396 *NewIdxOut = LiveRange::Segment( in handleMoveUp()
1398 *(NewIdxOut + 1) = LiveRange::Segment( in handleMoveUp()
[all …]
/freebsd/contrib/llvm-project/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
200 using Segments = SmallVector<Segment, 2>;
209 using SegmentSet = std::set<Segment>;
262 for (const Segment &S : Other.segments) in assign()
480 iterator addSegment(Segment S);
588 for (const Segment &S : segments) in isZeroLength()
672 void append(const LiveRange::Segment S);
676 void addSegmentToSet(Segment S);
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_segmented_array.h34 struct Segment { struct
35 Segment *Prev; argument
36 Segment *Next; argument
75 static Segment SentinelSegment;
82 Segment *S = &SentinelSegment;
165 Segment *Head;
166 Segment *Tail;
170 Segment *Freelist;
204 Segment *NewSegment() XRAY_NEVER_INSTRUMENT { in NewSegment()
262 Segment *InitHeadAndTail() XRAY_NEVER_INSTRUMENT { in InitHeadAndTail()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMarkLastScratchLoad.cpp84 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/Object/
H A DWasmObjectFile.cpp1509 wasm::WasmElemSegment Segment; in parseElemSection() local
1522 Segment.TableNumber = 0; in parseElemSection()
1528 Segment.Offset.Extended = false; in parseElemSection()
1564 ElemSegments.push_back(Segment); in parseElemSection()
1580 WasmSegment Segment; in parseDataSection() local
1582 Segment.Data.MemoryIndex = in parseDataSection()
1601 Segment.Data.Alignment = 0; in parseDataSection()
1602 Segment.Data.LinkingFlags = 0; in parseDataSection()
1603 Segment.Data.Comdat = UINT32_MAX; in parseDataSection()
1606 DataSegments.push_back(Segment); in parseDataSection()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmYAML.cpp378 IO &IO, WasmYAML::ElemSegment &Segment) { in mapping() argument
379 IO.mapOptional("Flags", Segment.Flags, 0); in mapping()
385 IO.mapOptional("ElemKind", Segment.ElemKind); in mapping()
386 IO.mapRequired("Offset", Segment.Offset); in mapping()
387 IO.mapRequired("Functions", Segment.Functions); in mapping()
460 IO &IO, WasmYAML::DataSegment &Segment) { in mapping() argument
462 IO.mapRequired("InitFlags", Segment.InitFlags); in mapping()
466 Segment.MemoryIndex = 0; in mapping()
469 IO.mapRequired("Offset", Segment.Offset); in mapping()
472 Segment.Offset.Inst.Value.Int32 = 0; in mapping()
[all …]
H A DWasmEmitter.cpp493 for (auto &Segment : Section.Segments) { in writeSectionContent() local
494 encodeULEB128(Segment.Flags, OS); in writeSectionContent()
496 encodeULEB128(Segment.TableNumber, OS); in writeSectionContent()
498 writeInitExpr(OS, Segment.Offset); in writeSectionContent()
512 encodeULEB128(Segment.Functions.size(), OS); in writeSectionContent()
513 for (auto &Function : Segment.Functions) in writeSectionContent()
549 for (auto &Segment : Section.Segments) { in writeSectionContent() local
550 encodeULEB128(Segment.InitFlags, OS); in writeSectionContent()
552 encodeULEB128(Segment.MemoryIndex, OS); in writeSectionContent()
554 writeInitExpr(OS, Segment.Offset); in writeSectionContent()
[all …]
/freebsd/contrib/llvm-project/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.cpp707 const WasmDataSegment &Segment = DataSegments[SymRef.Segment]; in getProvisionalValue() local
1099 W->OS << Segment.Data; // data in writeDataSection()
1206 writeString(Segment.Name); in writeLinkingMetaDataSection()
1207 encodeULEB128(Segment.Alignment, W->OS); in writeLinkingMetaDataSection()
1506 Segment.Name = SectionName; in writeOneObject()
1507 Segment.InitFlags = Section.getPassive() in writeOneObject()
1510 Segment.Offset = DataSize; in writeOneObject()
1511 Segment.Section = &Section; in writeOneObject()
1512 addData(Segment.Data, Section); in writeOneObject()
1515 DataSize += Segment.Data.size(); in writeOneObject()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_rawprofile.cpp40 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/tools/llvm-cov/
H A DCoverageExporterJson.cpp83 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/tools/llvm-readobj/
H A DMachODumper.cpp378 Segment.vmaddr = SC.vmaddr; in getSegment()
379 Segment.vmsize = SC.vmsize; in getSegment()
384 Segment.nsects = SC.nsects; in getSegment()
385 Segment.flags = SC.flags; in getSegment()
390 Segment.SegName = SC.segname; in getSegment()
391 Segment.cmdsize = SC.cmdsize; in getSegment()
392 Segment.vmaddr = SC.vmaddr; in getSegment()
393 Segment.vmsize = SC.vmsize; in getSegment()
394 Segment.fileoff = SC.fileoff; in getSegment()
398 Segment.nsects = SC.nsects; in getSegment()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.h220 class Segment {
224 Segment() in Segment() function
249 using SegmentMap = orc::AllocGroupSmallMap<Segment>;
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/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()
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DMultilibBuilder.cpp21 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/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.
/freebsd/contrib/llvm-project/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 …]
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DTextStubV5.cpp308 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
901 insertNonEmptyValues(Segment, TBDKey::Weak, std::move(SymField.Weaks)); in serializeSymbols()
902 insertNonEmptyValues(Segment, TBDKey::ObjCClass, in serializeSymbols()
904 insertNonEmptyValues(Segment, TBDKey::ObjCEHType, in serializeSymbols()
[all …]
/freebsd/sys/dev/acpica/Osd/
H A DOsdHardware.c113 *(UINT64 *)Value = pci_cfgregread(PciId->Segment, PciId->Bus, PciId->Device, in AcpiOsReadPciConfiguration()
135 pci_cfgregwrite(PciId->Segment, PciId->Bus, PciId->Device, PciId->Function, in AcpiOsWritePciConfiguration()
/freebsd/contrib/llvm-project/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
376 ulittle16_t Segment; member
391 uint16_t Segment = 0; variable
637 uint16_t Segment = 0; variable
657 uint16_t Segment = 0; variable
834 uint16_t Segment = 0; variable
855 uint16_t Segment = 0; variable
970 uint16_t Segment = 0; variable
[all …]

123456