[llvm] [OpenMP][Offload] Support `PRIVATE | ATTACH` maps for corresponding-pointer-initialization. (PR #160760)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 12:01:51 PDT 2025


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 -- offload/libomptarget/omptarget.cpp
``````````

: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/libomptarget/omptarget.cpp b/offload/libomptarget/omptarget.cpp
index 737d3497c..531897580 100644
--- a/offload/libomptarget/omptarget.cpp
+++ b/offload/libomptarget/omptarget.cpp
@@ -1531,8 +1531,8 @@ class PrivateArgumentManagerTy {
   ///  ...}
   /// ```
   /// `(1)` maps the pointee `px[1].
-  /// `(2)` attaches it to the mapped version of `px`. It can be controlled by the
-  /// user based on the `attach(auto/always/never)` map-type modifier.
+  /// `(2)` attaches it to the mapped version of `px`. It can be controlled by
+  /// the user based on the `attach(auto/always/never)` map-type modifier.
   /// `(3)` privatizes and initializes the private pointer `px`, and passes it
   /// into the kernel as the argument `%px`. Can be skipped if `px` is not
   /// referenced in the target construct.

``````````

</details>


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


More information about the llvm-commits mailing list