[llvm] [LangRef/DataLayout] Spell out requirements for alignment values (PR #104705)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 01:46:16 PDT 2024


================
@@ -3030,8 +3030,7 @@ as follows:
 ``S<size>``
     Specifies the natural alignment of the stack in bits. Alignment
     promotion of stack variables is limited to the natural stack
-    alignment to avoid dynamic stack realignment. The stack alignment
-    must be a multiple of 8-bits. If omitted, the natural stack
----------------
nikic wrote:

LangRef probably *should* mention somewhere that bytes are 8 bits large in LLVM -- this just isn't the right place, as it's a global assumption, not specific to only this one thing.

Not sure it makes sense to actually add that note *now* though, if there are plans to lift this restriction in the near future.

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


More information about the llvm-commits mailing list