Skip to content

Commit

Permalink
[SYCL] Remove Sycl2017Compat(intel#14239) related diagnistics and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiZibrov committed Aug 7, 2024
1 parent 4787a81 commit 8205f23
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
5 changes: 0 additions & 5 deletions clang/include/clang/Basic/DiagnosticSemaKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -12444,9 +12444,6 @@ def err_sycl_invalid_aspect_argument : Error<
def warn_sycl_pass_by_value_deprecated
: Warning<"passing kernel functions by value is deprecated in SYCL 2020">,
InGroup<Sycl2020Compat>, ShowInSystemHeader;
def warn_sycl_pass_by_reference_future
: Warning<"passing of kernel functions by reference is a SYCL 2020 extension">,
, ShowInSystemHeader;
def warn_sycl_potentially_invalid_as_cast : Warning<
"explicit cast from %0 to %1 potentially leads to an invalid address space"
" cast in the resulting code">, InGroup<SyclStrict>,
Expand Down Expand Up @@ -12482,8 +12479,6 @@ def err_sycl_mismatch_group_size
def note_sycl_kernel_declared_here : Note<"kernel declared here">;
def err_sycl_expected_finalize_method : Error<
"expected a 'finalize' method for the 'stream' class">;
def ext_sycl_2020_attr_spelling : ExtWarn<
"use of attribute %0 is a SYCL 2020 extension">;
def err_sycl_esimd_not_supported_for_type : Error<
"type %0 is not supported in ESIMD context">;
def err_sycl_taking_address_of_wrong_function : Error<
Expand Down
26 changes: 0 additions & 26 deletions clang/test/SemaSYCL/implicit_kernel_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,6 @@ int main() {
h.single_task<InvalidKernelName1>([]() {});
});

#if defined(WARN)
// expected-warning@#KernelSingleTask {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
#elif defined(ERROR)
// expected-error@#KernelSingleTask {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
#endif

q.submit([&](handler &h) {
// expected-note@+2 {{fake_kernel declared here}}
// expected-note@+1 {{in instantiation of function template specialization}}
h.single_task<class fake_kernel>([]() { function(); });
});

#if defined(WARN)
// expected-warning@#KernelSingleTask {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
#elif defined(ERROR)
// expected-error@#KernelSingleTask {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
#endif

q.submit([&](handler &h) {
// expected-note@+2 {{fake_kernel2 declared here}}
// expected-note@+1 {{in instantiation of function template specialization}}
h.single_task<class fake_kernel2>([]() {
auto l = [](auto f) { f(); };
});
});

q.submit([&](handler &h) {
h.single_task<class myWrapper>([]() { function(); });
});
Expand Down

0 comments on commit 8205f23

Please sign in to comment.