[PATCH] D10524: Clang/driver: emulated TLS mode.
Reid Kleckner
rnk at google.com
Tue Jul 14 09:33:45 PDT 2015
rnk added a subscriber: rnk.
rnk added a comment.
How does GCC do expose this model? Do they support `__attribute__((tls_model("emulated")))`, or is it a backend option like Joerg is suggesting?
If we go the backend option route, it doesn't have to be specific to Android, we can have some target predicate that can change in the future like `useGCCEmulatedTLS()`.
================
Comment at: test/CodeGenCXX/cxx11-thread-local.cpp:3
@@ +2,3 @@
+// RUN: %clang_cc1 -std=c++11 -ftls-model=emulated -emit-llvm %s -o - \
+// RUN: -triple x86_64-linux-gnu | FileCheck --check-prefix=EMU %s
+
----------------
You can avoid duplicating the CHECK lines by giving FileCheck multiple prefixes:
| FileCheck --check-prefix=COMMON --check-prefix=EMU %s
http://reviews.llvm.org/D10524
More information about the llvm-commits
mailing list