Skip to content

[libclc] Delete the wrong name in the SOURCE file, and add a new file #4997

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
Nov 19, 2021
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
2 changes: 0 additions & 2 deletions libclc/amdgcn-amdhsa/libspirv/SOURCES
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ math/expm1.cl
math/fabs.cl
math/fdim.cl
math/floor.cl
math/fma.cl
math/fmax.cl
math/fmin.cl
math/fmod.cl
math/frexp.cl
math/hypot.cl
math/ilogb.cl
math/ldexp.cl
math/lgamma.cl
math/log.cl
Expand Down
5 changes: 0 additions & 5 deletions libclc/amdgcn-amdhsa/libspirv/math/ldexp.cl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
double __ocml_ldexp_f64(double, int);
float __ocml_ldexp_f32(float, int);

#define __CLC_FUNCTION __spirv_ocl_ldexp
#define __CLC_BUILTIN __ocml_ldexp
#define __CLC_BUILTIN_F __CLC_XCONCAT(__CLC_BUILTIN, _f32)
#define __CLC_BUILTIN_D __CLC_XCONCAT(__CLC_BUILTIN, _f64)

_CLC_DEFINE_BINARY_BUILTIN(float, __spirv_ocl_ldexp, __ocml_ldexp_f32, float, int)
_CLC_DEFINE_BINARY_BUILTIN(float, __spirv_ocl_ldexp, __ocml_ldexp_f32, float, uint)

Expand Down
20 changes: 20 additions & 0 deletions libclc/amdgcn-amdhsa/libspirv/math/sinh.cl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include <clcmacro.h>
#include <spirv/spirv.h>

double __ocml_sinh_f64(double);
float __ocml_sinh_f32(float);

#define __CLC_FUNCTION __spirv_ocl_sinh
#define __CLC_BUILTIN __ocml_sinh
#define __CLC_BUILTIN_F __CLC_XCONCAT(__CLC_BUILTIN, _f32)
#define __CLC_BUILTIN_D __CLC_XCONCAT(__CLC_BUILTIN, _f64)
#include <math/unary_builtin.inc>