[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 7 11:09:33 PDT 2025


================
@@ -732,6 +732,16 @@ CodeGenTypes::arrangeBuiltinFunctionDeclaration(CanQualType resultType,
                                  RequiredArgs::All);
 }
 
+const CGFunctionInfo &
+CodeGenTypes::arrangeSYCLKernelCallerDeclaration(QualType resultType,
+                                                 const FunctionArgList &args) {
+  auto argTypes = getArgTypesForDeclaration(Context, args);
+
+  return arrangeLLVMFunctionInfo(
+      GetReturnType(resultType), FnInfoOpts::None, argTypes,
+      FunctionType::ExtInfo(CC_OpenCLKernel), {}, RequiredArgs::All);
----------------
tahonermann wrote:

I'm not particularly familiar with it either. Based on a brief look, it looks to be related to ARC support in Objective-C and/or constructor and member (instance) function invocation. I don't think it is relevant for this usage; many of the other `arrange*FunctionDeclaration()` definitions also pass `{}`.

https://github.com/llvm/llvm-project/pull/133030


More information about the cfe-commits mailing list