[Openmp-commits] [PATCH] D130111: [OpenMP] Expose the state in the header to allow non-lto optimizations

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jul 19 12:38:28 PDT 2022

jhuber6 added a comment.

LG assuming it works.

This is an unfortunate side-effect of moving to our new build system. With ordinary host LTO we get a single LLVM IR output, making it trivial to do some extra bitcode linking. The problem with the device LTO is that we need to wrap the device IR in a binary format so we know what it is, and then wrap that in a host object file. So to do extra linking we'd need to extract this and then put them back in. The two solutions that could work for this is to support relocatable linking via the linker wrapper, or do all the extraction and linking manually.

  rG LLVM Github Monorepo



More information about the Openmp-commits mailing list