[PATCH] D106111: opencl-c.h: add initial CL 3.0 conditionals for atomic operations.

Anton Zabaznov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 20 02:59:31 PDT 2021


azabaznov added a comment.

You also need to guard //memory_order_seq_cst// enum entry. Note that //memory_order_acq_rel// is always defined as it can be used in //atomic_work_item_fence()// built-in function, AFAIR in all other cases if //memory_order_acq_rel// is used without //__opencl_c_atomic_order_acq_rel// feature it is undefined behavior.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106111/new/

https://reviews.llvm.org/D106111



More information about the cfe-commits mailing list