Skip to content

[Clang][NFC] Fix documentation for add_ir_annotations_member attribute #5973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions clang/include/clang/Basic/AttrDocs.td
Original file line number Diff line number Diff line change
Expand Up @@ -3629,6 +3629,7 @@ occur after the first argument of the attribute, the N+2'th argument of the
attribute will occur after the second argument of the attribute, etc.
The generated call to ``llvm.ptr.annotation`` will have the following arguments
in this order:

* First argument is a pointer to the field.
* A pointer to a string literal in a constant global variable. This will
always be "sycl-properties".
Expand All @@ -3639,6 +3640,7 @@ in this order:
literals in constant global variables. These pointers to string literals
occur in pairs. If the second value of a pair was a ``nullptr`` or an empty
string then the pointer will be a null-pointer.

A pair will not be in the call to ``llvm.ptr.annotation`` if the first value of
the pair is an empty string.

Expand Down