[all-commits] [llvm/llvm-project] 3d21fa: libclc: Make all built-ins overloadable

Daniel Stone via All-commits all-commits at lists.llvm.org
Mon Aug 17 13:56:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d21fa56f5f5afbbf16b35b199480af71e1189a3
      https://github.com/llvm/llvm-project/commit/3d21fa56f5f5afbbf16b35b199480af71e1189a3
  Author: Daniel Stone <daniels at collabora.com>
  Date:   2020-08-17 (Mon, 17 Aug 2020)

  Changed paths:
    M libclc/amdgcn-amdhsa/lib/workitem/get_global_size.cl
    M libclc/amdgcn-amdhsa/lib/workitem/get_local_size.cl
    M libclc/amdgcn-amdhsa/lib/workitem/get_num_groups.cl
    M libclc/amdgcn/lib/mem_fence/fence.cl
    M libclc/amdgcn/lib/synchronization/barrier.cl
    M libclc/amdgcn/lib/workitem/get_global_offset.cl
    M libclc/amdgcn/lib/workitem/get_global_size.cl
    M libclc/amdgcn/lib/workitem/get_group_id.cl
    M libclc/amdgcn/lib/workitem/get_local_id.cl
    M libclc/amdgcn/lib/workitem/get_local_size.cl
    M libclc/amdgcn/lib/workitem/get_num_groups.cl
    M libclc/amdgcn/lib/workitem/get_work_dim.cl
    M libclc/generic/include/clc/async/wait_group_events.h
    M libclc/generic/include/clc/explicit_fence/explicit_memory_fence.h
    M libclc/generic/include/clc/synchronization/barrier.h
    M libclc/generic/include/clc/workitem/get_global_id.h
    M libclc/generic/include/clc/workitem/get_global_offset.h
    M libclc/generic/include/clc/workitem/get_global_size.h
    M libclc/generic/include/clc/workitem/get_group_id.h
    M libclc/generic/include/clc/workitem/get_local_id.h
    M libclc/generic/include/clc/workitem/get_local_size.h
    M libclc/generic/include/clc/workitem/get_num_groups.h
    M libclc/generic/include/clc/workitem/get_work_dim.h
    M libclc/generic/lib/async/wait_group_events.cl
    M libclc/generic/lib/workitem/get_global_id.cl
    M libclc/generic/lib/workitem/get_global_size.cl
    M libclc/ptx-nvidiacl/lib/mem_fence/fence.cl
    M libclc/ptx-nvidiacl/lib/synchronization/barrier.cl
    M libclc/ptx-nvidiacl/lib/workitem/get_global_id.cl
    M libclc/ptx-nvidiacl/lib/workitem/get_group_id.cl
    M libclc/ptx-nvidiacl/lib/workitem/get_local_id.cl
    M libclc/ptx-nvidiacl/lib/workitem/get_local_size.cl
    M libclc/ptx-nvidiacl/lib/workitem/get_num_groups.cl
    M libclc/r600/lib/synchronization/barrier.cl
    M libclc/r600/lib/workitem/get_global_offset.cl
    M libclc/r600/lib/workitem/get_global_size.cl
    M libclc/r600/lib/workitem/get_group_id.cl
    M libclc/r600/lib/workitem/get_local_id.cl
    M libclc/r600/lib/workitem/get_local_size.cl
    M libclc/r600/lib/workitem/get_num_groups.cl
    M libclc/r600/lib/workitem/get_work_dim.cl

  Log Message:
  -----------
  libclc: Make all built-ins overloadable

The SPIR spec states that all OpenCL built-in functions should be
overloadable and mangled, to ensure consistency.

Add the overload attribute to functions which were missing them:
work dimensions, memory barriers and fences, and events.

Reviewed By: tstellar, jenatali

Differential Revision: https://reviews.llvm.org/D82078




More information about the All-commits mailing list