[llvm-branch-commits] [llvm] [offload] Add `libacctarget` OpenACC runtime (PR #198103)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat May 16 08:14:44 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- offload/libacctarget/CfiDataRuntimeInterface.cpp offload/libacctarget/DataRuntimeInterface.cpp offload/libacctarget/Debug.h offload/libacctarget/DeviceManager.cpp offload/libacctarget/DeviceManager.h offload/libacctarget/Interface.cpp offload/libacctarget/Interface.h offload/libacctarget/Logger.h offload/libacctarget/Private.h offload/libacctarget/QueueManager.cpp offload/libacctarget/QueueManager.h offload/libacctarget/RuntimeImpl.cpp offload/libacctarget/RuntimeInterface.cpp offload/libacctarget/include/openacc.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/offload/libacctarget/Interface.cpp b/offload/libacctarget/Interface.cpp
index 002813635..7d3af6765 100644
--- a/offload/libacctarget/Interface.cpp
+++ b/offload/libacctarget/Interface.cpp
@@ -911,8 +911,8 @@ struct ArgDescriptorsTy {
         // user-specified TO/FROM, and regardless of whether no_create is on or
         // not as the no_create can refer to the raw memory in the descriptor.
         TargetPointerResultTy TPR = Device.getMappingInfo().getTargetPointer(
-            HDTTMap, DescriptorAddr, DescriptorAddr, 0, (int64_t)DescInfo.DescriptorSize,
-            ArgName, /*HasFlagTo=*/true,
+            HDTTMap, DescriptorAddr, DescriptorAddr, 0,
+            (int64_t)DescInfo.DescriptorSize, ArgName, /*HasFlagTo=*/true,
             /*HasFlagAlways=*/false, /*IsImplicit=*/false,
             /*UpdateRefCount=*/true, /*HasCloseModifier=*/false,
             /*HasPresentModifier=*/false,
@@ -947,8 +947,8 @@ struct ArgDescriptorsTy {
           }
         } else {
           TargetPointerResultTy TPR = Device.getMappingInfo().getTargetPointer(
-              HDTTMap, MemInfo.RawMemoryPtr, BasePtr, 0, (int64_t)*MemInfo.RawMemorySize,
-              ArgName, HasFlagTo,
+              HDTTMap, MemInfo.RawMemoryPtr, BasePtr, 0,
+              (int64_t)*MemInfo.RawMemorySize, ArgName, HasFlagTo,
               /*HasFlagAlways=*/false, /*IsImplicit=*/false,
               /*UpdateRefCount=*/true, /*HasCloseModifier=*/false,
               /*HasPresentModifier=*/true,

``````````

</details>


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


More information about the llvm-branch-commits mailing list