[all-commits] [llvm/llvm-project] f8265d: [Clang][AMDGPU] Emit stub version of OpenCL Kernel

Aniket Lal via All-commits all-commits at lists.llvm.org
Wed Nov 13 02:16:12 PST 2024


  Branch: refs/heads/users/lalaniket8/emit-device-version-of-openCL-kernel
  Home:   https://github.com/llvm/llvm-project
  Commit: f8265debdf3fcd7b3097f18d3823c6fdc8a20ef2
      https://github.com/llvm/llvm-project/commit/f8265debdf3fcd7b3097f18d3823c6fdc8a20ef2
  Author: anikelal <anikelal at amd.com>
  Date:   2024-11-13 (Wed, 13 Nov 2024)

  Changed paths:
    M clang/include/clang/AST/GlobalDecl.h
    M clang/include/clang/AST/Type.h
    M clang/lib/AST/Expr.cpp
    M clang/lib/AST/ItaniumMangle.cpp
    M clang/lib/AST/Mangle.cpp
    M clang/lib/AST/MicrosoftMangle.cpp
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CGOpenCLRuntime.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenTypes.h
    M clang/lib/CodeGen/TargetInfo.h
    M clang/lib/CodeGen/Targets/AMDGPU.cpp
    M clang/test/CodeGenOpenCL/reflect.cl
    M clang/test/CodeGenOpenCL/spir-calling-conv.cl
    M clang/test/CodeGenOpenCL/visibility.cl

  Log Message:
  -----------
  [Clang][AMDGPU] Emit stub version of OpenCL Kernel

OpenCL allows a kernel function to call another kernel function.
To facilitate this we emit a stub version of each kernel function
with different name mangling scheme, and replace the kernel
callsite appropriately.

This commit fixes https://github.com/llvm/llvm-project/issues/60313
https://ontrack-internal.amd.com/browse/SWDEV-245936

D120566 was an earlier effort to upstream a fix for this issue.



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