[PATCH] D158524: [LangRef] document override-stack-alignment module flag
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 22 09:27:06 PDT 2023
nickdesaulniers created this revision.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This module flag was added in D103048 <https://reviews.llvm.org/D103048>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158524
Files:
llvm/docs/LangRef.rst
Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -7822,6 +7822,17 @@
module. This is represented by the ``LTOPostLink`` module flags metadata, which
will be created with a value of ``1`` when LTO linking occurs.
+Stack Alignment Metadata
+------------------------
+
+Changes the default stack alignment from the target ABI's implicit default
+stack alignment. Takes an i32 values in bytes. For example:
+
+ !llvm.module.flags = !{!0}
+ !0 = !{i32 1, !"override-stack-alignment", i32 8}
+
+This will change the stack alignment to 8B.
+
Embedded Objects Names Metadata
===============================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158524.552404.patch
Type: text/x-patch
Size: 716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230822/729dcb79/attachment.bin>
More information about the llvm-commits
mailing list