[llvm] [Offload] Introduce ATTACH map-type support for pointer attachment. (PR #149036)

Abhinav Gaba via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 11 10:45:18 PDT 2025


================
@@ -2231,3 +2231,15 @@ int32_t GenericPluginTy::get_function(__tgt_device_binary Binary,
   *KernelPtr = &Kernel;
   return OFFLOAD_SUCCESS;
 }
+
+int32_t GenericPluginTy::data_fence(int32_t DeviceId,
+                                    __tgt_async_info *AsyncInfo) {
+  auto Err = getDevice(DeviceId).dataFence(AsyncInfo);
+  if (Err) {
+    REPORT("Failure to place data fence on device %d: %s\n", DeviceId,
----------------
abhinavgaba wrote:

Thanks for the pointer. Is there an existing PR to update the other messages? Otherwise, this message would stick out as other messages in the file are following a different style, and go against this:

>As with other coding standards, individual projects, such as the Clang Static Analyzer, may have preexisting styles that do not conform to this. If a different formatting scheme is used consistently throughout the project, use that style instead.

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


More information about the llvm-commits mailing list