[PATCH] D55562: Atomics: support min/max orthogonally

2019-02-11 Thread Al Grant via Phabricator via cfe-commits
algrant added a comment. Herald added a project: clang. Some targets (e.g. AArch64) support 8-bit, 16-bit and 64-bit atomics. max/min in Clang 7.0 only supported 32-bit max/min, even though the other atomics supported multiple widths. Is the intention here to support all (four) offered widths,

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

2018-05-15 Thread Al Grant via Phabricator via cfe-commits
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,