[clang] [SYCL] AST support for SYCL kernel entry point functions. (PR #122379)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 10 09:50:04 PST 2025


================
@@ -1376,6 +1377,16 @@ void ASTDeclWriter::VisitBlockDecl(BlockDecl *D) {
   Code = serialization::DECL_BLOCK;
 }
 
+void ASTDeclWriter::VisitOutlinedFunctionDecl(OutlinedFunctionDecl *D) {
+  Record.push_back(D->getNumParams());
+  VisitDecl(D);
+  Record.push_back(D->isNothrow() ? 1 : 0);
----------------
erichkeane wrote:

Slight preference to move this 'down' and put the params and the num-params next to eachother.

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


More information about the cfe-commits mailing list