[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 10 06:58:06 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);
----------------
erichkeane wrote:
Huh, quite a few of ones that don't meet our coding standard. Also, curious if `getArgTypesForDeclaration` qualifies for RVO, or if this causes an additional unnecessary copy (vs `const &`) since these are taken by `ArrayRef` in `arrangeLLVMFunctionInfo`.
https://github.com/llvm/llvm-project/pull/133030
More information about the cfe-commits
mailing list