Home
last modified time | relevance | path

Searched refs:segments (Results 1 – 25 of 121) sorted by relevance

12345

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DLiveInterval.cpp93 if (I == segments().end()) { in createDeadDef()
121 if (segments().empty()) in extendInBlock()
125 if (I == segments().begin()) in extendInBlock()
137 if (segments().empty()) in extendInBlock()
545 assert(segments.empty() || segments.back().end <= S.start); in append()
546 segments.push_back(S); in append()
606 I = segments.erase(I); in removeSegment()
621 llvm::erase_if(segments, in removeValNo()
762 segments.erase(S); in MergeValueNumberInto()
778 segments.erase(I); in MergeValueNumberInto()
[all …]
H A DLiveRangeUtils.h36 SplitLRs[eq-1]->segments.push_back(*I); in DistributeRange()
40 LR.segments.erase(J, E); in DistributeRange()
H A DVirtRegMap.cpp307 if (!First.isValid() || SR.segments.front().start < First) in addLiveInsForSubRanges()
308 First = SR.segments.front().start; in addLiveInsForSubRanges()
309 if (!Last.isValid() || SR.segments.back().end > Last) in addLiveInsForSubRanges()
310 Last = SR.segments.back().end; in addLiveInsForSubRanges()
/llvm-project-15.0.7/lld/wasm/
H A DOutputSections.cpp102 segments.begin(), segments.end(), in finalizeContents()
106 segments.begin(), segments.end(), [](OutputSegment *segment) { in finalizeContents()
120 for (OutputSegment *segment : segments) { in finalizeContents()
180 for (const OutputSegment *segment : segments) { in writeTo()
195 for (const OutputSegment *seg : segments) in getNumRelocations()
202 for (const OutputSegment *seg : segments) in writeRelocations()
208 for (const OutputSegment *seg : segments) in isNeeded()
H A DOutputSections.h81 explicit DataSection(ArrayRef<OutputSegment *> segments) in DataSection() argument
82 : OutputSection(llvm::wasm::WASM_SEC_DATA), segments(segments) {} in DataSection()
95 ArrayRef<OutputSegment *> segments; variable
H A DWriter.cpp119 std::vector<OutputSegment *> segments; member in lld::wasm::__anonee217dbf0111::Writer
272 for (OutputSegment *seg : segments) { in layoutMemory()
422 addSection(make<DataSection>(segments)); in addSections()
891 segments.push_back(s); in createOutputSegment()
917 std::stable_sort(segments.begin(), segments.end(), in createOutputSegments()
931 segments[i]->index = i; in createOutputSegments()
935 for (OutputSegment *seg : segments) in createOutputSegments()
947 if (segments.size() <= 1) in combineOutputSegments()
951 for (OutputSegment *s : segments) { in combineOutputSegments()
970 segments = {combined}; in combineOutputSegments()
[all …]
H A DSyntheticSections.h342 DataCountSection(ArrayRef<OutputSegment *> segments);
374 NameSection(ArrayRef<OutputSegment *> segments)
376 segments(segments) {}
385 ArrayRef<OutputSegment *> segments;
/llvm-project-15.0.7/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/
H A DDynamicLoaderDarwin.cpp262 if (info.segments[i].maxprot == 0) { in UpdateImageLoadAddress()
266 info.segments[i].vmaddr + info.slide; in UpdateImageLoadAddress()
335 info.segments[i].vmaddr + info.slide; in UnloadModuleSections()
460 StructuredData::Array *segments = in JSONImageInformationIntoImageInfo() local
462 uint32_t segcount = segments->GetSize(); in JSONImageInformationIntoImageInfo()
501 image_infos[i].segments.push_back(segment); in JSONImageInformationIntoImageInfo()
782 const size_t num_segments = segments.size(); in FindSegment()
784 if (segments[i].name == name) in FindSegment()
785 return &segments[i]; in FindSegment()
800 for (uint32_t i = 0; i < segments.size(); ++i) in PutToLog()
[all …]
H A DDynamicLoaderDarwin.h113 std::vector<Segment> segments; member
136 segments.clear(); in Clear()
148 segments == rhs.segments && os_type == rhs.os_type &&
H A DDynamicLoaderMacOSXDYLD.cpp864 dylib_info.segments.push_back(segment); in ParseLoadCommands()
874 dylib_info.segments.push_back(segment); in ParseLoadCommands()
905 const size_t num_sections = dylib_info.segments.size(); in ParseLoadCommands()
909 if ((dylib_info.segments[i].fileoff == 0 && in ParseLoadCommands()
910 dylib_info.segments[i].filesize > 0) || in ParseLoadCommands()
911 (dylib_info.segments[i].name == "__TEXT")) { in ParseLoadCommands()
912 dylib_info.slide = dylib_info.address - dylib_info.segments[i].vmaddr; in ParseLoadCommands()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DLiveInterval.h203 Segments segments; // the liveness segments variable
215 iterator begin() { return segments.begin(); } in begin()
216 iterator end() { return segments.end(); } in end()
262 for (const Segment &S : Other.segments) in assign()
302 segments.clear(); in clear()
306 return segments.size(); in size()
382 bool empty() const { return segments.empty(); } in empty()
387 return segments.front().start; in beginIndex()
394 return segments.back().end; in endIndex()
587 for (const Segment &S : segments) in isZeroLength()
[all …]
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/
H A Dprogram-header-nobits.yaml3 ## multiple segments, we check each and allocate the space if at least one matches the
6 ## Case A. In this case there are no non-nobits sections after SHT_NOBITS sections in segments.
9 # RUN: llvm-readelf --sections --segments %t1 | FileCheck %s --check-prefix=NO-ALLOC
27 # RUN: llvm-readelf --sections --segments %t2 | FileCheck %s --check-prefix=ALLOC-FIRST
44 # RUN: llvm-readelf --sections --segments %t3 | FileCheck %s --check-prefix=FILL-AT-END
86 ## We have 2 segments, the first is predefined and the second can be customized.
103 # RUN: llvm-readelf --sections --segments %t4 | FileCheck %s --check-prefix=MIDDLE
/llvm-project-15.0.7/lld/test/ELF/
H A Dseparate-segments.s22 ## -z separate-loadable-segments makes all segments separate.
23 # RUN: ld.lld -pie %t.o -z separate-loadable-segments -o %t
H A Dfill-trap.s17 ## -z separate-loadable-segments pads all segments, including the text segment.
18 # RUN: ld.lld %t.o -z separate-loadable-segments -z common-page-size=512 -o %t
H A Drelro-bss.s7 # We have 2 RW PT_LOAD segments. p_offset p_vaddr p_paddr p_filesz of the first
/llvm-project-15.0.7/mlir/python/mlir/dialects/
H A D_ods_common.py85 segments = _cext.ir.DenseIntElementsAttr(raw_segments)
86 start = sum(segments[i] for i in range(idx))
87 end = start + segments[idx]
/llvm-project-15.0.7/mlir/lib/Dialect/Transform/IR/
H A DTransformInterfaces.cpp270 segments.resize(numSegments, in TransformResults()
277 assert(position < segments.size() && in set()
279 assert(segments[position].data() == nullptr && "results already set"); in set()
282 segments[position] = makeArrayRef(operations).drop_front(start); in set()
287 assert(resultNumber < segments.size() && in get()
289 assert(segments[resultNumber].data() != nullptr && "querying unset results"); in get()
290 return segments[resultNumber]; in get()
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Dpreserve-segment-contents.test1 # We want to preserve areas in segments that are not covered by section headers.
4 # To create inputs with arbitrary data in segments, not covered by sections, we
5 # use yaml2obj to create segments with sections covering all areas, then remove
6 # some sections in those segments, and finally write over the areas of the
341 # The next few segments test behaviour of fully nested segments.
387 # The next batch of segments are segments that only partially overlap other segments.
462 # The next batch of segments represent groups of three nested/overlapping segments,
463 # with one parent segment containing two overlapping segments.
H A Dihex-writer.test4 # Check ihex output, when we have segments in ELF file
5 # In such case only sections in PT_LOAD segments will
7 # RUN: yaml2obj %p/Inputs/ihex-elf-segments.yaml -o %t-segs
10 # Check that non-load segments are ignored:
H A Doverlapping-sections-in-segments.test2 ## where such sections are within segments.
11 ## llvm-objcopy hasn't "unoverlapped" these sections because they are in segments.
H A Dihex-writer-empty-sections.test1 ## Evaluates the hex writer behavior with empty sections and segments.
10 ## Then, show the same kind of behaviors for segments. (One filled section, four
90 ## The sections below are placed into segments of varying configurations.
/llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/
H A Dprogram-headers.yaml9 # RUN: llvm-readelf --segments %t1 | FileCheck %s --check-prefix=SEGMENT-MAPPING
135 ## we can place a section in any number of segments.
159 ## Test we are able to dump duplicated segments.
225 ## Check we are able to dump segments that are empty or
306 ## Document we are able to dump misaligned segments.
307 ## I.e. segments where (p_offset % p_align) != (p_vaddr % p_align).
309 # RUN: llvm-readelf --segments --sections %t3 | FileCheck %s --check-prefix=MISALIGNED-READELF
347 ## Test we include non-allocatable sections in segments.
412 ## Check how we dump segments which contain SHT_NOBITS sections.
557 ## Check how we dump segments which contain empty sections.
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Dgnu-section-mapping.test1 ## Check how llvm-readelf prints sections to segments mapping.
3 ## Check that --section-mapping produces a sections to segments
/llvm-project-15.0.7/lld/test/wasm/
H A Ddata-segment-merging.ll38 ; RUN: wasm-ld -no-gc-sections --no-entry --no-merge-data-segments -o %t.separate.wasm %t.o
105 …sections --no-entry --shared-memory --max-memory=131072 --no-merge-data-segments -o %t.separate.pa…
107 …sections --no-entry --shared-memory --max-memory=131072 --no-merge-data-segments -o %t.separate.pa…
/llvm-project-15.0.7/llvm/test/ExecutionEngine/JITLink/AArch64/
H A DMachO_arm64_stub_to_got_distance_stress_test.s4 # Use RW- empty space sufficient to push the R-- and R-X segments more than

12345