[PATCH] D108962: [docs] [NFC] Clarify the datalayout documentation
William Woodruff via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 30 20:39:12 PDT 2021
woodruffw updated this revision to Diff 369616.
woodruffw edited the summary of this revision.
woodruffw added a comment.
Also clarify that `<pref>` is optional in pointer alignment specifications.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108962/new/
https://reviews.llvm.org/D108962
Files:
llvm/docs/LangRef.rst
Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -2556,7 +2556,7 @@
``A<address space>``
Specifies the address space of objects created by '``alloca``'.
Defaults to the default address space of 0.
-``p[n]:<size>:<abi>:<pref>:<idx>``
+``p[n]:<size>:<abi>[:<pref>][:<idx>]``
This specifies the *size* of a pointer and its ``<abi>`` and
``<pref>``\erred alignments for address space ``n``. The fourth parameter
``<idx>`` is a size of index that used for address calculation. If not
@@ -2569,13 +2569,13 @@
``<size>``. The value of ``<size>`` must be in the range [1,2^23).
``v<size>:<abi>:<pref>``
This specifies the alignment for a vector type of a given bit
- ``<size>``.
+ ``<size>``. The value of ``<size>`` must be in the range [1,2^23).
``f<size>:<abi>:<pref>``
This specifies the alignment for a floating-point type of a given bit
``<size>``. Only values of ``<size>`` that are supported by the target
will work. 32 (float) and 64 (double) are supported on all targets; 80
or 128 (different flavors of long double) are also supported on some
- targets.
+ targets. The value of ``<size>`` must be in the range [1,2^23).
``a:<abi>:<pref>``
This specifies the alignment for an object of aggregate type.
``F<type><abi>``
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108962.369616.patch
Type: text/x-patch
Size: 1401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210831/ed4af501/attachment.bin>
More information about the llvm-commits
mailing list