================
@@ -9,9 +9,17 @@
 #include <clc/opencl/synchronization/utils.h>
 #include <clc/synchronization/clc_work_group_barrier.h>
 
-_CLC_DEF _CLC_OVERLOAD void barrier(cl_mem_fence_flags flags) {
-  int memory_scope = __opencl_get_memory_scope(flags);
+_CLC_DEF _CLC_OVERLOAD void work_group_barrier(cl_mem_fence_flags flags,
+                                               memory_scope scope) {
   int memory_order = __ATOMIC_SEQ_CST;
   __CLC_MemorySemantics memory_semantics = 
__opencl_get_memory_semantics(flags);
-  __clc_work_group_barrier(memory_scope, memory_order, memory_semantics);
+  __clc_work_group_barrier(scope, memory_order, memory_semantics);
+}
+
+_CLC_DEF _CLC_OVERLOAD void work_group_barrier(cl_mem_fence_flags flags) {
----------------
wenju-he wrote:

rename this file to work_group_barrier.cl since the name is clear and barrier 
is the old name?

https://github.com/llvm/llvm-project/pull/184780
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to