| /llvm-project-15.0.7/mlir/test/mlir-cpu-runner/ |
| H A D | math-polynomial-approx.mlir | 432 func.func @atan2() { 440 %atan2_0 = math.atan2 %zero, %one : f32 444 %atan2_1 = math.atan2 %one, %zero : f32 448 %atan2_2 = math.atan2 %zero, %neg_one : f32 452 %atan2_3 = math.atan2 %neg_one, %zero : f32 456 %atan2_4 = math.atan2 %zero, %zero : f32 460 %atan2_5 = math.atan2 %two, %one : f32 466 %atan2_6 = math.atan2 %two, %neg_one : f32 474 %atan2_8 = math.atan2 %neg_two, %one : f32 478 %atan2_9 = math.atan2 %one, %two : f32 [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/Math/ |
| H A D | ops.mlir | 17 // CHECK-LABEL: func @atan2( 19 func.func @atan2(%f: f32, %v: vector<4xf32>, %t: tensor<4x4x?xf32>) { 20 // CHECK: %{{.*}} = math.atan2 %[[F]], %[[F]] : f32 21 %0 = math.atan2 %f, %f : f32 22 // CHECK: %{{.*}} = math.atan2 %[[V]], %[[V]] : vector<4xf32> 23 %1 = math.atan2 %v, %v : vector<4xf32> 24 // CHECK: %{{.*}} = math.atan2 %[[T]], %[[T]] : tensor<4x4x?xf32> 25 %2 = math.atan2 %t, %t : tensor<4x4x?xf32>
|
| /llvm-project-15.0.7/mlir/test/Integration/Dialect/Complex/CPU/ |
| H A D | correctness.mlir | 75 func.func @atan2(%lhs: complex<f32>, %rhs: complex<f32>) -> complex<f32> { 76 %atan2 = complex.atan2 %lhs, %rhs : complex<f32> 77 func.return %atan2 : complex<f32> 138 // complex.atan2 test 153 %atan2_func = func.constant @atan2 : (complex<f32>, complex<f32>)
|
| /llvm-project-15.0.7/mlir/test/Dialect/Complex/ |
| H A D | ops.mlir | 80 // CHECK: complex.atan2 %[[C]], %[[C]] : complex<f32> 81 %atan2 = complex.atan2 %complex, %complex : complex<f32>
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstSimplify/ConstProp/ |
| H A D | math-2.ll | 4 declare double @atan2(double, double) #0 7 ; CHECK-NEXT: [[RES:%.*]] = tail call fast double @atan2(double 1.000000e+00, double 2.000000e+0… 10 %res = tail call fast double @atan2(double 1.0, double 2.0)
|
| /llvm-project-15.0.7/clang/lib/Headers/ |
| H A D | __clang_cuda_math_forward_declares.h | 39 __DEVICE__ double atan2(double, double); 40 __DEVICE__ float atan2(float, float); 206 using ::atan2;
|
| H A D | __clang_cuda_cmath.h | 48 __DEVICE__ float atan2(float __x, float __y) { return ::atan2f(__x, __y); } in atan2() function 246 __CUDA_CLANG_FN_INTEGER_OVERLOAD_2(double, atan2); 373 using ::atan2;
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | type-promotion-in-math-fn.cpp | 9 double atan2(double, double); 80 atan2(a, b); in check_all_fns()
|
| /llvm-project-15.0.7/libclc/generic/include/clc/math/ |
| H A D | atan2.h | 23 #define __CLC_FUNCTION atan2
|
| /llvm-project-15.0.7/clang/lib/Headers/openmp_wrappers/ |
| H A D | complex_cmath.h | 41 return atan2(__c.imag(), __c.real()); in arg() 48 return atan2(0., __re); in arg() 175 const _Tp __pi(atan2(+0., -0.)); in asinh() 203 const _Tp __pi(atan2(+0., -0.)); in acosh() 236 const _Tp __pi(atan2(+0., -0.)); in atanh() 326 const _Tp __pi(atan2(+0., -0.)); in acos()
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/ |
| H A D | atan2_value_valarray.pass.cpp | 36 std::valarray<T> v3 = atan2(.75, v1); in main()
|
| H A D | atan2_valarray_value.pass.cpp | 36 std::valarray<T> v3 = atan2(v1, .75); in main()
|
| H A D | atan2_valarray_valarray.pass.cpp | 38 std::valarray<T> v3 = atan2(v1, v2); in main()
|
| /llvm-project-15.0.7/clang/test/Headers/Inputs/include/ |
| H A D | cmath | 18 double atan2(double, double); 19 float atan2(float, float); 166 using ::atan2;
|
| /llvm-project-15.0.7/libclc/generic/lib/math/ |
| H A D | atan2.cl | 29 _CLC_OVERLOAD _CLC_DEF float atan2(float y, float x) 82 _CLC_BINARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, atan2, float, float); 88 _CLC_OVERLOAD _CLC_DEF double atan2(double y, double x) 235 _CLC_BINARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, atan2, double, double);
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | libcalls.c | 95 double atan2_ = atan2(d, 2); in test_builtins()
|
| H A D | libcall-declarations.c | 10 double atan2(double noundef, double); 264 F(atan2), F(atan2f), F(atan2l), F(abs), F(labs),
|
| /llvm-project-15.0.7/mlir/test/Conversion/MathToLibm/ |
| H A D | convert-to-libm.mlir | 9 // CHECK-DAG: @atan2(f64, f64) -> f64 88 %float_result = math.atan2 %float, %float : f32 89 // CHECK: %[[DOUBLE_RESULT:.*]] = call @atan2(%[[DOUBLE]], %[[DOUBLE]]) : (f64, f64) -> f64 90 %double_result = math.atan2 %double, %double : f64 95 %half_result = math.atan2 %half, %half : f16 100 %bfloat_result = math.atan2 %bfloat, %bfloat : bf16
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | win-math.ll | 51 declare double @atan2(double %x, double %y) 55 ; MSVCXX: double @atan2 57 ; MSVC19: double @atan2 60 %3 = call double @atan2(double %1, double %2)
|
| /llvm-project-15.0.7/libcxx/test/std/depr/depr.c.headers/ |
| H A D | math_h.pass.cpp | 37 Ambiguous atan2(Ambiguous, Ambiguous){ return Ambiguous(); } in atan2() function 198 static_assert((std::is_same<decltype(atan2((float)0, (float)0)), float>::value), ""); in test_atan2() 199 static_assert((std::is_same<decltype(atan2((bool)0, (float)0)), double>::value), ""); in test_atan2() 201 static_assert((std::is_same<decltype(atan2((int)0, (long double)0)), long double>::value), ""); in test_atan2() 202 static_assert((std::is_same<decltype(atan2((float)0, (unsigned int)0)), double>::value), ""); in test_atan2() 203 static_assert((std::is_same<decltype(atan2((double)0, (long)0)), double>::value), ""); in test_atan2() 205 static_assert((std::is_same<decltype(atan2((int)0, (long long)0)), double>::value), ""); in test_atan2() 207 static_assert((std::is_same<decltype(atan2((double)0, (double)0)), double>::value), ""); in test_atan2() 209 static_assert((std::is_same<decltype(atan2((float)0, (double)0)), double>::value), ""); in test_atan2() 214 static_assert((std::is_same<decltype(atan2((int)0, (int)0)), double>::value), ""); in test_atan2() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/complex.number/complex.value.ops/ |
| H A D | arg.pass.cpp | 31 const double pi = std::atan2(+0., -0.); in test_edges()
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/c.math/ |
| H A D | cmath.pass.cpp | 38 Ambiguous atan2(Ambiguous, Ambiguous){ return Ambiguous(); } in atan2() function 203 static_assert((std::is_same<decltype(std::atan2((float)0, (float)0)), float>::value), ""); in test_atan2() 204 static_assert((std::is_same<decltype(std::atan2((bool)0, (float)0)), double>::value), ""); in test_atan2() 207 … static_assert((std::is_same<decltype(std::atan2((float)0, (unsigned int)0)), double>::value), ""); in test_atan2() 208 static_assert((std::is_same<decltype(std::atan2((double)0, (long)0)), double>::value), ""); in test_atan2() 210 static_assert((std::is_same<decltype(std::atan2((int)0, (long long)0)), double>::value), ""); in test_atan2() 212 static_assert((std::is_same<decltype(std::atan2((double)0, (double)0)), double>::value), ""); in test_atan2() 214 static_assert((std::is_same<decltype(std::atan2((float)0, (double)0)), double>::value), ""); in test_atan2() 219 static_assert((std::is_same<decltype(std::atan2((int)0, (int)0)), double>::value), ""); in test_atan2() 220 static_assert((std::is_same<decltype(atan2(Ambiguous(), Ambiguous())), Ambiguous>::value), ""); in test_atan2() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Math/IR/ |
| H A D | MathOps.td | 119 def Math_Atan2Op : Math_FloatBinaryOp<"atan2">{ 125 operation ::= ssa-id `=` `math.atan2` ssa-use `,` ssa-use `:` type 128 The `atan2` operation takes two operands and returns one result, all of 132 The 2-argument arcus tangent `atan2(y, x)` returns the angle in the 143 %a = math.atan2 %b, %c : f32
|
| /llvm-project-15.0.7/libclc/clspv/lib/ |
| H A D | SOURCES | 9 ../../generic/lib/math/atan2.cl
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | ScalarFuncs.def | 41 TLI_DEFINE_SCALAR_MASS_FUNC("atan2", "__xl_atan2")
|