Skip to content

Commit 178619d

Browse files
authored
[Clang] Fill in documentation gaps for some attributes (#68967)
This patch adds some missing documentation for some attributes in BitCodeFormat, where the integer code mappings for attributes after code 79 were not listed, and in LangRef where the incompatibility between minsize/optsize and optnone was not mentioned.
1 parent b0b8e83 commit 178619d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

llvm/docs/BitCodeFormat.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,14 @@ The integer codes are mapped to well-known attributes as follows.
10851085
* code 77: ``elementtype``
10861086
* code 78: ``disable_sanitizer_instrumentation``
10871087
* code 79: ``nosanitize_bounds``
1088+
* code 80: ``allocalign``
1089+
* code 81: ``allocptr``
1090+
* code 82: ``allockind``
1091+
* code 83: ``presplitcoroutine``
1092+
* code 84: ``fn_ret_thunk_extern``
1093+
* code 85: ``skipprofile``
1094+
* code 86: ``memory``
1095+
* code 87: ``nofpclass``
10881096

10891097
.. note::
10901098
The ``allocsize`` attribute has a special encoding for its arguments. Its two

llvm/docs/LangRef.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,7 @@ example:
18721872
passes make choices that keep the code size of this function as small
18731873
as possible and perform optimizations that may sacrifice runtime
18741874
performance in order to minimize the size of the generated code.
1875+
This attribute is incompatible with the ``optnone`` attribute.
18751876
``naked``
18761877
This attribute disables prologue / epilogue emission for the
18771878
function. This can have very system-specific consequences.
@@ -2044,6 +2045,7 @@ example:
20442045
passes make choices that keep the code size of this function low,
20452046
and otherwise do optimizations specifically to reduce code size as
20462047
long as they do not significantly impact runtime performance.
2048+
This attribute is incompatible with the ``optnone`` attribute.
20472049
``"patchable-function"``
20482050
This attribute tells the code generator that the code
20492051
generated for this function needs to follow certain conventions that

0 commit comments

Comments
 (0)