[all-commits] [llvm/llvm-project] 75fcae: [libclc] Fix memory_scope and memory_order of *mem...
Wenju He via All-commits
all-commits at lists.llvm.org
Fri Feb 13 17:48:15 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 75fcaef3b60367e293e4208c8d88803f8650f3e1
https://github.com/llvm/llvm-project/commit/75fcaef3b60367e293e4208c8d88803f8650f3e1
Author: Wenju He <wenju.he at intel.com>
Date: 2026-02-14 (Sat, 14 Feb 2026)
Changed paths:
M libclc/opencl/lib/amdgcn/mem_fence/fence.cl
M libclc/opencl/lib/ptx-nvidiacl/mem_fence/fence.cl
Log Message:
-----------
[libclc] Fix memory_scope and memory_order of *mem_fence builtins (#181311)
See OpenCL spec 6.15.12.5.
https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_C.html#fences
// Older syntax memory fences are equivalent to atomic_work_item_fence
with the // same flags parameter, memory_scope_work_group scope, and
ordering as follows:
void mem_fence(cl_mem_fence_flags flags) // memory_order_acq_rel
void read_mem_fence(cl_mem_fence_flags flags) // memory_order_acquire
void write_mem_fence(cl_mem_fence_flags flags) // memory_order_release
---------
Co-authored-by: Copilot <175728472+Copilot at users.noreply.github.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list