[AIX][TLS] Relax front end diagnostics to accept the local-exec TLS model
authorAmy Kwan <amy.kwan1@ibm.com>
Sat, 17 Jun 2023 05:31:35 +0000 (00:31 -0500)
committerAmy Kwan <amy.kwan1@ibm.com>
Mon, 19 Jun 2023 17:17:30 +0000 (12:17 -0500)
commit706b5472d897ca75ebd210e4109637793288bcf2
tree945657f5d4497965686994c69e2b50939c65082b
parentaeb99dc48a58f872465e818d0eda7d9c3f221e06
[AIX][TLS] Relax front end diagnostics to accept the local-exec TLS model

This patch relaxes the front end AIX diagnostics added in D102070 to accept the
local-exec TLS model, as we plan to support this model in a series of future patches.

The diagnostics are relaxed when local-exec is used as a compiler option to
`-ftls-model=*` and in the `__attribute__((tls_model("local-exec")))` attribute.

Differential Revision: https://reviews.llvm.org/D149596
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CodeGen/PowerPC/aix-tls-model.cpp
clang/test/Sema/aix-attr-tls_model.c