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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to