azabaznov added inline comments.

================
Comment at: clang/include/clang/Basic/OpenCLExtensions.def:113
 OPENCL_OPTIONALCOREFEATURE(__opencl_c_atomic_order_seq_cst, false, 300, 
OCL_C_30)
+OPENCL_OPTIONALCOREFEATURE(__opencl_c_atomic_scope_all_devices, false, 300, 
OCL_C_30)
 OPENCL_OPTIONALCOREFEATURE(__opencl_c_subgroups, false, 300, OCL_C_30)
----------------
This feature is header only. We had a lot of discussions on that and the main 
idea was not to declare header only features/extensions in 
`OpenCLExtensions.def` and use `-D__opencl_c_atomic_scope_all_devices=1` 
instead, @Anastasia can comment on this.

I personally would like to introduce new flag for OpenCL options in 
`OpenCLExtensions.def` which will indicate that feature/extension is 
header-only, and thus all of such options can be declared in 
`OpenCLExtensions.def`: if flag is set to true it can be stripped out from the 
parser. What do you think about this?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103241

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

Reply via email to