[all-commits] [llvm/llvm-project] 00167a: [Clang][OpenCL][AMDGPU] Allow a kernel to call ano...
Aniket Lal via All-commits
all-commits at lists.llvm.org
Wed Nov 27 00:38:30 PST 2024
Branch: refs/heads/users/lalaniket8/emit-device-version-of-openCL-kernel
Home: https://github.com/llvm/llvm-project
Commit: 00167a3caa6cf2c790d1203797e5b98cb9563c44
https://github.com/llvm/llvm-project/commit/00167a3caa6cf2c790d1203797e5b98cb9563c44
Author: anikelal <anikelal at amd.com>
Date: 2024-11-27 (Wed, 27 Nov 2024)
Changed paths:
M clang/include/clang/AST/GlobalDecl.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/CGBlocks.cpp
M clang/lib/CodeGen/CGCall.cpp
M clang/lib/CodeGen/CGExpr.cpp
M clang/lib/CodeGen/CGOpenCLRuntime.cpp
M clang/lib/CodeGen/CGOpenCLRuntime.h
M clang/lib/CodeGen/CodeGenModule.cpp
A clang/test/CodeGenOpenCL/opencl-kernel-call.cl
M clang/test/CodeGenOpenCL/reflect.cl
M clang/test/CodeGenOpenCL/spir-calling-conv.cl
M clang/test/CodeGenOpenCL/visibility.cl
Log Message:
-----------
[Clang][OpenCL][AMDGPU] Allow a kernel to call another kernel
This feature is currently not supported in the compiler.
To facilitate this we emit a stub version of each kernel
function body with different name mangling scheme, and
replaces the respective kernel call-sites appropriately.
Fixes https://github.com/llvm/llvm-project/issues/60313
D120566 was an earlier attempt made to upstream a solution
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