
This enabled opaque pointers by default in LLVM. The effect of this is twofold: * If IR that contains *neither* explicit ptr nor %T* types is passed to tools, we will now use opaque pointer mode, unless -opaque-pointers=0 has been explicitly passed. * Users of LLVM as a library will now default to opaque pointers. It is possible to opt-out by calling setOpaquePointers(false) on LLVMContext. A cmake option to toggle this default will not be provided. Frontends or other tools that want to (temporarily) keep using typed pointers should disable opaque pointers via LLVMContext. Differential Revision: https://reviews.llvm.org/D126689
10 lines
337 B
LLVM
10 lines
337 B
LLVM
; RUN: llvm-link %s %p/Inputs/alias-threadlocal-defs.ll -S -o - | FileCheck %s
|
|
|
|
; PR46297
|
|
; Verify that linking GlobalAliases preserves the thread_local attribute
|
|
|
|
; CHECK: @tlsvar1 = thread_local global i32 0, align 4
|
|
; CHECK: @tlsvar2 = hidden thread_local alias i32, ptr @tlsvar1
|
|
|
|
@tlsvar2 = external thread_local global i32, align 4
|