[llvm] [NVPTX] Add syncscope support for cmpxchg (PR #140812)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 30 14:09:05 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

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

``````````bash
darker --check --diff -r HEAD~1...HEAD llvm/test/CodeGen/NVPTX/cmpxchg.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- cmpxchg.py	2025-05-30 21:06:11.000000 +0000
+++ cmpxchg.py	2025-05-30 21:08:32.268890 +0000
@@ -63,11 +63,11 @@
                         addrspace_cast=addrspace_cast,
                     ),
                     file=fp,
                 )
 
-                for  llvm_scope in LLVM_SCOPES:
+                for llvm_scope in LLVM_SCOPES:
                     # cluster ordering is supported from SM90 onwards
                     if sm < 90 and llvm_scope == "cluster":
                         continue
                     print(
                         cmpxchg_func.substitute(

``````````

</details>


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


More information about the llvm-commits mailing list