diff options
author | Siva Chandra <sivachandra@google.com> | 2023-03-06 22:19:37 +0000 |
---|---|---|
committer | Siva Chandra <sivachandra@google.com> | 2023-03-06 23:03:43 +0000 |
commit | f7e91f2b824a2abe50433febe506b9aeb36245d9 (patch) | |
tree | 14100363db0e7483c08a52440650adba3569cfa1 /libc/config | |
parent | d49b993f0d563932f72f435a95c315120e8b1aeb (diff) | |
download | llvm-f7e91f2b824a2abe50433febe506b9aeb36245d9.tar.gz |
[libc] Add riscv64 config.
Memory functions get the basic implementation. They can be tuned
as a follow up.
Reviewed By: michaelrj, lntue
Differential Revision: https://reviews.llvm.org/D145433
Diffstat (limited to 'libc/config')
-rw-r--r-- | libc/config/linux/riscv64/entrypoints.txt | 106 | ||||
-rw-r--r-- | libc/config/linux/riscv64/headers.txt | 8 |
2 files changed, 114 insertions, 0 deletions
diff --git a/libc/config/linux/riscv64/entrypoints.txt b/libc/config/linux/riscv64/entrypoints.txt new file mode 100644 index 000000000000..183cf1b66a88 --- /dev/null +++ b/libc/config/linux/riscv64/entrypoints.txt @@ -0,0 +1,106 @@ +set(TARGET_LIBC_ENTRYPOINTS + # ctype.h entrypoints + libc.src.ctype.isalnum + libc.src.ctype.isalpha + libc.src.ctype.isascii + libc.src.ctype.isblank + libc.src.ctype.iscntrl + libc.src.ctype.isdigit + libc.src.ctype.isgraph + libc.src.ctype.islower + libc.src.ctype.isprint + libc.src.ctype.ispunct + libc.src.ctype.isspace + libc.src.ctype.isupper + libc.src.ctype.isxdigit + libc.src.ctype.toascii + libc.src.ctype.tolower + libc.src.ctype.toupper + + # errno.h entrypoints + libc.src.errno.errno + + # string.h entrypoints + libc.src.string.bcmp + libc.src.string.bcopy + libc.src.string.bzero + libc.src.string.memccpy + libc.src.string.memchr + libc.src.string.memcmp + libc.src.string.memcpy + libc.src.string.memmove + libc.src.string.mempcpy + libc.src.string.memrchr + libc.src.string.memset + libc.src.string.stpcpy + libc.src.string.stpncpy + libc.src.string.strcasecmp + libc.src.string.strcasestr + libc.src.string.strcat + libc.src.string.strchr + libc.src.string.strcmp + libc.src.string.strcpy + libc.src.string.strcspn + libc.src.string.strlcat + libc.src.string.strlcpy + libc.src.string.strlen + libc.src.string.strncasecmp + libc.src.string.strncat + libc.src.string.strncmp + libc.src.string.strncpy + libc.src.string.strnlen + libc.src.string.strpbrk + libc.src.string.strrchr + libc.src.string.strspn + libc.src.string.strstr + libc.src.string.strtok + libc.src.string.strtok_r + + # inttypes.h entrypoints + libc.src.inttypes.imaxabs + libc.src.inttypes.imaxdiv + libc.src.inttypes.strtoimax + libc.src.inttypes.strtoumax + + # stdlib.h entrypoints + libc.src.stdlib.abs + libc.src.stdlib.atoi + libc.src.stdlib.atof + libc.src.stdlib.atol + libc.src.stdlib.atoll + libc.src.stdlib.bsearch + libc.src.stdlib.div + libc.src.stdlib.labs + libc.src.stdlib.ldiv + libc.src.stdlib.llabs + libc.src.stdlib.lldiv + libc.src.stdlib.qsort + libc.src.stdlib.strtod + libc.src.stdlib.strtof + libc.src.stdlib.strtol + libc.src.stdlib.strtold + libc.src.stdlib.strtoll + libc.src.stdlib.strtoul + libc.src.stdlib.strtoull +) + +set(TARGET_LIBM_ENTRYPOINTS + # math.h entrypoints + 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.fmin + libc.src.math.fminf + libc.src.math.fminl +) + +set(TARGET_LLVMLIBC_ENTRYPOINTS + ${TARGET_LIBC_ENTRYPOINTS} + ${TARGET_LIBM_ENTRYPOINTS} +) diff --git a/libc/config/linux/riscv64/headers.txt b/libc/config/linux/riscv64/headers.txt new file mode 100644 index 000000000000..cc436c7119f4 --- /dev/null +++ b/libc/config/linux/riscv64/headers.txt @@ -0,0 +1,8 @@ +set(TARGET_PUBLIC_HEADERS + libc.include.ctype + libc.include.errno + libc.include.inttypes + libc.include.math + libc.include.stdlib + libc.include.string +) |