[Openmp-commits] [openmp] [Libomptarget] Only initialize a plugin if a device image needs it (PR #76174)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Thu Dec 21 13:04:16 PST 2023

@@ -48,9 +48,12 @@
 namespace llvm {
 namespace omp {
 namespace target {
 namespace plugin {
+/// The plugin's native ELF architecture. This should be defined individually
+/// by each plugin, and ELF:EM_NONE if the ELF target is not applicable.
+extern const uint16_t ELFMachine;
jhuber6 wrote:

I think `const` is a little weird, so it may not linker error. Would need to double check.


More information about the Openmp-commits mailing list