[libc-commits] [libc] 1f567b2 - [libc] Add a simple linux aarch64 config.
Siva Chandra via libc-commits
libc-commits at lists.llvm.org
Wed Jun 10 11:25:21 PDT 2020
Author: Siva Chandra
Date: 2020-06-10T11:19:52-07:00
New Revision: 1f567b2c6f6573b19cbd81f876717f28623b51e9
URL: https://github.com/llvm/llvm-project/commit/1f567b2c6f6573b19cbd81f876717f28623b51e9
DIFF: https://github.com/llvm/llvm-project/commit/1f567b2c6f6573b19cbd81f876717f28623b51e9.diff
LOG: [libc] Add a simple linux aarch64 config.
Summary:
With this change, "ninja check-libc" on linux/aarch64 succeeds.
However, all entrypoints with machine dependent implementations
have been skipped. A good number of these skipped entrypoints can
be enabled once we have aarch64 syscall support available.
Reviewers: abrachet, asteinhauser
Differential Revision: https://reviews.llvm.org/D81533
Added:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/aarch64/headers.txt
Modified:
Removed:
################################################################################
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
new file mode 100644
index 000000000000..ca3157b295e8
--- /dev/null
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -0,0 +1,26 @@
+set(TARGET_LIBC_ENTRYPOINTS
+ # errno.h entrypoints
+ libc.src.errno.__errno_location
+
+ # string.h entrypoints
+ libc.src.string.strlen
+)
+
+set(TARGET_LIBM_ENTRYPOINTS
+ # math.h entrypoints
+ libc.src.math.ceil
+ libc.src.math.ceilf
+ libc.src.math.cosf
+ libc.src.math.expf
+ libc.src.math.exp2f
+ libc.src.math.fabs
+ libc.src.math.fabsf
+ libc.src.math.floor
+ libc.src.math.floorf
+ libc.src.math.round
+ libc.src.math.roundf
+ libc.src.math.sincosf
+ libc.src.math.sinf
+ libc.src.math.trunc
+ libc.src.math.truncf
+)
diff --git a/libc/config/linux/aarch64/headers.txt b/libc/config/linux/aarch64/headers.txt
new file mode 100644
index 000000000000..a40f4b827607
--- /dev/null
+++ b/libc/config/linux/aarch64/headers.txt
@@ -0,0 +1,5 @@
+set(PUBLIC_HEADERS
+ libc.include.errno
+ libc.include.math
+ libc.include.sys_syscall
+)
More information about the libc-commits
mailing list