[PATCH] D132352: Introduce noread_thread_id to address the thread identification problem in coroutines
John McCall via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 22 13:43:01 PDT 2022
rjmccall added inline comments.
================
Comment at: llvm/docs/LangRef.rst:1931
+ This attribute indicates that the function does not read thread id.
+ The behavior of noread_thread_id shouldn't depend on the thread it lives in.
+
----------------
Suggestion:
> This attribute indicates that the function does not rely on the
> identity of the current thread in any way, such as by reading the
> current thread ID or taking the address of a thread-local variable.
> If the function does rely on the identity of the current thread,
> the behavior is undefined.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132352/new/
https://reviews.llvm.org/D132352
More information about the llvm-commits
mailing list