| /llvm-project-15.0.7/llvm/test/MC/RISCV/ |
| H A D | expressions.s | 4 .quad tls 6 lui a0, %hi(tls+0-.Ltmp1) 8 lw a0, %lo(tls+0-.Ltmp1)(t0) 10 lui a0, %tprel_hi(tls+0-.Ltmp1) 12 add a0, a0, tp, %tprel_add(tls+0-.Ltmp1) 14 addi a0, a0, %tprel_lo(tls+0-.Ltmp1) 20 auipc a0, %pcrel_hi(tls-.Ltmp1) 22 auipc a0, %got_pcrel_hi(tls-.Ltmp1) 24 addi a0, a0, %pcrel_lo(tls-.Ltmp1) 27 # tail tls+32 [all …]
|
| H A D | rvi-pseudos.s | 86 la.tls.ie a0, a_symbol 92 la.tls.ie a1, another_symbol 99 la.tls.ie a2, zero 105 la.tls.ie a3, ra 111 la.tls.ie a4, f1 116 la.tls.gd a0, a_symbol 121 la.tls.gd a1, another_symbol 127 la.tls.gd a2, zero 132 la.tls.gd a3, ra 137 la.tls.gd a4, f1
|
| /llvm-project-15.0.7/libc/loader/linux/x86_64/ |
| H A D | start.cpp | 40 if (app.tls.size == 0) { in init_tls() 47 uintptr_t tlsSize = app.tls.size & -app.tls.align; in init_tls() 48 if (tlsSize != app.tls.size) in init_tls() 49 tlsSize += app.tls.align; in init_tls() 159 app.tls.size = 0; in _start() 166 app.tls.size = phdr->p_memsz; in _start() 168 app.tls.align = phdr->p_align; in _start() 171 __llvm_libc::TLSDescriptor tls; in _start() local 172 __llvm_libc::init_tls(tls); in _start() 173 if (tls.size != 0 && !__llvm_libc::set_thread_ptr(tls.tp)) in _start() [all …]
|
| /llvm-project-15.0.7/libc/loader/linux/aarch64/ |
| H A D | start.cpp | 42 if (app.tls.size == 0) { in init_tls() 146 app.tls.size = 0; in _start() 152 app.tls.address = phdr->p_vaddr; in _start() 153 app.tls.size = phdr->p_memsz; in _start() 154 app.tls.init_size = phdr->p_filesz; in _start() 155 app.tls.align = phdr->p_align; in _start() 158 __llvm_libc::TLSDescriptor tls; in _start() local 159 __llvm_libc::init_tls(tls); in _start() 160 if (tls.size != 0) in _start() 161 __llvm_libc::set_thread_ptr(tls.tp); in _start() [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/WebAssembly/ |
| H A D | tls-general-dynamic.ll | 11 ; TLS-DAG: i32.const tls@TLSREL 15 ; NO-TLS-NEXT: i32.const tls 35 ; TLS-DAG: i32.const tls@TLSREL 39 ; NO-TLS-NEXT: i32.const tls 41 ret i32* @tls 59 ; TLS-DAG: i32.const tls@TLSREL 65 ; NO-TLS-NEXT: i32.load tls 89 ; TLS-DAG: i32.const tls@TLSREL 95 ; NO-TLS-NEXT: i32.store tls 153 ; CHECK: .type tls,@object [all …]
|
| H A D | tls-local-exec.ll | 17 ; TLS-DAG: i32.const tls@TLSREL 21 ; NO-TLS-NEXT: i32.const tls 43 ; TLS-DAG: i32.const tls@TLSREL 47 ; NO-TLS-NEXT: i32.const tls 49 ret i32* @tls 56 ; TLS-DAG: i32.const tls@TLSREL 62 ; NO-TLS-NEXT: i32.load tls 72 ; TLS-DAG: i32.const tls@TLSREL 78 ; NO-TLS-NEXT: i32.store tls 93 ; CHECK: .type tls,@object [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/Windows/ |
| H A D | ThreadLocal.inc | 25 DWORD* tls = reinterpret_cast<DWORD*>(&data); 26 *tls = TlsAlloc(); 27 assert(*tls != TLS_OUT_OF_INDEXES); 31 DWORD* tls = reinterpret_cast<DWORD*>(&data); 32 TlsFree(*tls); 36 DWORD* tls = reinterpret_cast<DWORD*>(&data); 37 return TlsGetValue(*tls); 41 DWORD* tls = reinterpret_cast<DWORD*>(&data); 42 int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
|
| /llvm-project-15.0.7/llvm/test/MC/PowerPC/ |
| H A D | ppc64-tls-relocs-01.s | 9 lwzx 4, 3, t@tls 10 lhzx 4, 3, t@tls 11 lbzx 4, 3, t@tls 12 ldx 4, 3, t@tls 13 stbx 4, 3, t@tls 14 sthx 4, 3, t@tls 15 stwx 4, 3, t@tls 16 stdx 4, 3, t@tls
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/COFF/ |
| H A D | tls-directory.test | 1 ## Tests for the --coff-tls-directory flag. 3 ## Test that the output of --coff-tls-directory works on x86. 10 # RUN: llvm-readobj --coff-tls-directory %t.32.exe | FileCheck %s --check-prefix I386 26 ## Test that the output of --coff-tls-directory errors on malformed input. 68 ## Test that the output of --coff-tls-directory works on x86_64. 75 # RUN: llvm-readobj --coff-tls-directory %t.64.exe | FileCheck %s --check-prefix X86-64 91 ## Test that the output of --coff-tls-directory errors on malformed input. 104 # RUN: yaml2obj %s --docnum=2 -o %t.bad-tls-rva.exe -DTLSRVA=999999 -DTLSSIZE=40 105 # RUN: not llvm-readobj --coff-tls-directory %t.bad-tls-rva.exe 2>&1 | FileCheck -DFILE=%t.bad-tls-… 142 ## Test that --coff-tls-directory doesn't output anything if there's no TLS directory. [all …]
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/PowerPC/ |
| H A D | tls.ll | 6 ; 10 bytes of data in this DW_FORM_block1 representation of the location of 'tls' 10 ; The debug relocation of the address of the tls variable 11 ; CHECK: .quad tls@DTPREL+32768 15 source_filename = "test/DebugInfo/PowerPC/tls.ll" 17 @tls = thread_local global i32 7, align 4, !dbg !0 23 !1 = !DIGlobalVariable(name: "tls", scope: null, file: !2, line: 1, type: !3, isLocal: false, isDef… 24 !2 = !DIFile(filename: "tls.cpp", directory: "/tmp")
|
| H A D | tls-fission.ll | 7 ; 3 bytes of data in this DW_FORM_block1 representation of the location of 'tls' 18 ; CHECK-NEXT: .quad tls@DTPREL+32768 20 source_filename = "test/DebugInfo/PowerPC/tls-fission.ll" 22 @tls = thread_local global i32 0, align 4, !dbg !0 28 !1 = !DIGlobalVariable(name: "tls", scope: null, file: !2, line: 1, type: !3, isLocal: false, isDef… 29 !2 = !DIFile(filename: "tls.cpp", directory: "/tmp") 31 …version 3.4 ", isOptimized: false, runtimeVersion: 0, splitDebugFilename: "tls.dwo", emissionKind:…
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | tls-pie-xform.ll | 14 ; CHECK-NEXT: lbzx 3, 3, var_char@tls 26 ; CHECK-NEXT: stbx 3, 4, var_char@tls 39 ; CHECK-NEXT: lbzx 5, 4, var_char@tls 42 ; CHECK-NEXT: stbx 5, 4, var_char@tls 56 ; CHECK-NEXT: lhzx 3, 3, var_short@tls 68 ; CHECK-NEXT: sthx 3, 4, var_short@tls 81 ; CHECK-NEXT: lhzx 5, 4, var_short@tls 98 ; CHECK-NEXT: lwzx 3, 3, var_int@tls 110 ; CHECK-NEXT: stwx 3, 4, var_int@tls 122 ; CHECK-NEXT: lwzx 5, 4, var_int@tls [all …]
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | ppc32-tls-ie.s | 35 add 10, 10, a@tls 38 lbzx 10, 8, c@tls 40 ## In IE, these instructions (op rT, rA, x@tls) are not changed. 54 lhzx 12, 2, s@tls 55 lwzx 13, 3, i@tls 56 stbx 14, 4, c@tls 57 sthx 15, 5, s@tls 58 stwx 16, 6, i@tls
|
| H A D | ppc64-tls-ie.s | 47 lbzx 3, 3, c@tls 64 lhzx 3, 3, s@tls 81 lwzx 3, 3, i@tls 98 ldx 3, 3, l@tls 107 stbx 3, 4, c@tls 117 sthx 3, 4, s@tls 127 stwx 3, 4, i@tls 136 stdx 3, 4, l@tls 145 add 3, 3, i@tls 152 stdx 3, 4, l@tls
|
| H A D | ppc64-tls-pcrel-ie.s | 74 add 3, 3, x@tls@pcrel 88 add 4, 3, x@tls@pcrel 102 lwzx 3, 3, x@tls@pcrel 121 lwzx 3, 3, x@tls@pcrel 122 lwzx 4, 4, y@tls@pcrel 138 lwzx 3, 4, y@tls@pcrel 139 stwx 3, 4, y@tls@pcrel
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/X86/ |
| H A D | tls.ll | 22 ; RUN: llc %s -o - -filetype=asm -O0 -mtriple=i386-linux-gnu -emulated-tls \ 25 ; TODO: Add expected output for -emulated-tls tests. 33 ; 3 bytes of data in this DW_FORM_exprloc representation of the location of 'tls' 43 ; 10 bytes of data in this DW_FORM_exprloc representation of the location of 'tls' 47 ; SINGLE-64-NEXT: .quad tls@DTPOFF 58 ; SINGLE-32-NEXT: .long tls@DTPOFF 82 ; FISSION-NEXT: .quad tls@DTPOFF 88 ; __thread int tls; 98 source_filename = "test/DebugInfo/X86/tls.ll" 100 @tls = thread_local global i32 0, align 4, !dbg !0 [all …]
|
| /llvm-project-15.0.7/llvm/test/ExecutionEngine/OrcLazy/ |
| H A D | emulated-tls.ll | 1 ; RUN: not lli -no-process-syms -emulated-tls -jit-kind=orc-lazy %s 2>&1 \ 4 ; Test that emulated-tls does not generate any unexpected errors. 7 ; emulated-tls as this would require the JIT itself, in this case lli, to be 8 ; built with emulated-tls, which is not a common configuration. Instead we test 9 ; that the only error produced by the JIT for a thread-local with emulated-tls 12 ; tls lowering was applied, and (2) that thread locals defined in the JIT'd code
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | arm64-tls-local-exec.ll | 2 ; RUN: llc -mtriple=arm64-none-linux-gnu -verify-machineinstrs -show-mc-encoding -tls-size=12 < %s … 3 ; RUN: llc -mtriple=arm64-none-linux-gnu -filetype=obj < %s -tls-size=12 | llvm-objdump -r - | File… 4 …4-none-linux-gnu -verify-machineinstrs -show-mc-encoding -code-model=tiny -tls-size=24 < %s | File… 5 ; RUN: llc -mtriple=arm64-none-linux-gnu -filetype=obj < %s -code-model=tiny -tls-size=24 | llvm-ob… 6 …-none-linux-gnu -verify-machineinstrs -show-mc-encoding -code-model=small -tls-size=32 < %s | File… 7 ; RUN: llc -mtriple=arm64-none-linux-gnu -filetype=obj < %s -code-model=small -tls-size=32 | llvm-o… 8 …-none-linux-gnu -verify-machineinstrs -show-mc-encoding -code-model=large -tls-size=48 < %s | File… 9 ; RUN: llc -mtriple=arm64-none-linux-gnu -filetype=obj < %s -code-model=large -tls-size=48 | llvm-o… 12 ; RUN: llc -mtriple=arm64-none-linux-gnu -verify-machineinstrs -show-mc-encoding -tls-size=32 < %s … 13 ; RUN: llc -mtriple=arm64-none-linux-gnu -filetype=obj < %s -tls-size=32 | llvm-objdump -r - | File… [all …]
|
| H A D | emutls_generic.ll | 1 ; RUN: llc < %s -emulated-tls -mtriple=aarch64-linux-android -relocation-model=pic \ 3 ; RUN: llc < %s -emulated-tls -mtriple=aarch64-linux-android -relocation-model=pic -O3 \ 5 ; RUN: llc < %s -emulated-tls -mtriple=aarch64-linux-android -O3 \ 7 ; RUN: llc < %s -emulated-tls -mtriple=aarch64-windows-gnu -O3 \ 9 ; RUN: llc < %s -emulated-tls -mtriple=aarch64-apple-darwin -O3 \ 18 ; aarch64-windows-gnu needs explicit -emulated-tls
|
| /llvm-project-15.0.7/libc/src/__support/threads/linux/ |
| H A D | thread.cpp | 86 cleanup_tls(attrib->tls, attrib->tls_size); in cleanup_thread_resources() 155 TLSDescriptor tls; in run() local 156 init_tls(tls); in run() 182 attrib->tls = tls.addr; in run() 183 attrib->tls_size = tls.size; in run() 204 tls.tp // The thread pointer value for the new thread. in run() 211 tls.tp, // The thread pointer value for the new thread. in run()
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/ARM/ |
| H A D | tls.ll | 3 ; RUN: llc -O0 -filetype=asm -mtriple=armv7-linux-gnuehabi -emulated-tls < %s \ 9 source_filename = "test/DebugInfo/ARM/tls.ll" 20 ; The debug relocation of the address of the tls variable 23 ; TODO: Add expected output for -emulated-tls tests. 28 !2 = !DIFile(filename: "tls.c", directory: "/tmp")
|
| /llvm-project-15.0.7/llvm/test/MC/ARM/ |
| H A D | thumb-types.s | 15 @ CHECK-NEXT: 11: 00000000 4 TLS LOCAL DEFAULT 5 tls 52 .long tls(TPOFF) 68 .type tls,%object 70 tls: label 72 .size tls, 4
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | emutls_generic.ll | 1 ; RUN: llc < %s -emulated-tls -mtriple=arm-linux-android -relocation-model=pic \ 3 ; RUN: llc < %s -emulated-tls -mtriple=arm-linux-androidabi -relocation-model=pic \ 5 ; RUN: llc < %s -emulated-tls -mtriple=arm-linux-androidabi -relocation-model=pic -O3 \ 7 ; RUN: llc < %s -emulated-tls -mtriple=arm-linux-androidabi -O3 \ 9 ; RUN: llc < %s -emulated-tls -mtriple=arm-apple-darwin -O3 \ 11 ; RUN: llc < %s -emulated-tls -mtriple=thumbv7-windows-gnu -O3 \ 22 ; arm-apple-darwin must use -emulated-tls 23 ; windows must use -emulated-tls
|
| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | tls_suffix_sorting.s | 9 # Check that .tls$$foo is sorted after the start marker (aa) and before the 12 # CHECK: Contents of section .tls: 24 .section .tls$$foo,"dw"
|
| /llvm-project-15.0.7/llvm/test/CodeGen/RISCV/ |
| H A D | mir-target-flags.ll | 27 ; RV32-SMALL: target-flags(riscv-tls-got-hi) @t_un 31 ; RV32-SMALL: target-flags(riscv-tls-got-hi) @t_ld 33 ; RV32-SMALL: target-flags(riscv-tls-got-hi) @t_ie 45 ; RV32-MED: target-flags(riscv-tls-gd-hi) @t_un 48 ; RV32-MED: target-flags(riscv-tls-gd-hi) @t_ld 51 ; RV32-MED: target-flags(riscv-tls-got-hi) @t_ie
|