Skip to content

[SYCL] Delete the workaround for wrong s_upsample mangling #1053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions sycl/include/CL/sycl/builtins.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,6 @@ detail::enable_if_t<detail::is_ugeninteger<T>::value, T> sub_sat(T x,
return __sycl_std::__invoke_u_sub_sat<T>(x, y);
}

// TODO delete when Intel CPU OpenCL runtime will be fixed
// OpExtInst ... s_upsample -> _Z8upsampleij (now _Z8upsampleii)
#define __invoke_s_upsample __invoke_u_upsample

// ugeninteger16bit upsample (ugeninteger8bit hi, ugeninteger8bit lo)
template <typename T>
detail::enable_if_t<detail::is_ugeninteger8bit<T>::value,
Expand Down Expand Up @@ -909,8 +905,6 @@ upsample(T hi, T2 lo) __NOEXC {
return __sycl_std::__invoke_s_upsample<detail::make_larger_t<T>>(hi, lo);
}

#undef __invoke_s_upsample

// geninteger popcount (geninteger x)
template <typename T>
detail::enable_if_t<detail::is_geninteger<T>::value, T> popcount(T x) __NOEXC {
Expand Down
6 changes: 0 additions & 6 deletions sycl/source/detail/builtins_integer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,6 @@ MAKE_1V_2V(u_upsample, s::cl_ushort, s::cl_uchar, s::cl_uchar)
MAKE_1V_2V(u_upsample, s::cl_uint, s::cl_ushort, s::cl_ushort)
MAKE_1V_2V(u_upsample, s::cl_ulong, s::cl_uint, s::cl_uint)

// TODO delete when Intel CPU OpenCL runtime will be fixed
// ExtInst ... s_upsample -> _Z8upsampleij (now _Z8upsampleii)
#define s_upsample u_upsample

s::cl_short s_upsample(s::cl_char x, s::cl_uchar y) __NOEXC {
return __upsample(x, y);
}
Expand All @@ -737,8 +733,6 @@ MAKE_1V_2V(s_upsample, s::cl_short, s::cl_char, s::cl_uchar)
MAKE_1V_2V(s_upsample, s::cl_int, s::cl_short, s::cl_ushort)
MAKE_1V_2V(s_upsample, s::cl_long, s::cl_int, s::cl_uint)

#undef s_upsample

// popcount
s::cl_uchar popcount(s::cl_uchar x) __NOEXC { return __popcount(x); }
s::cl_ushort popcount(s::cl_ushort x) __NOEXC { return __popcount(x); }
Expand Down