Skip to content
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
6 changes: 6 additions & 0 deletions llvm/docs/LangRef.md
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,12 @@ Currently, only the following parameter attributes are defined:
met. For further details, please see the discussion of the NoAlias response
in {ref}`alias analysis <Must, May, or No>`.

`noalias` also applies to accesses from other threads, unless they
happen-before function entry, or function exit happens-before them. This
means that conflicting concurrent accesses from other threads either need
to be based on the noalias pointer, or else be appropriately synchronized
*outside* the function.

Note that this definition of `noalias` is intentionally similar
to the definition of `restrict` in C99 for function arguments.

Expand Down
Loading