[PATCH] D46386: Adding __atomic_fetch_min/max intrinsics to clang

Al Grant via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 15 05:00:25 PDT 2018


algrant added a comment.

There is a (stalled) proposal to add atomic integer max/min to C++: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0493r0.pdf .  The proposal has memory semantics similar to these builtins, i.e. unconditional RMW. There is no limitation to 32-bit types though, what's the motivation for that? Is it a limitation of a particular target?


Repository:
  rL LLVM

https://reviews.llvm.org/D46386





More information about the cfe-commits mailing list