[all-commits] [llvm/llvm-project] ed5880: libclc: Define work_group_barrier

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Mar 5 15:32:36 PST 2026


  Branch: refs/heads/users/arsenm/libclc/define-work_group_barrier
  Home:   https://github.com/llvm/llvm-project
  Commit: ed5880ae2bbbb578e96d80b910d7d12cb5a5af75
      https://github.com/llvm/llvm-project/commit/ed5880ae2bbbb578e96d80b910d7d12cb5a5af75
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    M libclc/opencl/lib/amdgcn/SOURCES
    R libclc/opencl/lib/amdgcn/synchronization/barrier.cl
    M libclc/opencl/lib/generic/SOURCES
    M libclc/opencl/lib/generic/async/wait_group_events.cl
    A libclc/opencl/lib/generic/synchronization/barrier.cl
    M libclc/opencl/lib/ptx-nvidiacl/SOURCES
    R libclc/opencl/lib/ptx-nvidiacl/synchronization/barrier.cl

  Log Message:
  -----------
  libclc: Define work_group_barrier

Previously only the old barrier name was implemented. Define this
as an indirection around the new name, and move it to common code.
The target implementations are already provided by __clc_work_group_barrier,
so targets were unnecessarily duplicating these.

This also fixes the default scope, which should be
memory_work_group_scope. Previously this was guessing that
if the flags included global memory, it makes the scope
device which is not the case.


  Commit: 780fdb825566b626e2ceb7a0a83aab1294212ba4
      https://github.com/llvm/llvm-project/commit/780fdb825566b626e2ceb7a0a83aab1294212ba4
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    R libclc/opencl/lib/generic/synchronization/barrier.cl
    A libclc/opencl/lib/generic/synchronization/work_group_barrier.cl

  Log Message:
  -----------
  Rename file


  Commit: 31fe34ae60a6442af958371627e7cf2ba8f07d23
      https://github.com/llvm/llvm-project/commit/31fe34ae60a6442af958371627e7cf2ba8f07d23
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    M libclc/opencl/lib/generic/SOURCES
    M libclc/opencl/lib/generic/synchronization/work_group_barrier.cl

  Log Message:
  -----------
  Use __opencl_get_clang_memory_scope


  Commit: 211bef970114a1dea27a49a325323707493c5194
      https://github.com/llvm/llvm-project/commit/211bef970114a1dea27a49a325323707493c5194
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    M libclc/opencl/lib/generic/synchronization/work_group_barrier.cl

  Log Message:
  -----------
  __opencl_get_clang_memory_scope


Compare: https://github.com/llvm/llvm-project/compare/c6e2ff84bb91...211bef970114

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