[all-commits] [llvm/llvm-project] e169cc: [Clang] Fix sema checks thinking kernels aren't ke...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Aug 16 16:36:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e169cc162adbe89d498e774bccf4e228af989849
      https://github.com/llvm/llvm-project/commit/e169cc162adbe89d498e774bccf4e228af989849
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/CodeGenCXX/amdgpu-kernel-arg-pointer-type.cpp

  Log Message:
  -----------
  [Clang] Fix sema checks thinking kernels aren't kernels (#104460)

Summary:
Currently we have some sema checks to make sure users don't apply
kernel-only attributes to non-kernel functions. However, this currently
did not correctly check for bare NVPTX / AMDGPU kernel attributes,
making it impossible to use them at all w/o CUDA enabled. This patch
fixes that by checking for the calling convention / attributes directly.



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