Skip to content

Commit afd9e35

Browse files
[LangRef] document override-stack-alignment module flag
This module flag was added in D103048. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D158524
1 parent 426c2c4 commit afd9e35

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

llvm/docs/LangRef.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7829,6 +7829,20 @@ Some optimisations are only when the entire LTO unit is present in the current
78297829
module. This is represented by the ``LTOPostLink`` module flags metadata, which
78307830
will be created with a value of ``1`` when LTO linking occurs.
78317831

7832+
Stack Alignment Metadata
7833+
------------------------
7834+
7835+
Changes the default stack alignment from the target ABI's implicit default
7836+
stack alignment. Takes an i32 value in bytes. It is considered an error to link
7837+
two modules together with different values for this metadata.
7838+
7839+
For example:
7840+
7841+
!llvm.module.flags = !{!0}
7842+
!0 = !{i32 1, !"override-stack-alignment", i32 8}
7843+
7844+
This will change the stack alignment to 8B.
7845+
78327846
Embedded Objects Names Metadata
78337847
===============================
78347848

0 commit comments

Comments
 (0)