[all-commits] [llvm/llvm-project] 4dfec3: [OpenCL] Set MinVersion for sub_group_barrier with...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Thu Mar 31 08:42:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4dfec37037f5f96db8898b79601c7a1d19177027
      https://github.com/llvm/llvm-project/commit/4dfec37037f5f96db8898b79601c7a1d19177027
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2022-03-31 (Thu, 31 Mar 2022)

  Changed paths:
    M clang/lib/Sema/OpenCLBuiltins.td

  Log Message:
  -----------
  [OpenCL] Set MinVersion for sub_group_barrier with memory_scope

The memory_scope enum is not available before OpenCL 2.0, so ensure
the sub_group_barrier overload with a memory_scope argument is
restricted to OpenCL 2.0 and above.  This is already the case in
opencl-c.h.

Fixes the issue revealed by https://reviews.llvm.org/D120254

Reported-by: Harald van Dijk (hvdijk)




More information about the All-commits mailing list