[libc-commits] [PATCH] D154143: [libc] Enable the 'div' routines on the GPU
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Jun 29 13:06:46 PDT 2023
jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992, JonChesterfield, lntue, michaelrj, sivachandra.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
jhuber6 requested review of this revision.
This patch simply enables the `div`, `ldiv,` and, `lldiv` functions on
the GPU. This should be straightforward enough.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154143
Files:
libc/config/gpu/api.td
libc/config/gpu/entrypoints.txt
libc/docs/gpu/support.rst
Index: libc/docs/gpu/support.rst
===================================================================
--- libc/docs/gpu/support.rst
+++ libc/docs/gpu/support.rst
@@ -92,6 +92,9 @@
exit |check| |check|
labs |check|
llabs |check|
+div |check|
+ldiv |check|
+lldiv |check|
strtod |check|
strtof |check|
strtol |check|
Index: libc/config/gpu/entrypoints.txt
===================================================================
--- libc/config/gpu/entrypoints.txt
+++ libc/config/gpu/entrypoints.txt
@@ -60,8 +60,11 @@
libc.src.stdlib.atof
libc.src.stdlib.atol
libc.src.stdlib.atoll
+ libc.src.stdlib.div
libc.src.stdlib.labs
+ libc.src.stdlib.ldiv
libc.src.stdlib.llabs
+ libc.src.stdlib.lldiv
libc.src.stdlib.strtod
libc.src.stdlib.strtof
libc.src.stdlib.strtol
Index: libc/config/gpu/api.td
===================================================================
--- libc/config/gpu/api.td
+++ libc/config/gpu/api.td
@@ -9,6 +9,9 @@
def StdlibAPI : PublicAPI<"stdlib.h"> {
let Types = [
+ "div_t",
+ "ldiv_t",
+ "lldiv_t",
"size_t",
"__atexithandler_t",
];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154143.535970.patch
Type: text/x-patch
Size: 1218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230629/b316a29d/attachment.bin>
More information about the libc-commits
mailing list