[clang] [Clang][OpenCL][AMDGPU] Allow a kernel to call another kernel (PR #115821)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 3 03:04:08 PDT 2025
================
@@ -2497,7 +2502,12 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
NumElemsParam);
}
- if (TargetDecl->hasAttr<OpenCLKernelAttr>()) {
+ if (TargetDecl->hasAttr<OpenCLKernelAttr>() &&
+ CallingConv != CallingConv::CC_C &&
+ CallingConv !=
+ CallingConv::CC_SpirFunction) { // Check CallingConv to avoid adding
+ // uniform-work-group-size attribute
+ // to OpenCL Kernel Stub
----------------
arsenm wrote:
Weird comment placement and line breaks
https://github.com/llvm/llvm-project/pull/115821
More information about the cfe-commits
mailing list