[Openmp-commits] [openmp] [Libomptarget] Remove __tgt_image_info and use the ELF directly (PR #75720)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Mon Dec 18 14:41:06 PST 2023


================
@@ -1651,44 +1671,26 @@ int32_t __tgt_rtl_init_plugin() {
 }
 
 int32_t __tgt_rtl_is_valid_binary(__tgt_device_image *TgtImage) {
+  // TODO: We should be able to perform a trivial ELF machine check without
+  // initializing the plugin first to save time if the plugin is not needed.
----------------
jdoerfert wrote:

Right, we need a "static" part and a post-init part. The former should weed out clear mismatches and the latter can check things like version numbers and flag support.
Follow up though.

https://github.com/llvm/llvm-project/pull/75720


More information about the Openmp-commits mailing list