diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-06-28 20:17:56 -0500 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-07-06 18:10:49 -0500 |
commit | a4a26374aa11d48ac6bf65c78c2aaf8f16414287 (patch) | |
tree | e4e91e56c2cdd1068251062039dad74c368a0fa1 /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | ecf372f993fa0f1ae417a3159e5c397f36c2d48c (diff) | |
download | llvm-a4a26374aa11d48ac6bf65c78c2aaf8f16414287.zip llvm-a4a26374aa11d48ac6bf65c78c2aaf8f16414287.tar.gz llvm-a4a26374aa11d48ac6bf65c78c2aaf8f16414287.tar.bz2 |
[libc] Add support for creating wrapper headers for offloading in clang
This is an alternate approach to the patches proposed in D153897 and
D153794. Rather than exporting a single header that can be included on
the GPU in all circumstances, this patch chooses to instead generate a
separate set of headers that only provides the declarations. This can
then be used by external tooling to set up what's on the GPU. This
leaves room for header hacks for offloading languages without needing to
worry about the `libc` implementation.
Currently this generates a set of headers that only contain the
declarations. These will then be installed to a new clang resource
directory called `llvm_libc_wrappers/` which will house the shim code.
We can then automaticlaly include this from `clang` when offloading to
wrap around the headers while specifying what's on the GPU.
Reviewed By: jdoerfert, JonChesterfield
Differential Revision: https://reviews.llvm.org/D154036
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
0 files changed, 0 insertions, 0 deletions