This option allows selecting the TLS size in the local exec TLS model,
authorKAWASHIMA Takahiro <t-kawashima@fujitsu.com>
Mon, 13 Jan 2020 09:28:02 +0000 (09:28 +0000)
committerPeter Smith <peter.smith@linaro.org>
Mon, 13 Jan 2020 10:16:53 +0000 (10:16 +0000)
commit10c11e4e2d05cf0e8f8251f50d84ce77eb1e9b8d
tree77ec95e71e5e339ea077bf172e895f2de8dcb451
parent96b8e1ac4674dd3035b6cc7b1b7ed8b946208ab1
This option allows selecting the TLS size in the local exec TLS model,
which is the default TLS model for non-PIC objects. This allows large/
many thread local variables or a compact/fast code in an executable.

Specification is same as that of GCC. For example, the code model
option precedes the TLS size option.

TLS access models other than local-exec are not changed. It means
supoort of the large code model is only in the local exec TLS model.

Patch By KAWASHIMA Takahiro (kawashima-fj <t-kawashima@fujitsu.com>)
Reviewers: dmgreen, mstorsjo, t.p.northover, peter.smith, ostannard
Reviewd By: peter.smith
Committed by: peter.smith

Differential Revision: https://reviews.llvm.org/D71688
13 files changed:
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Driver/tls-size.c [new file with mode: 0644]
llvm/include/llvm/CodeGen/CommandFlags.inc
llvm/include/llvm/Target/TargetOptions.h
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
llvm/test/CodeGen/AArch64/arm64-tls-initial-exec.ll [moved from llvm/test/CodeGen/AArch64/arm64-tls-execs.ll with 59% similarity]
llvm/test/CodeGen/AArch64/arm64-tls-local-exec.ll [new file with mode: 0644]