[libc-commits] [libc] [libc] Add GPU config file using the new format (PR #66635)
via libc-commits
libc-commits at lists.llvm.org
Mon Sep 18 04:54:57 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
<details>
<summary>Changes</summary>
Summary:
This patch copies a config file for the GPU similar to the
baremetal/embedded implementation. This will configure the
implementations of functions like `sprintf` and `snprintf` to be
compiled into more simple versions that can be run on the GPU. These
functions cannot be enabled yet as Vararg support hasn't landed, but it
will be used then.
---
Full diff: https://github.com/llvm/llvm-project/pull/66635.diff
1 Files Affected:
- (added) libc/config/gpu/config.json (+16)
``````````diff
diff --git a/libc/config/gpu/config.json b/libc/config/gpu/config.json
new file mode 100644
index 000000000000000..53f232e31cc8a46
--- /dev/null
+++ b/libc/config/gpu/config.json
@@ -0,0 +1,16 @@
+{
+ "printf": {
+ "LIBC_CONF_PRINTF_DISABLE_FLOAT": {
+ "value": true
+ },
+ "LIBC_CONF_PRINTF_DISABLE_INDEX_MODE": {
+ "value": true
+ },
+ "LIBC_CONF_PRINTF_DISABLE_WRITE_INT": {
+ "value": true
+ },
+ "LIBC_CONF_PRINTF_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE": {
+ "value": false
+ }
+ }
+}
``````````
</details>
https://github.com/llvm/llvm-project/pull/66635
More information about the libc-commits
mailing list