[clang] [OpenACC][CIR] Implement atomic-write lowering (PR #164627)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 22 07:01:28 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,h -- clang/test/CIR/CodeGenOpenACC/atomic-write.cpp clang/include/clang/AST/StmtOpenACC.h clang/lib/AST/StmtOpenACC.cpp clang/lib/CIR/CodeGen/CIRGenStmtOpenACC.cpp --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/clang/lib/AST/StmtOpenACC.cpp b/clang/lib/AST/StmtOpenACC.cpp
index 53ab6e420..a4c6611c5 100644
--- a/clang/lib/AST/StmtOpenACC.cpp
+++ b/clang/lib/AST/StmtOpenACC.cpp
@@ -368,7 +368,8 @@ OpenACCAtomicConstruct::getAssociatedStmtInfo() const {
     // We want the L-value for ONLY the X side, so we ignore implicit casts. For
     // the right side (the expr), we emit it as an r-value so we need to
     // maintain implicit casts.
-    return {/*v=*/nullptr, BinaryArgs.first->IgnoreImpCasts(), BinaryArgs.second};
+    return {/*v=*/nullptr, BinaryArgs.first->IgnoreImpCasts(),
+            BinaryArgs.second};
   }
   }
 

``````````

</details>


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


More information about the cfe-commits mailing list