File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -12434,12 +12434,10 @@ def err_sycl_kernel_incorrectly_named : Error<
1243412434 "}0">;
1243512435
1243612436// SYCL free function kernels extension.
12437- def err_bad_free_function_kernel_param_type : Error<
12438- "%0 cannot be used as the type of a free function kernel parameter">;
1243912437def note_free_function_kernel_param_type_not_fwd_declarable : Note<
1244012438 "%0 is not forward declarable">;
1244112439def note_free_function_kernel_param_type_not_supported : Note<
12442- "%0 is not yet supported as free function kernel parameter">;
12440+ "%0 is not yet supported as a free function kernel parameter">;
1244312441
1244412442def err_sycl_kernel_not_function_object
1244512443 : Error<"kernel parameter must be a lambda or function object">;
Original file line number Diff line number Diff line change @@ -2049,7 +2049,7 @@ class SyclKernelFieldChecker : public SyclKernelFieldHandler {
20492049 isForwardDeclarable (RD, SemaSYCLRef, /* DiagForFreeFunction=*/ true );
20502050 if (NFDR != NotForwardDeclarableReason::None) {
20512051 Diag.Report (PD->getLocation (),
2052- diag::err_bad_free_function_kernel_param_type )
2052+ diag::err_bad_kernel_param_type )
20532053 << ParamTy;
20542054 Diag.Report (PD->getLocation (),
20552055 diag::note_free_function_kernel_param_type_not_fwd_declarable)
@@ -2151,7 +2151,7 @@ class SyclKernelFieldChecker : public SyclKernelFieldHandler {
21512151 CXXRecordDecl *RD = ParamTy->getAsCXXRecordDecl ();
21522152 if (RD->hasAttr <SYCLRequiresDecompositionAttr>()) {
21532153 Diag.Report (PD->getLocation (),
2154- diag::err_bad_free_function_kernel_param_type )
2154+ diag::err_bad_kernel_param_type )
21552155 << ParamTy;
21562156 Diag.Report (PD->getLocation (),
21572157 diag::note_free_function_kernel_param_type_not_supported)
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ class Outer {
1313
1414__attribute__ ((sycl_device))
1515[[__sycl_detail__::add_ir_attributes_function(" sycl-single-task-kernel" , 0 )]]
16- void ff_4(Outer::DefinedWithinAClass S1) { // expected-error {{'Outer::DefinedWithinAClass' cannot be used as the type of a free function kernel parameter}}
16+ void ff_4(Outer::DefinedWithinAClass S1) { // expected-error {{'Outer::DefinedWithinAClass' cannot be used as the type of a kernel parameter}}
1717 // expected-note@-1 {{'Outer::DefinedWithinAClass' is not forward declarable}}
1818}
1919
2020template <typename T1>
2121__attribute__ ((sycl_device))
2222[[__sycl_detail__::add_ir_attributes_function(" sycl-single-task-kernel" , 0 )]]
23- void ff_6(T1 S1) { // expected-error 2{{cannot be used as the type of a free function kernel parameter}}
23+ void ff_6(T1 S1) { // expected-error 2{{cannot be used as the type of a kernel parameter}}
2424 // expected-note@-1 2{{is not forward declarable}}
2525}
2626
@@ -56,6 +56,6 @@ struct Wrapper {
5656};
5757
5858[[__sycl_detail__::add_ir_attributes_function(" sycl-single-task-kernel" , 0 )]]
59- void ff_6 (Wrapper S1) { // expected-error {{cannot be used as the type of a free function kernel parameter}}
60- // expected-note@-1 {{'Wrapper' is not yet supported as free function kernel parameter}}
59+ void ff_6 (Wrapper S1) { // expected-error {{cannot be used as the type of a kernel parameter}}
60+ // expected-note@-1 {{'Wrapper' is not yet supported as a free function kernel parameter}}
6161}
You can’t perform that action at this time.
0 commit comments