[PATCH] D46386: Adding __atomic_fetch_min/max intrinsics to clang
Elena Demikhovsky via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 4 04:54:48 PDT 2018
delena added a comment.
In https://reviews.llvm.org/D46386#1087533, @Anastasia wrote:
> Is this some sort of a vendor extension then? OpenCL 1.2 atomic builtins don't have ordering parameter.
OpenCL 1.2 atomic builtins have relaxed semantics. Always, it is not parameter, it is defined behavior. I want to translate them to atomicrmw instruction and use one of clang intrinsics for this.
I can't use _sync_fetch_*, due to the different semantics. The __atomic_* allow to specify semantics, but min/max is missing in this set.
Repository:
rC Clang
https://reviews.llvm.org/D46386
More information about the cfe-commits
mailing list