[PATCH] D10524: Clang/driver: emulated TLS mode.
Chih-Hung Hsieh
chh at google.com
Tue Jul 14 15:47:48 PDT 2015
chh added a comment.
Reid, -femulated-tls and the defaults sound good to me.
I don't know much of clang's other passes yet. I made the emulated mode as similar to other 4 modes as possible and it seemed to be the easiest approach for me.
Could you tell me the best way to pass the -femulated-tls to llvm backend?
With -femulated-tls, we don't need attribute tls_model("emulated").
(1) If other tls_model attributes found by clang are passed to llvm, e.g., as thread_local(localexec) attribute, llvm will need a separate flag to process them like thread_local(emulated) attribute. Would this be a per compilation unit flag?
(2) If clang converts all other tls_model attributes and the default to thread_local(emulated) for llvm, we can use most of http://reviews.llvm.org/D10522 as is, and llvm can handle 5 TLS modes in one compilation unit.
http://reviews.llvm.org/D10524
More information about the llvm-commits
mailing list