[all-commits] [llvm/llvm-project] 93af7c: [Clang][OpenCL][AMDGPU] Allow a kernel to call ano...
Aniket Lal via All-commits
all-commits at lists.llvm.org
Wed Jan 29 00:00:29 PST 2025
Branch: refs/heads/users/lalaniket8/emit-device-version-of-openCL-kernel
Home: https://github.com/llvm/llvm-project
Commit: 93af7c28a7c160919d864979eae375772fce04e3
https://github.com/llvm/llvm-project/commit/93af7c28a7c160919d864979eae375772fce04e3
Author: anikelal <anikelal at amd.com>
Date: 2025-01-29 (Wed, 29 Jan 2025)
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/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.
Commit: 6473c55c5b179e32e397702a054b6d8abe6295ec
https://github.com/llvm/llvm-project/commit/6473c55c5b179e32e397702a054b6d8abe6295ec
Author: anikelal <anikelal at amd.com>
Date: 2025-01-29 (Wed, 29 Jan 2025)
Changed paths:
M clang/include/clang/AST/GlobalDecl.h
M clang/lib/CodeGen/CGOpenCLRuntime.cpp
Log Message:
-----------
[Clang][OpenCL][AMDGPU] Allow a kernel to call another kernel
Simplifying isDeclOpenCLKernel() and removing resolved comments
Commit: 68cbc51935fbc5f59eb1de875771c4890c07a38b
https://github.com/llvm/llvm-project/commit/68cbc51935fbc5f59eb1de875771c4890c07a38b
Author: anikelal <anikelal at amd.com>
Date: 2025-01-29 (Wed, 29 Jan 2025)
Changed paths:
M clang/include/clang/AST/Decl.h
M clang/include/clang/AST/GlobalDecl.h
M clang/lib/AST/Decl.cpp
M clang/lib/AST/Expr.cpp
M clang/lib/AST/ItaniumMangle.cpp
M clang/lib/AST/Mangle.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/CodeGenFunction.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/lib/CodeGen/Targets/SPIR.cpp
M clang/lib/CodeGen/Targets/X86.cpp
M clang/test/CodeGenOpenCL/addr-space-struct-arg.cl
M clang/test/CodeGenOpenCL/amdgpu-abi-struct-arg-byref.cl
M clang/test/CodeGenOpenCL/amdgpu-abi-struct-coerce.cl
M clang/test/CodeGenOpenCL/amdgpu-enqueue-kernel.cl
M clang/test/CodeGenOpenCL/amdgpu-printf.cl
M clang/test/CodeGenOpenCL/cl-uniform-wg-size.cl
M clang/test/CodeGenOpenCL/cl20-device-side-enqueue-attributes.cl
M clang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl
M clang/test/CodeGenOpenCL/convergent.cl
M clang/test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl
M clang/test/CodeGenOpenCL/kernel-arg-info.cl
M 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
M clang/test/CodeGenOpenCLCXX/addrspace-of-this.clcpp
Log Message:
-----------
Emitting OpenCL Kernels as calls to their respective inlined stubs to avoid double emission of kernel body.
Commit: d1e9e94a00b39de55899e6d768d35a00a5612929
https://github.com/llvm/llvm-project/commit/d1e9e94a00b39de55899e6d768d35a00a5612929
Author: anikelal <anikelal at amd.com>
Date: 2025-01-29 (Wed, 29 Jan 2025)
Changed paths:
M clang/lib/CodeGen/TargetInfo.cpp
M clang/lib/CodeGen/TargetInfo.h
M clang/lib/CodeGen/Targets/AMDGPU.cpp
M clang/lib/CodeGen/Targets/X86.cpp
M clang/test/CodeGenOpenCL/addr-space-struct-arg.cl
M clang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl
M clang/test/CodeGenOpenCL/opencl-kernel-call.cl
Log Message:
-----------
Set correct calling convention for stubs in X86 and SPIR targets
Test aggregate paratemers passed byref and byval
Compare: https://github.com/llvm/llvm-project/compare/12d17535057f...d1e9e94a00b3
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