[libc-commits] [libc] 4d94a00 - [libc] Support more functions in riscv
Mikhail R. Gadelha via libc-commits
libc-commits at lists.llvm.org
Wed Mar 8 09:59:16 PST 2023
Author: Mikhail R. Gadelha
Date: 2023-03-08T14:58:51-03:00
New Revision: 4d94a0080e1490513bde3da4302c7cb729246ddb
URL: https://github.com/llvm/llvm-project/commit/4d94a0080e1490513bde3da4302c7cb729246ddb
DIFF: https://github.com/llvm/llvm-project/commit/4d94a0080e1490513bde3da4302c7cb729246ddb.diff
LOG: [libc] Support more functions in riscv
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D145444
Added:
Modified:
libc/config/linux/riscv64/entrypoints.txt
libc/config/linux/riscv64/headers.txt
Removed:
################################################################################
diff --git a/libc/config/linux/riscv64/entrypoints.txt b/libc/config/linux/riscv64/entrypoints.txt
index cc052f9b41d2..9553e9ba4a19 100644
--- a/libc/config/linux/riscv64/entrypoints.txt
+++ b/libc/config/linux/riscv64/entrypoints.txt
@@ -48,11 +48,15 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.string.strcat
libc.src.string.strchr
libc.src.string.strcmp
+ libc.src.string.strcoll
libc.src.string.strcpy
libc.src.string.strcspn
libc.src.string.strdup
libc.src.string.strerror
libc.src.string.strerror_r
+ libc.src.string.strdup
+ libc.src.string.strerror
+ libc.src.string.strerror_r
libc.src.string.strlcat
libc.src.string.strlcpy
libc.src.string.strlen
@@ -61,10 +65,12 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.string.strncmp
libc.src.string.strncpy
libc.src.string.strndup
+ libc.src.string.strndup
libc.src.string.strnlen
libc.src.string.strpbrk
libc.src.string.strrchr
libc.src.string.strsignal
+ libc.src.string.strsignal
libc.src.string.strspn
libc.src.string.strstr
libc.src.string.strtok
@@ -75,7 +81,7 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.inttypes.imaxdiv
libc.src.inttypes.strtoimax
libc.src.inttypes.strtoumax
-
+
# stdlib.h entrypoints
libc.src.stdlib.abs
libc.src.stdlib.atoi
@@ -89,6 +95,8 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdlib.llabs
libc.src.stdlib.lldiv
libc.src.stdlib.qsort
+ libc.src.stdlib.rand
+ libc.src.stdlib.srand
libc.src.stdlib.strtod
libc.src.stdlib.strtof
libc.src.stdlib.strtol
@@ -106,6 +114,8 @@ set(TARGET_LIBC_ENTRYPOINTS
# stdio.h entrypoints
libc.src.stdio.remove
+ libc.src.stdio.sprintf
+ libc.src.stdio.snprintf
# sys/mman.h entrypoints
libc.src.sys.mman.madvise
@@ -162,6 +172,7 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.unistd.dup
libc.src.unistd.dup2
libc.src.unistd.dup3
+ libc.src.unistd.execve
libc.src.unistd.fchdir
libc.src.unistd.fsync
libc.src.unistd.ftruncate
@@ -170,6 +181,7 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.unistd.getpid
libc.src.unistd.getppid
libc.src.unistd.getuid
+ libc.src.unistd.isatty
libc.src.unistd.link
libc.src.unistd.linkat
libc.src.unistd.lseek
@@ -206,18 +218,114 @@ set(TARGET_LIBM_ENTRYPOINTS
libc.src.fenv.feupdateenv
# math.h entrypoints
+ libc.src.math.acosf
+ libc.src.math.acoshf
+ libc.src.math.asin
+ libc.src.math.asinf
+ libc.src.math.asinhf
+ libc.src.math.atanf
+ libc.src.math.atanhf
+ libc.src.math.copysign
+ libc.src.math.copysignf
+ libc.src.math.copysignl
+ libc.src.math.ceil
+ libc.src.math.ceilf
+ libc.src.math.ceill
+ # libc.src.math.cos
+ libc.src.math.coshf
+ libc.src.math.cosf
+ libc.src.math.expf
+ libc.src.math.exp10f
+ libc.src.math.exp2f
+ libc.src.math.expm1f
libc.src.math.fabs
libc.src.math.fabsf
libc.src.math.fabsl
libc.src.math.fdim
libc.src.math.fdimf
libc.src.math.fdiml
- libc.src.math.fmax
- libc.src.math.fmaxf
- libc.src.math.fmaxl
+ libc.src.math.floor
+ libc.src.math.floorf
+ libc.src.math.floorl
+ libc.src.math.fma
+ libc.src.math.fmaf
libc.src.math.fmin
libc.src.math.fminf
libc.src.math.fminl
+ libc.src.math.fmax
+ libc.src.math.fmaxf
+ libc.src.math.fmaxl
+ libc.src.math.fmod
+ libc.src.math.fmodf
+ libc.src.math.frexp
+ libc.src.math.frexpf
+ libc.src.math.frexpl
+ libc.src.math.hypot
+ libc.src.math.hypotf
+ libc.src.math.ilogb
+ libc.src.math.ilogbf
+ libc.src.math.ilogbl
+ libc.src.math.ldexp
+ libc.src.math.ldexpf
+ libc.src.math.ldexpl
+ libc.src.math.llrint
+ libc.src.math.llrintf
+ libc.src.math.llrintl
+ libc.src.math.llround
+ libc.src.math.llroundf
+ libc.src.math.llroundl
+ libc.src.math.log10
+ libc.src.math.log10f
+ libc.src.math.log1pf
+ libc.src.math.log2f
+ libc.src.math.logf
+ libc.src.math.logb
+ libc.src.math.logbf
+ libc.src.math.logbl
+ libc.src.math.lrint
+ libc.src.math.lrintf
+ libc.src.math.lrintl
+ libc.src.math.lround
+ libc.src.math.lroundf
+ libc.src.math.lroundl
+ libc.src.math.modf
+ libc.src.math.modff
+ libc.src.math.modfl
+ libc.src.math.nearbyint
+ libc.src.math.nearbyintf
+ libc.src.math.nearbyintl
+ libc.src.math.nextafter
+ libc.src.math.nextafterf
+ libc.src.math.nextafterl
+ libc.src.math.pow
+ libc.src.math.remainderf
+ libc.src.math.remainder
+ libc.src.math.remainderl
+ libc.src.math.remquof
+ libc.src.math.remquo
+ libc.src.math.remquol
+ libc.src.math.rint
+ libc.src.math.rintf
+ libc.src.math.rintl
+ libc.src.math.round
+ libc.src.math.roundf
+ libc.src.math.roundl
+ libc.src.math.scalbn
+ libc.src.math.scalbnf
+ libc.src.math.scalbnl
+ # libc.src.math.sin
+ libc.src.math.sincosf
+ libc.src.math.sinhf
+ libc.src.math.sinf
+ libc.src.math.sqrt
+ libc.src.math.sqrtf
+ libc.src.math.sqrtl
+ # libc.src.math.tan
+ libc.src.math.tanf
+ libc.src.math.tanhf
+ libc.src.math.trunc
+ libc.src.math.truncf
+ libc.src.math.truncl
)
set(TARGET_LLVMLIBC_ENTRYPOINTS
diff --git a/libc/config/linux/riscv64/headers.txt b/libc/config/linux/riscv64/headers.txt
index cc436c7119f4..415c47f08f3b 100644
--- a/libc/config/linux/riscv64/headers.txt
+++ b/libc/config/linux/riscv64/headers.txt
@@ -3,6 +3,7 @@ set(TARGET_PUBLIC_HEADERS
libc.include.errno
libc.include.inttypes
libc.include.math
+ libc.include.sched
libc.include.stdlib
libc.include.string
)
More information about the libc-commits
mailing list