aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-10-28 07:17:50 -0700
committerGitHub <noreply@github.com>2024-10-28 07:17:50 -0700
commit42eb54b7743df421af10ebe14b67bb79b46ecabb (patch)
treeec4bfbddf43d21ce08632a9a720bd9f1a8284de0 /flang/lib/Frontend/CompilerInvocation.cpp
parentd4c41804175e9cb37266c410cafe9caaac1819ca (diff)
downloadllvm-42eb54b7743df421af10ebe14b67bb79b46ecabb.zip
llvm-42eb54b7743df421af10ebe14b67bb79b46ecabb.tar.gz
llvm-42eb54b7743df421af10ebe14b67bb79b46ecabb.tar.bz2
[Clang] Put offloading globals in the `.llvm.rodata.offloading` section (#111890)
Summary: For our offloading entries, we currently store all the string names of kernels that the runtime will need to load from the target executable. These are available via pointer in the `__tgt_offload_entry` struct, however this makes it difficult to obtain from the object itself. This patch simply puts the strings in a named section so they can be easily queried. The motivation behind this is that when the linker wrapper is doing linking, it wants to know which kernels the host executable is calling. We *could* get this already via the `.relaomp_offloading_entires` section and trawling through the string table, but that's quite annoying and not portable. The follow-up to this should be to make the linker wrapper get a list of all used symbols the device link job should count as "needed" so we can handle static linking more directly.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions