[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);
----------------
tahonermann wrote:
I think this is a reasonable case. The return type is `SmallVector<CanQualType, 16>`. Many of the existing `arrange*FunctionDeclaration()` definitions use `auto` for the equivalent call. Scroll up a few functions to see such examples.
https://github.com/llvm/llvm-project/pull/133030
More information about the cfe-commits
mailing list