[PATCH] D106343: [OpenCL] Support cl_ext_float_atomics
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 5 04:34:40 PDT 2021
Anastasia added inline comments.
================
Comment at: clang/lib/Headers/opencl-c-base.h:24
#define cl_khr_subgroup_clustered_reduce 1
+#define cl_ext_float_atomics
+#ifdef cl_khr_fp16
----------------
svenvh wrote:
> Should this be defined as `1`?
>
> Should this define be tested in `clang/test/Headers/opencl-c-header.cl` too?
Actually, now that I think more about this, it seems incorrect to add this here without adding the functions to `OpenCLBuiltins.td` because then the feature macro will be present without the feature when the default header is used?
So I guess we either need to extend `OpenCLBuiltins.td` with new functions or move the new macros into `opencl-c.h`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106343/new/
https://reviews.llvm.org/D106343
More information about the cfe-commits
mailing list