[PATCH] D154036: [libc] Add support for creating wrapper headers for offloading in clang
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 29 13:42:25 PDT 2023
jhuber6 updated this revision to Diff 535983.
jhuber6 added a comment.
Add some checks to `stdlib.h` to ensure ABI compatibility for `div` functions.
Because this patch makes us always include the LLVM libc repo when offloading,
we mask off the wrappers if they were not installed by `libc`, so this is simply
a passthrough include header if the user didn't build with LLVM C library for
the GPU.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154036/new/
https://reviews.llvm.org/D154036
Files:
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Headers/CMakeLists.txt
clang/lib/Headers/llvm_libc_wrappers/ctype.h
clang/lib/Headers/llvm_libc_wrappers/llvm-libc-decls/README.txt
clang/lib/Headers/llvm_libc_wrappers/stdio.h
clang/lib/Headers/llvm_libc_wrappers/stdlib.h
clang/lib/Headers/llvm_libc_wrappers/string.h
clang/test/Driver/gpu-libc-headers.c
libc/cmake/modules/LLVMLibCHeaderRules.cmake
libc/include/CMakeLists.txt
libc/utils/HdrGen/Generator.cpp
libc/utils/HdrGen/Generator.h
libc/utils/HdrGen/Main.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154036.535983.patch
Type: text/x-patch
Size: 20228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230629/cf49a786/attachment-0001.bin>
More information about the cfe-commits
mailing list