[clang] [llvm] [PowerPC] Tune AIX shared library TLS model at function level by heuristic (PR #84132)

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 16 09:12:37 PDT 2024


================
@@ -5019,6 +5019,10 @@ def maix_small_local_exec_tls : Flag<["-"], "maix-small-local-exec-tls">,
            "where the offset from the TLS base is encoded as an "
            "immediate operand (AIX 64-bit only). "
            "This access sequence is not used for variables larger than 32KB.">;
+def maix_shared_lib_tls_model_opt : Flag<["-"], "maix-shared-lib-tls-model-opt">,
+  Group<m_ppc_Features_Group>,
+  HelpText<"For shared library loaded with the main program, use heuristics to "
+           "tune the TLS model at the function level (AIX 64-bit only).">;
----------------
hubert-reinterpretcast wrote:

This does not describe the scope of what TLS accesses are modified (but it should). I have not looked through the rest of the code yet, but the answer should be `local-dynamic` accesses may be changed to `initial-exec`.

https://github.com/llvm/llvm-project/pull/84132


More information about the cfe-commits mailing list