Skip to content

Commit

Permalink
[NFC][SYCL] Remove unused detail::Boolean (#14904)
Browse files Browse the repository at this point in the history
  • Loading branch information
aelovikov-intel authored Aug 2, 2024
1 parent 4f86ab7 commit a9fe9ec
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 266 deletions.
1 change: 0 additions & 1 deletion sycl/include/sycl/builtins_esimd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#pragma once

#include <sycl/detail/boolean.hpp>
#include <sycl/detail/common.hpp>
#include <sycl/detail/generic_type_traits.hpp>
#include <sycl/ext/intel/esimd/detail/math_intrin.hpp>
Expand Down
1 change: 0 additions & 1 deletion sycl/include/sycl/builtins_utils_scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include <sycl/access/access.hpp> // for address_space, decorated
#include <sycl/aliases.hpp> // for half
#include <sycl/detail/boolean.hpp> // for Boolean
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
#include <sycl/detail/generic_type_traits.hpp> // for is_svgenfloat, is_sge...
#include <sycl/detail/type_list.hpp> // for is_contained, type_list
Expand Down
107 changes: 0 additions & 107 deletions sycl/include/sycl/detail/boolean.hpp

This file was deleted.

16 changes: 0 additions & 16 deletions sycl/include/sycl/detail/generic_type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
namespace sycl {
inline namespace _V1 {
namespace detail {
template <int N> struct Boolean;

template <typename T>
inline constexpr bool is_svgenfloatf_v =
is_contained_v<T, gtl::scalar_vector_float_list>;
Expand Down Expand Up @@ -347,17 +345,6 @@ template <typename T> auto convertToOpenCLType(T &&x) {
return sycl::bit_cast<typename MatchingVec::vector_t>(x);
#else
return x.template as<MatchingVec>();
#endif
} else if constexpr (is_boolean_v<no_ref>) {
#ifdef __SYCL_DEVICE_ONLY__
if constexpr (std::is_same_v<Boolean<1>, no_ref>) {
// Or should it be "int"?
return std::forward<T>(x);
} else {
return static_cast<typename no_ref::vector_t>(x);
}
#else
return std::forward<T>(x);
#endif
#if (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
} else if constexpr (std::is_same_v<no_ref, std::byte>) {
Expand Down Expand Up @@ -437,9 +424,6 @@ template <typename Type, int NumElements>
struct GetNumElements<typename sycl::vec<Type, NumElements>> {
static constexpr int value = NumElements;
};
template <int N> struct GetNumElements<typename sycl::detail::Boolean<N>> {
static constexpr int value = N;
};

// TryToGetElementType<T>::type is T::element_type or T::value_type if those
// exist, otherwise T.
Expand Down
6 changes: 0 additions & 6 deletions sycl/include/sycl/detail/type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,6 @@ template <typename T>
struct is_bool
: std::bool_constant<is_scalar_bool<vector_element_t<T>>::value> {};

// is_boolean
template <int N> struct Boolean;
template <typename T> struct is_boolean : std::false_type {};
template <int N> struct is_boolean<Boolean<N>> : std::true_type {};
template <typename T> inline constexpr bool is_boolean_v = is_boolean<T>::value;

// is_pointer
template <typename T> struct is_pointer_impl : std::false_type {};

Expand Down
135 changes: 0 additions & 135 deletions sycl/test-e2e/Basic/boolean.cpp

This file was deleted.

0 comments on commit a9fe9ec

Please sign in to comment.