[libc-commits] [PATCH] D149363: [libc] Implement `exit` for the GPU partially
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Apr 27 11:07:09 PDT 2023
jhuber6 created this revision.
jhuber6 added reviewers: sivachandra, lntue, michaelrj, jdoerfert.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
jhuber6 requested review of this revision.
This patch implements the `exit` function on the GPU. This required
breaking the entrypoints calling eachother on `linux` since this doesn't
work with a non-aliased target. This is only partial support because
full support requires a malloc / free implementation for the exit
callbacks array.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149363
Files:
libc/config/gpu/entrypoints.txt
libc/src/stdlib/CMakeLists.txt
libc/src/stdlib/exit.cpp
libc/src/stdlib/gpu/CMakeLists.txt
libc/src/stdlib/gpu/_Exit.cpp
libc/src/stdlib/linux/_Exit.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149363.517650.patch
Type: text/x-patch
Size: 3819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230427/3804edf9/attachment.bin>
More information about the libc-commits
mailing list