diff --git a/sycl/include/sycl/accessor.hpp b/sycl/include/sycl/accessor.hpp index 4e48f22dc162a..83a05dd1e9d9d 100644 --- a/sycl/include/sycl/accessor.hpp +++ b/sycl/include/sycl/accessor.hpp @@ -38,7 +38,6 @@ #include // for property_list #include // for range #include // for addressing_mode -#include // for vec #include // for size_t #include // for hash @@ -607,45 +606,6 @@ class __SYCL_EXPORT LocalAccessorBaseHost { LocalAccessorImplPtr impl; }; - -template struct IsValidCoordDataT; -template struct IsValidCoordDataT<1, T> { - constexpr static bool value = detail::is_contained< - T, detail::type_list>::type::value; -}; -template struct IsValidCoordDataT<2, T> { - constexpr static bool value = detail::is_contained< - T, detail::type_list, - vec>>::type::value; -}; -template struct IsValidCoordDataT<3, T> { - constexpr static bool value = detail::is_contained< - T, detail::type_list, - vec>>::type::value; -}; - -template struct IsValidUnsampledCoord2020DataT; -template struct IsValidUnsampledCoord2020DataT<1, T> { - constexpr static bool value = std::is_same_v; -}; -template struct IsValidUnsampledCoord2020DataT<2, T> { - constexpr static bool value = std::is_same_v; -}; -template struct IsValidUnsampledCoord2020DataT<3, T> { - constexpr static bool value = std::is_same_v; -}; - -template struct IsValidSampledCoord2020DataT; -template struct IsValidSampledCoord2020DataT<1, T> { - constexpr static bool value = std::is_same_v; -}; -template struct IsValidSampledCoord2020DataT<2, T> { - constexpr static bool value = std::is_same_v; -}; -template struct IsValidSampledCoord2020DataT<3, T> { - constexpr static bool value = std::is_same_v; -}; - } // namespace detail /// Buffer accessor. diff --git a/sycl/include/sycl/accessor_image.hpp b/sycl/include/sycl/accessor_image.hpp index 7f828505a9e53..01415502e818a 100644 --- a/sycl/include/sycl/accessor_image.hpp +++ b/sycl/include/sycl/accessor_image.hpp @@ -12,6 +12,44 @@ namespace sycl { inline namespace _V1 { namespace detail { +template struct IsValidCoordDataT; +template struct IsValidCoordDataT<1, T> { + constexpr static bool value = detail::is_contained< + T, detail::type_list>::type::value; +}; +template struct IsValidCoordDataT<2, T> { + constexpr static bool value = detail::is_contained< + T, detail::type_list, + vec>>::type::value; +}; +template struct IsValidCoordDataT<3, T> { + constexpr static bool value = detail::is_contained< + T, detail::type_list, + vec>>::type::value; +}; + +template struct IsValidUnsampledCoord2020DataT; +template struct IsValidUnsampledCoord2020DataT<1, T> { + constexpr static bool value = std::is_same_v; +}; +template struct IsValidUnsampledCoord2020DataT<2, T> { + constexpr static bool value = std::is_same_v; +}; +template struct IsValidUnsampledCoord2020DataT<3, T> { + constexpr static bool value = std::is_same_v; +}; + +template struct IsValidSampledCoord2020DataT; +template struct IsValidSampledCoord2020DataT<1, T> { + constexpr static bool value = std::is_same_v; +}; +template struct IsValidSampledCoord2020DataT<2, T> { + constexpr static bool value = std::is_same_v; +}; +template struct IsValidSampledCoord2020DataT<3, T> { + constexpr static bool value = std::is_same_v; +}; + void __SYCL_EXPORT unsampledImageConstructorNotification( void *ImageObj, void *AccessorObj, const std::optional &Target, access::mode Mode, diff --git a/sycl/test/include_deps/sycl_accessor.hpp.cpp b/sycl/test/include_deps/sycl_accessor.hpp.cpp index 5b28d1893338a..139b91adeef55 100644 --- a/sycl/test/include_deps/sycl_accessor.hpp.cpp +++ b/sycl/test/include_deps/sycl_accessor.hpp.cpp @@ -117,10 +117,4 @@ // CHECK-NEXT: properties/accessor_properties.hpp // CHECK-NEXT: properties/buffer_properties.hpp // CHECK-NEXT: sampler.hpp -// CHECK-NEXT: types.hpp -// CHECK-NEXT: marray.hpp -// CHECK-NEXT: vector.hpp -// CHECK-NEXT: detail/memcpy.hpp -// CHECK-NEXT: detail/vector_convert.hpp -// CHECK-NEXT: swizzles.def // CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_detail_core.hpp.cpp b/sycl/test/include_deps/sycl_detail_core.hpp.cpp index 93495a3814511..91a6b4b330de3 100644 --- a/sycl/test/include_deps/sycl_detail_core.hpp.cpp +++ b/sycl/test/include_deps/sycl_detail_core.hpp.cpp @@ -118,12 +118,6 @@ // CHECK-NEXT: properties/accessor_properties.hpp // CHECK-NEXT: properties/buffer_properties.hpp // CHECK-NEXT: sampler.hpp -// CHECK-NEXT: types.hpp -// CHECK-NEXT: marray.hpp -// CHECK-NEXT: vector.hpp -// CHECK-NEXT: detail/memcpy.hpp -// CHECK-NEXT: detail/vector_convert.hpp -// CHECK-NEXT: swizzles.def // CHECK-NEXT: queue.hpp // CHECK-NEXT: detail/assert_happened.hpp // CHECK-NEXT: detail/cg_types.hpp @@ -140,6 +134,12 @@ // CHECK-NEXT: exception_list.hpp // CHECK-NEXT: image.hpp // CHECK-NEXT: detail/backend_traits.hpp +// CHECK-NEXT: types.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: detail/vector_convert.hpp +// CHECK-NEXT: swizzles.def // CHECK-NEXT: kernel_handler.hpp // CHECK-NEXT: nd_item.hpp // CHECK-NEXT: nd_range.hpp