Skip to content

Commit

Permalink
updated yaml files with all new functions added to .td files
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseZhang03 committed Jul 3, 2024
1 parent fd57f12 commit 1356b5c
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 3 deletions.
139 changes: 137 additions & 2 deletions libc/newhdrgen/yaml/math.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,15 @@ functions:
- type: float
- type: float
- type: float
- name: f16fma
standards:
- stdc
return_type: _Float16
arguments:
- type: double
- type: double
- type: double
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16fmaf
standards:
- stdc
Expand All @@ -572,6 +581,24 @@ functions:
- type: float
- type: float
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16fmal
standards:
- stdc
return_type: _Float16
arguments:
- type: long double
- type: long double
- type: long double
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16fmaf128
standards:
- stdc
return_type: _Float16
arguments:
- type: float128
- type: float128
- type: float128
guard: LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
- name: fmod
standards:
- stdc
Expand Down Expand Up @@ -913,6 +940,14 @@ functions:
arguments:
- type: long double
- type: int
- name: ldexpf16
standards:
- stdc
return_type: _Float16
arguments:
- type: _Float16
- type: int
guard: LIBC_TYPES_HAS_FLOAT16
- name: ldexpf128
standards:
- stdc
Expand Down Expand Up @@ -1761,6 +1796,14 @@ functions:
return_type: float
arguments:
- type: float
- name: scalblnf16
standards:
- stdc
return_type: _Float16
arguments:
- type: _Float16
- type: long
guard: LIBC_TYPES_HAS_FLOAT16
- name: scalbn
standards:
- stdc
Expand All @@ -1782,6 +1825,13 @@ functions:
arguments:
- type: long double
- type: int
- name: scalbnf16
standards:
- stdc
return_type: _Float16
arguments:
- type: _Float16
- type: int
- name: scalbnf128
standards:
- stdc
Expand Down Expand Up @@ -1875,14 +1925,67 @@ functions:
- type: _Float16 *
- type: _Float16 *
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16sqrtf
- name: getpayloadf16
standards:
- stdc
return_type: _Float16
arguments:
- type: _Float16 *
guard: LIBC_TYPES_HAS_FLOAT16
- name: setpayloadf16
standards:
- stdc
return_type: int
arguments:
- type: _Float16 *
- type: _Float16
guard: LIBC_TYPES_HAS_FLOAT16
- name: setpayloadsigf16
standards:
- stdc
return_type: int
arguments:
- type: _Float16 *
- type: _Float16
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16addf128
standards:
- stdc
return_type: _Float16
arguments:
- type: float128
- type: float128
guard: LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
- name: f16subf128
standards:
- stdc
return_type: _Float16
arguments:
- type: float128
- type: float128
guard: LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
- name: f16sqrtf
standards:
- llvm_libc_ext
return_type: _Float16
arguments:
- type: float
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16sqrtf128
standards:
- llvm_libc_ext
return_type: _Float16
arguments:
- type: float128
guard: LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
- name: f16add
standards:
- llvm_libc_ext
return_type: _Float16
arguments:
- type: double
- type: double
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16addf
standards:
- llvm_libc_ext
Expand All @@ -1891,6 +1994,22 @@ functions:
- type: float
- type: float
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16addl
standards:
- llvm_libc_ext
return_type: _Float16
arguments:
- type: long double
- type: long double
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16sub
standards:
- llvm_libc_ext
return_type: _Float16
arguments:
- type: double
- type: double
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16subf
standards:
- llvm_libc_ext
Expand All @@ -1899,6 +2018,14 @@ functions:
- type: float
- type: float
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16subl
standards:
- llvm_libc_ext
return_type: _Float16
arguments:
- type: long double
- type: long double
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16div
standards:
- llvm_libc_ext
Expand All @@ -1908,13 +2035,21 @@ functions:
- type: double
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16divf
standards:
standards:
- llvm_libc_ext
return_type: _Float16
arguments:
- type: float
- type: float
guard: LIBC_TYPES_HAS_FLOAT16
- name: f16divf128
standards:
- stdc
return_type: _Float16
arguments:
- type: float128
- type: float128
guard: LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
- name: f16divl
standards:
- llvm_libc_ext
Expand Down
48 changes: 48 additions & 0 deletions libc/newhdrgen/yaml/pthread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,51 @@ functions:
arguments:
- type: pthread_key_t
- type: const void *
- name: pthread_rwlock_init
standards: POSIX
return_type: int
arguments:
- type: pthread_rwlock_t *
- type: const pthread_rwlockattr_t *__restrict
- name: pthread_rwlock_tryrdlock
standards: POSIX
return_type: int
arguments:
- type: pthread_rwlock_t *
- name: pthread_rwlock_trywrlock
standards: POSIX
return_type: int
arguments:
- type: pthread_rwlock_t *
- name: pthread_rwlock_timedrdlock
standards: POSIX
return_type: int
arguments:
- type: pthread_rwlock_t *__restrict
- type: const struct timespec *__restrict
- name: pthread_rwlock_timedwrlock
standards: POSIX
return_type: int
arguments:
- type: pthread_rwlock_t *__restrict
- type: const struct timespec *__restrict
- name: pthread_rwlock_rdlock
standards: POSIX
return_type: int
arguments:
- type: pthread_rwlock_t *
- name: pthread_rwlock_wrlock
standards: POSIX
return_type: int
arguments:
- type: pthread_rwlock_t *
- name: pthread_rwlock_unlock
standards: POSIX
return_type: int
arguments:
- type: pthread_rwlock_t *
- name: pthread_rwlock_destroy
standards: POSIX
return_type: int
arguments:
- type: pthread_rwlock_t *
7 changes: 7 additions & 0 deletions libc/newhdrgen/yaml/stdio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ functions:
return_type: int
arguments:
- type: FILE *
- name: fdopen
standards:
- POSIX
return_type: FILE *
arguments:
- type: int
- type: const char *
- name: clearerr
standards:
- stdc
Expand Down
8 changes: 7 additions & 1 deletion libc/newhdrgen/yaml/sys_auxv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ macros: []
types: []
enums: []
objects: []
functions: []
functions:
- name: getauxval
standards:
- GNUExtensions
return_type: unsigned long
arguments:
- type: unsigned long

0 comments on commit 1356b5c

Please sign in to comment.