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

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


  Branch: refs/heads/users/arsenm/libclc/define-work_group_barrier
  Home:   https://github.com/llvm/llvm-project
  Commit: 8aeee1114aa3c06f475040706535ba4ebacb70a0
      https://github.com/llvm/llvm-project/commit/8aeee1114aa3c06f475040706535ba4ebacb70a0
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-03-05 (Thu, 05 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: 0baa2d49fab68adb0ee49adfd0b2c82a20a22982
      https://github.com/llvm/llvm-project/commit/0baa2d49fab68adb0ee49adfd0b2c82a20a22982
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-03-05 (Thu, 05 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: ccd5fd77ceaa685068003dd51dc8ca6683782966
      https://github.com/llvm/llvm-project/commit/ccd5fd77ceaa685068003dd51dc8ca6683782966
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-03-05 (Thu, 05 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: c6e2ff84bb916cb7f370eb8befe7e50945427259
      https://github.com/llvm/llvm-project/commit/c6e2ff84bb916cb7f370eb8befe7e50945427259
  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/fb1121334150...c6e2ff84bb91

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