[llvm] 776b749 - [TLS] Added a LangRef entry wrt the module flag MaxTLSAlign.
Wolfgang Pieb via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 13 15:28:51 PST 2023
Author: Wolfgang Pieb
Date: 2023-02-13T15:28:33-08:00
New Revision: 776b7499ea813c06b02bcc01e4d73703233bb0bb
URL: https://github.com/llvm/llvm-project/commit/776b7499ea813c06b02bcc01e4d73703233bb0bb
DIFF: https://github.com/llvm/llvm-project/commit/776b7499ea813c06b02bcc01e4d73703233bb0bb.diff
LOG: [TLS] Added a LangRef entry wrt the module flag MaxTLSAlign.
The module flag was introduced with commit 5d07e0448e38d4be0.
Added:
Modified:
llvm/docs/LangRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 1cb209dbfbe3..16e20293a622 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -716,7 +716,10 @@ to over-align the global if the global has an assigned section. In this
case, the extra alignment could be observable: for example, code could
assume that the globals are densely packed in their section and try to
iterate over them as an array, alignment padding would break this
-iteration. The maximum alignment is ``1 << 32``.
+iteration. For TLS variables, the module flag ``MaxTLSAlign``, if present,
+limits the alignment to the given value. Optimizers are not allowed to
+impose a stronger alignment on these variables. The maximum alignment
+is ``1 << 32``.
For global variables declarations, as well as definitions that may be
replaced at link time (``linkonce``, ``weak``, ``extern_weak`` and ``common``
More information about the llvm-commits
mailing list