[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 14 14:08:56 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);
----------------
tahonermann wrote:

The type is not on the RHS. I'm being consistent with the existing code. If you would like the code changed to introduce a type alias for the returned type and the current uses of `auto` replaced with that alias, please submit a PR or file a GH issue for someone to make that change. I don't consider it in scope for this PR.

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


More information about the cfe-commits mailing list