[all-commits] [llvm/llvm-project] 5121e2: [OpenMP] Change `__tgt_device_image` to point to t...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Jan 5 12:29:47 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5121e2cffd23751360e71a8ac69b7462dae23aa8
https://github.com/llvm/llvm-project/commit/5121e2cffd23751360e71a8ac69b7462dae23aa8
Author: Joseph Huber <huberjn at outlook.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M clang/test/Driver/linker-wrapper-image.c
M clang/tools/clang-linker-wrapper/OffloadWrapper.cpp
Log Message:
-----------
[OpenMP] Change `__tgt_device_image` to point to the image (#77003)
Summary:
We use the OffloadBinary to contain bundled offloading objects used to
support many images / targets at the same time. The `__tgt_device_info`
struct used to contain a pointer to this underlying binary format, which
contains information about the triple and architecture. We used to parse
this in the runtime to do image verification.
Recent changes removed the need for this to be used internally, as we
just parse it out of the ELF directly. This patch sets the pointers up
so they point to the ELF without requiring any further parsing.
More information about the All-commits
mailing list