/llvm-project/lld/wasm/ |
H A D | OutputSections.cpp | 99 unsigned segmentCount = llvm::count_if(segments, [](OutputSegment *segment) { in finalizeContents() 100 return segment->requiredInBinary(); in finalizeContents() 103 unsigned activeCount = llvm::count_if(segments, [](OutputSegment *segment) { in finalizeContents() 104 return (segment->initFlags & WASM_DATA_SEGMENT_IS_PASSIVE) == 0; in finalizeContents() 112 writeUleb128(os, segmentCount, "data segment count"); in finalizeContents() 116 for (OutputSegment *segment : segments) { in finalizeContents() 117 if (!segment->requiredInBinary()) in finalizeContents() 119 raw_string_ostream os(segment->header); in finalizeContents() 120 writeUleb128(os, segment->initFlags, "init flags"); in finalizeContents() 121 if (segment in finalizeContents() 101 __anon9a7dbe1e0102(OutputSegment *segment) finalizeContents() argument 105 __anon9a7dbe1e0202(OutputSegment *segment) finalizeContents() argument 179 for (const OutputSegment *segment : segments) { writeTo() local [all...] |
/llvm-project/llvm/test/tools/llvm-ml/ |
H A D | segment.asm | 3 t1 SEGMENT BYTE 9 t2 SEGMENT WORD 15 t3 SEGMENT DWORD 21 t4 SEGMENT PARA 27 t5 SEGMENT PAGE 34 t6 SEGMENT 41 t7 SEGMENT ALIGN(32) 47 t8 SEGMENT ALIAS('t8_alias') 51 t9 SEGMENT 'DATA' 60 t10 SEGMENT 'CODE' [all …]
|
/llvm-project/llvm/test/tools/llvm-objcopy/ELF/ |
H A D | ihex-writer-empty-sections.test | 11 ## empty sections, each in a single segment.) 91 ## Populated section in its own segment. This is in the output. 97 ## Empty section in its own segment. That segment is declared before the .data2 98 ## segment in the program headers, and placed at an address just behind .data2. 105 ## Empty section in its own segment. That segment is declared before the .data2 106 ## segment in the program headers, and placed at the same address as .data2. 113 ## Empty section in its own segment. That segment is declared after the .data2 114 ## segment in the program headers, and placed at the same address as .data2. 121 ## Empty section in its own segment. That segment is declared after the .data2 122 ## segment in the program headers, and placed at an address just behind .data2. [all …]
|
/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_procmaps_solaris.cpp | 46 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() 54 segment->start = (uptr)xmapentry->pr_vaddr; in Next() 55 segment->end = (uptr)(xmapentry->pr_vaddr + xmapentry->pr_size); in Next() 56 segment->offset = (uptr)xmapentry->pr_offset; in Next() 58 segment->protection = 0; in Next() 60 segment->protection |= kProtectionRead; in Next() 62 segment->protection |= kProtectionWrite; in Next() 64 segment->protection |= kProtectionExecute; in Next() 66 segment->protection |= kProtectionShared; in Next() 68 if (segment in Next() 42 Next(MemoryMappedSegment * segment) Next() argument [all...] |
H A D | sanitizer_procmaps_mac.cpp | 62 // data pointer, when there are no sections, or when the segment in AddAddressRanges() 99 // command size in bytes. We're interested only in segment load commands 104 // file offset of the current memory segment. 244 // NextSegmentLoad scans the current image for the next segment load command 246 // segment. 247 // Note that the segment addresses are not necessarily sorted. 249 static bool NextSegmentLoad(MemoryMappedSegment *segment, in NextSegmentLoad() argument 264 // isn't actually the absolute segment address, but the offset portion in NextSegmentLoad() 274 segment->start = (sc->vmaddr & addr_mask) + base_virt_addr; in NextSegmentLoad() 275 segment in NextSegmentLoad() 370 Next(MemoryMappedSegment * segment) Next() argument 432 MemoryMappedSegment segment(module_name.data(), module_name.size()); DumpListOfModules() local [all...] |
H A D | sanitizer_procmaps_linux.cpp | 32 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() argument 41 segment->start = ParseHex(&data_.current); in Next() 43 segment->end = ParseHex(&data_.current); in Next() 46 segment->protection = 0; in Next() 47 if (*data_.current++ == 'r') segment->protection |= kProtectionRead; in Next() 49 if (*data_.current++ == 'w') segment->protection |= kProtectionWrite; in Next() 51 if (*data_.current++ == 'x') segment->protection |= kProtectionExecute; in Next() 53 if (*data_.current++ == 's') segment->protection |= kProtectionShared; in Next() 55 segment->offset = ParseHex(&data_.current); in Next() 68 if (segment->filename) { in Next() [all …]
|
H A D | sanitizer_procmaps_bsd.cpp | 94 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() 102 segment->start = (uptr)VmEntry->kve_start; in Next() 103 segment->end = (uptr)VmEntry->kve_end; in Next() 104 segment->offset = (uptr)VmEntry->kve_offset; in Next() 106 segment->protection = 0; in Next() 108 segment->protection |= kProtectionRead; in Next() 110 segment->protection |= kProtectionWrite; in Next() 112 segment->protection |= kProtectionExecute; in Next() 114 if (segment->filename != NULL && segment in Next() 93 Next(MemoryMappedSegment * segment) Next() argument [all...] |
H A D | sanitizer_procmaps_fuchsia.cpp | 55 bool MemoryMappingLayout::Next(MemoryMappedSegment *segment) { in Next() argument 59 segment->start = entry.base; in Next() 60 segment->end = entry.base + entry.size; in Next() 61 segment->offset = entry.u.mapping.vmo_offset; in Next() 63 segment->protection = in Next() 67 if (segment->filename && segment->filename_size > 0) { in Next() 68 uptr len = Min(sizeof(entry.name), segment->filename_size) - 1; in Next() 69 internal_strncpy(segment->filename, entry.name, len); in Next() 70 segment->filename[len] = 0; in Next()
|
/llvm-project/llvm/test/tools/yaml2obj/ELF/DWARF/ |
H A D | debug-addr.yaml | 53 ## | +------- segment (4-byte) 54 ## +------- segment (4-byte) 58 ## | +---------------- segment (8-byte) 59 ## +---------------- segment (8-byte) 64 ## | | | | +------- segment (4-byte) 73 ## | | +------- segment (4-byte) 75 ## +------- segment (4-byte) 79 ## | | | | +---------------- segment (8-byte) 87 ## | +---------------- segment (8-byte) 91 ## | +---------------- segment (8-byte) [all …]
|
/llvm-project/llvm/test/tools/obj2yaml/ELF/ |
H A D | program-headers.yaml | 9 # RUN: llvm-readelf --segments %t1 | FileCheck %s --check-prefix=SEGMENT-MAPPING 11 # SEGMENT-MAPPING: Program Headers: 12 # SEGMENT-MAPPING-NEXT: Type Offset VirtAddr PhysAddr FileSiz MemSiz … 13 # SEGMENT-MAPPING-NEXT: LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000281 0x00028… 14 # SEGMENT-MAPPING-NEXT: LOAD 0x000281 0x0000000000001000 0x0000000000001000 0x000010 0x00001… 15 # SEGMENT-MAPPING-NEXT: LOAD 0x000291 0x0000000000002000 0x0000000000002000 0x000009 0x00000… 16 # SEGMENT-MAPPING-NEXT: LOAD 0x00029a 0x0000000000003ef0 0x0000000000003ef0 0x000011 0x00001… 17 # SEGMENT-MAPPING-NEXT: DYNAMIC 0x00029a 0x0000000000003ef0 0x0000000000003ef0 0x000010 0x00001… 18 # SEGMENT-MAPPING-NEXT: GNU_RELRO 0x00029a 0x0000000000003ef0 0x0000000000003ef0 0x000010 0x00001… 19 # SEGMENT-MAPPING-NEXT: LOAD 0x000000 0x0000000000004000 0x0000000000004000 0x000000 0x00000… [all …]
|
/llvm-project/llvm/lib/CodeGen/ |
H A D | LiveInterval.cpp | 15 // individual segment is represented as an instance of LiveRange::Segment, 53 // segment collection. 73 using Segment = LiveRange::Segment; typedef in __anon753de2fc0111::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(BeforeUs in extendInBlock() [all...] |
/llvm-project/lld/test/MachO/ |
H A D | start-end.s | 30 ## Nothing should change if we reorder two functions in the text segment. 217 ## Test segment$start and segment$end. 222 # RUN: -u 'segment$start$__UFLAG_SEG' \ 223 # RUN: -e 'segment$start$__TEXT' 225 ## llvm-objdump can't dump segment names; use lld-otool for this. 232 # SEG-NOT: segment$start$__TEXT 233 # SEG-NOT: segment$end$__TEXT 234 # SEG-NOT: segment$start$__FOO 235 # SEG-NOT: segment$end$__FOO 236 # SEG-NOT: segment$start$__BAZ [all …]
|
/llvm-project/llvm/tools/dsymutil/ |
H A D | MachOUtils.cpp | 162 MachO::segment_command_64 Segment; in iterateOnSegments() local 164 Segment = adaptFrom32bits(Obj.getSegmentLoadCommand(LCI)); in iterateOnSegments() 166 Segment = Obj.getSegment64LoadCommand(LCI); in iterateOnSegments() 170 Handler(Segment); in iterateOnSegments() 259 // Transfer \a Segment from \a Obj to the output file. This calls into \a Writer 264 // segment of \a DwarfSegmentSize size. \a EndAddress is updated to point at the 265 // highest segment address. 267 // When the __LINKEDIT segment is transferred, its offset and size are set resp. 274 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections() argument 279 if (StringRef("__DWARF") == Segment in transferSegmentAndSections() 478 __anon2ce1a3c00102(const MachO::segment_command_64 &Segment) generateDsymCompanion() argument [all...] |
/llvm-project/lld/test/ELF/linkerscript/ |
H A D | segment-none.s | 4 ## Test that section .foo is not placed in any segment when assigned to segment 5 ## NONE in the linker script and segment NONE is not defined. 14 ## Test that section .foo is placed in segment NONE when assigned to segment 15 ## NONE in the linker script and segment NONE is defined. 24 # CHECK: Section to Segment mapping: 25 # CHECK-NEXT: Segment Sections... 28 # DEFINED: Section to Segment mapping: 29 # DEFINED-NEXT: Segment Sections...
|
/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | LiveInterval.h | 15 // individual segment is represented as an instance of LiveRange::Segment, 139 /// Return the end point of the last live range segment to interact with 153 /// It manages an ordered list of Segment objects. 156 /// segment with a new value number is used. 162 struct Segment { struct 166 // segment. 168 Segment() = default; argument 170 Segment(SlotIndex S, SlotIndex E, VNInfo *V) in Segment() argument 172 assert(S < E && "Cannot create empty or backwards segment"); in Segment() 186 containsIntervalSegment global() argument [all...] |
/llvm-project/clang/test/SemaCXX/ |
H A D | code-seg.cpp | 28 //expected-error@-1 {{derived class must specify the same code segment as its base classes}} 31 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 34 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 41 // expected-error@37 {{derived class must specify the same code segment as its base classes}} 45 // expected-error@38 {{derived class must specify the same code segment as its base classes}} 49 // expected-error@38 {{derived class must specify the same code segment as its base classes}} 61 …// expected-error@-1 {{overriding virtual function must specify the same code segment as its overr… 71 …// expected-error@-1 {{overriding virtual function must specify the same code segment as its overr… 74 …// expected-error@-1 {{overriding virtual function must specify the same code segment as its overr… 82 // expected-warning@-1 {{duplicate code segment specifiers}} [all …]
|
H A D | code-seg1.cpp | 8 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 12 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 13 // expected-error@-2 {{derived class must specify the same code segment as its base classes}} 22 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 23 // expected-error@-2 {{derived class must specify the same code segment as its base classes}} 28 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 29 // expected-error@-2 {{derived class must specify the same code segment as its base classes}} 49 // expected-error@-3 {{derived class must specify the same code segment as its base classes}} 55 // expected-error@-3 {{derived class must specify the same code segment as its base classes}} 59 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} [all …]
|
/llvm-project/lldb/include/lldb/Target/ |
H A D | TraceDumper.h | 82 /// A traced segment is a maximal list of consecutive traced instructions 83 /// that belong to the same function call. A traced segment will end in 87 /// and resume with the next segment of this segment's owning function 93 /// In terms of implementation details, as segment can be represented with 113 /// linear instruction trace for each segment. 124 /// main() that we didn't trace. We don't know if this segment was in fact 137 /// nestedCall: FunctionCall [ # this untraced segment has a nested 163 /// the result is that the return edge from a segment might connect with a 198 /// Whenever an error is found, a new tree with a single segment is 200 /// appended to this segment. As a note, something that GDB does is to use [all …]
|
/llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
H A D | gnu-section-mapping.test | 9 # MAPPING: Section to Segment mapping: 10 # MAPPING-NEXT: Segment Sections... 41 ## Case 1: an arbitrary segment with sections. 47 ## Case 2: another segment with different sections. 56 # RUN: | FileCheck %s --check-prefix=SEC-MAPPING-FALSE --implicit-check-not="Section to Segment m… 60 ## Check that only one copy of the section/segment mapping table is produced 63 # RUN: | FileCheck %s --check-prefix=MAPPING --implicit-check-not="Section to Segment mapping:" 69 # NO-SECHDRS: Section to Segment mapping: 70 # NO-SECHDRS-NEXT: Segment Sections... 80 # PHENTSIZE: Section to Segment mapping: [all …]
|
/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/ |
H A D | debug_rnglists_invalid.s | 31 # CHECK-NEXT: error: .debug_rnglists table at offset 0x45 has unsupported segment selector size 4 46 .byte 0 # Segment selector size 61 .byte 0 # Segment selector size 68 .byte 0 # Segment selector size 75 .byte 0 # Segment selector size 78 # Table 5 (unsupported segment selector size) 82 .byte 4 # Segment selector size 89 .byte 0 # Segment selector size 96 .byte 0 # Segment selector size 108 .byte 0 # Segment selector size [all …]
|
/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 41 // Each segment of the array will be laid out with the following assumptions: 43 // - Each segment will be on a cache-line address boundary (kCacheLineSize 50 // Segment, aligned properly, and the rest of the elements are accessed argument 53 // We then compute the size of the segment to follow this logic: 61 static constexpr uint64_t SegmentControlBlockSize = sizeof(Segment *) * 2; 72 "Must have at least 1 element per segment."); 74 static Segment SentinelSegment; [all …]
|
/llvm-project/llvm/test/tools/llvm-objdump/ELF/ |
H A D | program-headers.test | 157 ## Case 1: an arbitrary segment with sections. 163 ## Case 2: another segment with different sections. 169 ## Case 3: the PT_NULL segment. 175 ## Case 4: the PT_DYNAMIC segment. 181 ## Case 5: the PT_INTERP segment. 187 ## Case 6: the PT_NOTE segment. 192 ## Case 7: the PT_SHLIB segment. 197 ## Case 8: the PT_TLS segment. 202 ## Case 9: the PT_LOOS segment. 207 ## Case 10: the PT_GNU_EH_FRAME segment. [all …]
|
/llvm-project/llvm/tools/obj2yaml/ |
H A D | wasm2yaml.cpp | 102 for (const object::WasmSegment &Segment : Obj.dataSegments()) { in dumpCustomSection() local 103 if (!Segment.Data.Name.empty()) { in dumpCustomSection() 105 SegmentInfo.Name = Segment.Data.Name; in dumpCustomSection() 107 SegmentInfo.Alignment = Segment.Data.Alignment; in dumpCustomSection() 108 SegmentInfo.Flags = Segment.Data.LinkingFlags; in dumpCustomSection() 111 if (Segment.Data.Comdat != UINT32_MAX) { in dumpCustomSection() 112 LinkingSec->Comdats[Segment.Data.Comdat].Entries.emplace_back( in dumpCustomSection() 334 for (auto &Segment : Obj.elements()) { in dump() local 336 Seg.Flags = Segment.Flags; in dump() 337 Seg.TableNumber = Segment.TableNumber; in dump() [all …]
|
/llvm-project/openmp/runtime/src/ |
H A D | z_Windows_NT-586_asm.asm | 24 _TEXT SEGMENT PARA USE32 PUBLIC 'CODE' 26 _DATA SEGMENT DWORD USE32 PUBLIC 'DATA' 28 CONST SEGMENT DWORD USE32 PUBLIC 'CONST' 30 _BSS SEGMENT DWORD USE32 PUBLIC 'BSS' 32 $$SYMBOLS SEGMENT BYTE USE32 'DEBSYM' 34 $$TYPES SEGMENT BYTE USE32 'DEBTYP' 36 _TLS SEGMENT DWORD USE32 PUBLIC 'TLS' 51 _TEXT SEGMENT 68 _TEXT SEGMENT 118 _TEXT SEGMENT [all …]
|
/llvm-project/llvm/test/MC/MachO/ |
H A D | x86_64-sections.s | 1 …n10 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment - | FileCheck %s 62 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 82 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 101 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 120 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 139 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 158 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 177 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 196 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 215 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) [all …]
|