[libc-commits] [libc] [libc] updated remaining yaml functions (PR #102705)
via libc-commits
libc-commits at lists.llvm.org
Fri Aug 9 17:15:24 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: None (RoseZhang03)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/102705.diff
2 Files Affected:
- (modified) libc/newhdrgen/yaml/gpu/rpc.yaml (-9)
- (modified) libc/newhdrgen/yaml/math.yaml (+154-18)
``````````diff
diff --git a/libc/newhdrgen/yaml/gpu/rpc.yaml b/libc/newhdrgen/yaml/gpu/rpc.yaml
index 61856bc0c7d692..6f9194a0c6e904 100644
--- a/libc/newhdrgen/yaml/gpu/rpc.yaml
+++ b/libc/newhdrgen/yaml/gpu/rpc.yaml
@@ -4,15 +4,6 @@ types: []
enums: []
objects: []
functions:
- - name: rpc_fprintf
- standards:
- - GPUExtensions
- return_type: int
- arguments:
- - type: ::FILE *__restrict
- - type: const char *__restrict
- - type: void *
- - type: size_t
- name: rpc_host_call
standards:
- GPUExtensions
diff --git a/libc/newhdrgen/yaml/math.yaml b/libc/newhdrgen/yaml/math.yaml
index b724ac9fc17c74..7b1c2caa56758e 100644
--- a/libc/newhdrgen/yaml/math.yaml
+++ b/libc/newhdrgen/yaml/math.yaml
@@ -37,6 +37,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: atan2
+ standards:
+ - stdc
+ return_type: double
+ arguments:
+ - type: double
+ - type: double
- name: atan2f
standards:
- stdc
@@ -192,6 +199,29 @@ functions:
return_type: float
arguments:
- type: float
+ - name: daddf128
+ standards:
+ - llvm_libc_ext
+ return_type: double
+ arguments:
+ - type: float128
+ - type: float128
+ guard: LIBC_TYPES_HAS_FLOAT128
+ - name: daddl
+ standards:
+ - stdc
+ return_type: double
+ arguments:
+ - type: long double
+ - type: long double
+ - name: ddivf128
+ standards:
+ - llvm_libc_ext
+ return_type: double
+ arguments:
+ - type: float128
+ - type: float128
+ guard: LIBC_TYPES_HAS_FLOAT128
- name: ddivl
standards:
- stdc
@@ -199,6 +229,23 @@ functions:
arguments:
- type: long double
- type: long double
+ - name: dfmaf128
+ standards:
+ - llvm_libc_ext
+ return_type: double
+ arguments:
+ - type: float128
+ - type: float128
+ - type: float128
+ guard: LIBC_TYPES_HAS_FLOAT128
+ - name: dfmal
+ standards:
+ - stdc
+ return_type: double
+ arguments:
+ - type: long double
+ - type: long double
+ - type: long double
- name: dmulf128
standards:
- llvm_libc_ext
@@ -214,6 +261,34 @@ functions:
arguments:
- type: long double
- type: long double
+ - name: dsqrtf128
+ standards:
+ - llvm_libc_ext
+ return_type: double
+ arguments:
+ - type: float128
+ guard: LIBC_TYPES_HAS_FLOAT128
+ - name: dsqrtl
+ standards:
+ - stdc
+ return_type: double
+ arguments:
+ - type: long double
+ - name: dsubf128
+ standards:
+ - llvm_libc_ext
+ return_type: double
+ arguments:
+ - type: float128
+ - type: float128
+ guard: LIBC_TYPES_HAS_FLOAT128
+ - name: dsubl
+ standards:
+ - stdc
+ return_type: double
+ arguments:
+ - type: long double
+ - type: long double
- name: erff
standards:
- stdc
@@ -238,6 +313,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: exp10f16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: exp2
standards:
- stdc
@@ -250,6 +332,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: exp2f16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: exp2m1f
standards:
- stdc
@@ -262,6 +351,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: expf16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: expm1
standards:
- stdc
@@ -1195,6 +1291,25 @@ functions:
- type: long double
- type: int
- type: unsigned int
+ - name: fsqrt
+ standards:
+ - stdc
+ return_type: float
+ arguments:
+ - type: double
+ - name: fsqrtf128
+ standards:
+ - llvm_libc_ext
+ return_type: float
+ arguments:
+ - type: float128
+ guard: LIBC_TYPES_HAS_FLOAT128
+ - name: fsqrtl
+ standards:
+ - stdc
+ return_type: float
+ arguments:
+ - type: long double
- name: fsub
standards:
- stdc
@@ -2091,14 +2206,6 @@ functions:
- type: _Float16
- type: long
guard: LIBC_TYPES_HAS_FLOAT16
- - name: scalblnf16
- standards:
- - stdc
- return_type: float16
- arguments:
- - type: float16
- - type: long
- guard: LIBC_TYPES_HAS_FLOAT16
- name: scalblnl
standards:
- stdc
@@ -2291,38 +2398,59 @@ functions:
- stdc
return_type: int
arguments:
- - type: const double *
- - type: const double *
+ - type: double *
+ - type: double *
- name: totalorderf
standards:
- stdc
return_type: int
arguments:
- - type: const float *
- - type: const float *
+ - type: float *
+ - type: float *
- name: totalorderf128
standards:
- stdc
return_type: int
arguments:
- - type: const float128 *
- - type: const float128 *
+ - type: float128 *
+ - type: float128 *
guard: LIBC_TYPES_HAS_FLOAT128
- name: totalorderf16
standards:
- stdc
return_type: int
arguments:
- - type: const _Float16 *
- - type: const _Float16 *
+ - type: _Float16 *
+ - type: _Float16 *
guard: LIBC_TYPES_HAS_FLOAT16
- name: totalorderl
standards:
- stdc
return_type: int
arguments:
- - type: const long double *
- - type: const long double *
+ - type: long double *
+ - type: long double *
+ - name: totalordermag
+ standards:
+ - stdc
+ return_type: int
+ arguments:
+ - type: double *
+ - type: double *
+ - name: totalordermagf
+ standards:
+ - stdc
+ return_type: int
+ arguments:
+ - type: float *
+ - type: float *
+ - name: totalordermagl
+ standards:
+ - stdc
+ return_type: int
+ arguments:
+ - type: long double *
+ - type: long double *
- name: totalordermagf16
standards:
- stdc
@@ -2331,6 +2459,14 @@ functions:
- type: _Float16 *
- type: _Float16 *
guard: LIBC_TYPES_HAS_FLOAT16
+ - name: totalordermagf128
+ standards:
+ - stdc
+ return_type: int
+ arguments:
+ - type: float128 *
+ - type: float128 *
+ guard: LIBC_TYPES_HAS_FLOAT128
- name: trunc
standards:
- stdc
``````````
</details>
https://github.com/llvm/llvm-project/pull/102705
More information about the libc-commits
mailing list