Skip to content

Commit ebbe57e

Browse files
azabaznoigcbot
authored andcommitted
Remove redundant vector CMCL builtins declarations
Remove redundant vector CMCL builtins declarations
1 parent 14b8ff0 commit ebbe57e

File tree

1 file changed

+0
-22
lines changed
  • IGC/VectorCompiler/CMCL/lib/Headers/cm-cl/detail

1 file changed

+0
-22
lines changed

IGC/VectorCompiler/CMCL/lib/Headers/cm-cl/detail/builtins.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ template <typename T, int width>
7171
vector_impl<uint32_t, width> __cm_cl_cbit(vector_impl<T, width> src);
7272

7373
template <typename T> T __cm_cl_fma(T src0, T src1, T src2);
74-
template <typename T, int width>
75-
vector_impl<T, width> __cm_cl_fma(vector_impl<T, width> src0,
76-
vector_impl<T, width> src1,
77-
vector_impl<T, width> src2);
7874

7975
uint32_t __cm_cl_bfrev(uint32_t src);
8076
template <int width>
@@ -84,8 +80,6 @@ template <typename T> T __cm_cl_abs_int(T src);
8480
template <typename T> T __cm_cl_abs_float(T src);
8581

8682
template <typename T> T __cm_cl_sqrt(T src, bool use_fast);
87-
template <typename T, int width>
88-
vector_impl<T, width> __cm_cl_sqrt(vector_impl<T, width> src, bool use_fast);
8983

9084
vector_impl<uint32_t, 3> __cm_cl_local_id();
9185
vector_impl<uint32_t, 3> __cm_cl_local_size();
@@ -281,15 +275,6 @@ template <typename T> uint32_t cbit(T src) {
281275
return __cm_cl_cbit(src);
282276
}
283277

284-
template <typename T, int width>
285-
vector_impl<T, width> fma(vector_impl<T, width> src0,
286-
vector_impl<T, width> src1,
287-
vector_impl<T, width> src2) {
288-
static_assert(cl::is_floating_point<T>::value,
289-
"illegal type provided in fma");
290-
return __cm_cl_fma(src0, src1, src2);
291-
}
292-
293278
template <typename T> T fma(T src0, T src1, T src2) {
294279
static_assert(cl::is_floating_point<T>::value,
295280
"illegal type provided in fma");
@@ -322,13 +307,6 @@ template <bool use_fast, typename T> T sqrt(T src) {
322307
return __cm_cl_sqrt(src, use_fast);
323308
}
324309

325-
template <bool use_fast, typename T, int width>
326-
vector_impl<T, width> sqrt(vector_impl<T, width> src) {
327-
static_assert(cl::is_floating_point<T>::value,
328-
"illegal type provided in sqrt");
329-
return __cm_cl_sqrt(src, use_fast);
330-
}
331-
332310
template <atomic::operation operation, memory_order semantics,
333311
memory_scope scope, typename T>
334312
T atomicrmw(__global T *ptr, T operand) {

0 commit comments

Comments
 (0)