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

2021-07-25 Thread Dave Airlie via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG9451403c5f8c: [OPENCL] opencl-c.h: add initial CL 3.0 conditionals for atomic operations. (authored by airlied). Changed prior to commit: https://

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

2021-07-20 Thread Dave Airlie via Phabricator via cfe-commits
airlied updated this revision to Diff 360349. airlied added a comment. add conditional around memory_order_seq_cst Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D106111/new/ https://reviews.llvm.org/D106111 Files: clang/lib/Headers/opencl-c-base.

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

2021-07-20 Thread Anton Zabaznov via Phabricator via cfe-commits
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_atom

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

2021-07-19 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a subscriber: azabaznov. Anastasia added a comment. CC @azabaznov in case he has any feedback. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D106111/new/ https://reviews.llvm.org/D106111 _

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

2021-07-19 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D106111/new/ https://reviews.llvm.org/D106111

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

2021-07-15 Thread Dave Airlie via Phabricator via cfe-commits
airlied created this revision. airlied added a project: clang. Herald added subscribers: ldrumm, jfb, Anastasia, yaxunl. airlied requested review of this revision. Herald added a subscriber: cfe-commits. This adds the optional wrappers around things, however this isn't sufficient yet for CL 3.0 w