[Openmp-commits] [openmp] [Libomptarget] Move API implementations into GenericPluginTy (PR #86683)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Wed Mar 27 07:14:26 PDT 2024


================
@@ -2049,6 +2014,212 @@ int32_t __tgt_rtl_get_function(__tgt_device_binary Binary, const char *Name,
   return OFFLOAD_SUCCESS;
 }
 
+bool llvm::omp::target::plugin::libomptargetSupportsRPC() {
+#ifdef LIBOMPTARGET_RPC_SUPPORT
+  return true;
+#else
+  return false;
+#endif
+}
+
+/// Exposed library API function, basically wrappers around the GenericDeviceTy
+/// functionality with the same name. All non-async functions are redirected
+/// to the async versions right away with a NULL AsyncInfoPtr.
+#ifdef __cplusplus
+extern "C" {
+#endif
----------------
jdoerfert wrote:

This is C++, never C.

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


More information about the Openmp-commits mailing list