diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2022-05-06 13:56:42 -0400 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2022-05-11 09:39:13 -0400 |
commit | 26eb04268f4c9c0e2d4ff5bc53ae90cbb7f6c731 (patch) | |
tree | 1ca439d3b7e3e40c0d3e8310acfe967909b51605 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 75bb815231f6967bd5f4e24143141b9fe69d01f8 (diff) | |
download | llvm-26eb04268f4c9c0e2d4ff5bc53ae90cbb7f6c731.zip llvm-26eb04268f4c9c0e2d4ff5bc53ae90cbb7f6c731.tar.gz llvm-26eb04268f4c9c0e2d4ff5bc53ae90cbb7f6c731.tar.bz2 |
[Clang] Introduce clang-offload-packager tool to bundle device files
In order to do offloading compilation we need to embed files into the
host and create fatbainaries. Clang uses a special binary format to
bundle several files along with their metadata into a single binary
image. This is currently performed using the `-fembed-offload-binary`
option. However this is not very extensibile since it requires changing
the command flag every time we want to add something and makes optional
arguments difficult. This patch introduces a new tool called
`clang-offload-packager` that behaves similarly to CUDA's `fatbinary`.
This tool takes several input files with metadata and embeds it into a
single image that can then be embedded in the host.
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D125165
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions