[clang] [llvm] [WebAssembly] Support acquire-release atomics in CodeGen (PR #184900)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 6 09:59:57 PST 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 h,cpp -- llvm/lib/Target/WebAssembly/WebAssemblyFixupAtomics.cpp llvm/lib/Target/WebAssembly/WebAssembly.h llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.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/llvm/lib/Target/WebAssembly/WebAssemblyFixupAtomics.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFixupAtomics.cpp
index 7730175d1..9f229e6bf 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFixupAtomics.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFixupAtomics.cpp
@@ -85,7 +85,8 @@ bool WebAssemblyFixupAtomics::runOnMachineFunction(MachineFunction &MF) {
             Order = wasm::WASM_MEM_ORDER_SEQ_CST;
             break;
           default:
-           report_fatal_error("Atomic instructions cannot have NotAtomic ordering");
+            report_fatal_error(
+                "Atomic instructions cannot have NotAtomic ordering");
           }
           if (MI.getOperand(I).getImm() != Order) {
             MI.getOperand(I).setImm(Order);

``````````

</details>


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


More information about the llvm-commits mailing list