Home
last modified time | relevance | path

Searched full:tanh (Results 1 – 25 of 165) sorted by relevance

1234567

/llvm-project/clang/test/CodeGenHLSL/builtins/
H A Dtanh.hlsl10 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn half @llvm.tanh.f16
11 // NO_HALF: call reassoc nnan ninf nsz arcp afn float @llvm.tanh.f32
13 return tanh ( p0 );
17 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <2 x half> @llvm.tanh.v2f16
18 // NO_HALF: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.tanh.v2f32
20 return tanh ( p0 );
24 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <3 x half> @llvm.tanh.v3f16
25 // NO_HALF: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.tanh.v3f32
27 return tanh ( p0 );
31 // NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <4 x half> @llvm.tanh
[all...]
/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-intrinsics/
H A Dtanh.ll13 ; CHECK: %[[#]] = OpExtInst %[[#float_32]] %[[#op_ext_glsl]] Tanh %[[#arg0]]
14 %elt.tanh = call float @llvm.tanh.f32(float %a)
15 ret float %elt.tanh
21 ; CHECK: %[[#]] = OpExtInst %[[#float_16]] %[[#op_ext_glsl]] Tanh %[[#arg0]]
22 %elt.tanh = call half @llvm.tanh.f16(half %a)
23 ret half %elt.tanh
29 ; CHECK: %[[#]] = OpExtInst %[[#vec4_float_32]] %[[#op_ext_glsl]] Tanh %[[#arg0]]
30 %elt.tanh
[all...]
/llvm-project/llvm/test/CodeGen/DirectX/
H A Dtanh.ll3 ; Make sure dxil operation function calls for tanh are generated for float and half.
8 %elt.tanh = call float @llvm.tanh.f32(float %a)
9 ret float %elt.tanh
15 %elt.tanh = call half @llvm.tanh.f16(half %a)
16 ret half %elt.tanh
33 %2 = call <4 x float> @llvm.tanh.v4f32(<4 x float> %a)
39 declare half @llvm.tanh.f16(half)
40 declare float @llvm.tanh
[all...]
H A Dtanh_error.ll3 ; DXIL operation tanh does not support double overload type
9 %1 = call double @llvm.tanh.f64(double %a)
/llvm-project/flang/test/Lower/math-lowering/
H A Dtanh.f9010 test_real4 = tanh(x)
14 ! FAST: {{%[A-Za-z0-9._]+}} = math.tanh {{%[A-Za-z0-9._]+}} {{.*}}: f32
15 ! RELAXED: {{%[A-Za-z0-9._]+}} = math.tanh {{%[A-Za-z0-9._]+}} {{.*}}: f32
20 test_real8 = tanh(x)
24 ! FAST: {{%[A-Za-z0-9._]+}} = math.tanh {{%[A-Za-z0-9._]+}} {{.*}}: f64
25 ! RELAXED: {{%[A-Za-z0-9._]+}} = math.tanh {{%[A-Za-z0-9._]+}} {{.*}}: f64
26 ! PRECISE: {{%[A-Za-z0-9._]+}} = fir.call @tanh({{%[A-Za-z0-9._]+}}) {{.*}}: (f64) -> f64
29 ! PRECISE-DAG: func.func private @tanh(f64) -> f64 attributes {fir.bindc_name = "tanh", fir.runtime}
/llvm-project/libcxx/include/__math/
H A Dhyperbolic_functions.h56 // tanh
58 inline _LIBCPP_HIDE_FROM_ABI float tanh(float __x) _NOEXCEPT { return __builtin_tanhf(__x); } in tanh() function
61 _LIBCPP_HIDE_FROM_ABI double tanh(double __x) _NOEXCEPT { in tanh() function
65 inline _LIBCPP_HIDE_FROM_ABI long double tanh(long double __x) _NOEXCEPT { return __builtin_tanhl(_… in tanh() function
68 inline _LIBCPP_HIDE_FROM_ABI double tanh(_A1 __x) _NOEXCEPT { in tanh() function
/llvm-project/libclc/generic/lib/math/
H A Dtanh.cl27 _CLC_OVERLOAD _CLC_DEF float tanh(float x)
29 // The definition of tanh(x) is sinh(x)/cosh(x), which is also equivalent
74 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, tanh, float);
80 _CLC_OVERLOAD _CLC_DEF double tanh(double x)
82 // The definition of tanh(x) is sinh(x)/cosh(x), which is also equivalent
143 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, tanh, double);
151 _CLC_DEFINE_UNARY_BUILTIN_FP16(tanh)
/llvm-project/libc/src/math/nvptx/
H A Dtanh.cpp1 //===-- Implementation of the tanh function for GPU -----------------------===//
9 #include "src/math/tanh.h"
17 LLVM_LIBC_FUNCTION(double, tanh, (double x)) { return __nv_tanh(x); }
H A DCMakeLists.txt437 tanh
439 tanh.cpp
441 ../tanh.h
/llvm-project/libc/src/math/amdgpu/
H A Dtanh.cpp1 //===-- Implementation of the tanh function for GPU -----------------------===//
9 #include "src/math/tanh.h"
17 LLVM_LIBC_FUNCTION(double, tanh, (double x)) { return __ocml_tanh_f64(x); }
H A DCMakeLists.txt484 tanh
486 tanh.cpp
488 ../tanh.h
/llvm-project/flang/test/Evaluate/
H A Dfolding02.f9075 TEST_R4(tanh, tanh(3._4), 0.995054781436920166015625_4)
128 TEST_R8(tanh, tanh(3._8), &
164 TEST_C4(tanh, tanh((0.4_4, 1.1_4)), &
214 TEST_C8(tanh, tanh((0.4_8, 1.1_8)), &
/llvm-project/libc/test/src/math/
H A Dtanhf_test.cpp49 ASSERT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Tanh, x, in TEST_F()
65 EXPECT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Tanh, x, in TEST_F()
67 EXPECT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Tanh, -x, in TEST_F()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dinteger-division.cpp28 long double tanh(long double);
110 tanh(f / g); in integerDivision()
124 tanh(c / g); in integerDivision()
129 tanh(3.14 / f / g); in integerDivision()
/llvm-project/libc/src/math/
H A Dtanh.h1 //===-- Implementation header for tanh --------------------------*- C++ -*-===//
16 double tanh(double x);
/llvm-project/flang/runtime/Float128Math/
H A Dmath-entries.h105 DEFINE_FALLBACK_F128(Tanh)
154 DEFINE_SIMPLE_ALIAS(Tanh, tanhq)
207 DEFINE_SIMPLE_ALIAS(Tanh, std::tanh)
H A Dtanh.cpp1 //===-- runtime/Float128Math/tanh.cpp -------------------------------------===//
17 return Tanh<true>::invoke(x); in RTDEF()
/llvm-project/mlir/test/Analysis/
H A Dtest-shape-fn-report.mlir6 func.func @tanh(%arg: tensor<10x20xf32>) -> tensor<10x20xf32>
9 %0 = math.tanh %arg : tensor<10x20xf32>
/llvm-project/mlir/test/Integration/Dialect/Complex/CPU/
H A Dcorrectness.mlir37 func.func @tanh(%arg: complex<f32>) -> complex<f32> {
38 %tanh = complex.tanh %arg : complex<f32>
39 func.return %tanh : complex<f32>
206 // complex.tanh test
233 %tanh_func = func.constant @tanh : (complex<f32>) -> complex<f32>
/llvm-project/mlir/test/Dialect/Complex/
H A Dops.mlir71 // CHECK: complex.tanh %[[C]] : complex<f32>
72 %tanh = complex.tanh %complex : complex<f32>
/llvm-project/libcxx/test/std/numerics/complex.number/complex.transcendentals/
H A Dtanh.pass.cpp13 // tanh(const complex<T>& x);
25 assert(tanh(c) == x); in test()
40 std::complex<double> r = tanh(testcases[i]); in test_edges()
/llvm-project/mlir/test/Conversion/MathToSPIRV/
H A Dmath-to-opencl-spirv.mlir37 // CHECK: spirv.CL.tanh %{{.*}}: f32
38 %11 = math.tanh %arg0 : f32
86 // CHECK: spirv.CL.tanh %{{.*}}: vector<3xf32>
87 %11 = math.tanh %arg0 : vector<3xf32>
/llvm-project/libcxx/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/
H A Dtanh_valarray.pass.cpp15 // tanh(const valarray<T>& x);
36 std::valarray<T> v3 = tanh(v1); in main()
/llvm-project/mlir/test/Dialect/Math/
H A Dops.mlir224 // CHECK-LABEL: func @tanh(
226 func.func @tanh(%f: f32, %v: vector<4xf32>, %t: tensor<4x4x?xf32>) {
227 // CHECK: %{{.*}} = math.tanh %[[F]] : f32
228 %0 = math.tanh %f : f32
229 // CHECK: %{{.*}} = math.tanh %[[V]] : vector<4xf32>
230 %1 = math.tanh %v : vector<4xf32>
231 // CHECK: %{{.*}} = math.tanh %[[T]] : tensor<4x4x?xf32>
232 %2 = math.tanh %t : tensor<4x4x?xf32>
/llvm-project/clang/test/Headers/Inputs/include/
H A Dcmath152 double tanh(double);
153 float tanh(float);
226 using ::tanh;

1234567