[clang] [llvm] [LoongArch] [CodeGen] Support LoongArch-specific amswap[__db].{b/h} and amadd[__db].{b/h} instructions. (PR #113255)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 19:56:46 PDT 2024
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 6360652e9f5b5975d71c619abd981f102eeccec8 51c4019cf9cf6eed49e4bd24e04c350c0cef645c --extensions h,c,cpp -- clang/test/Driver/loongarch-mlam-bh.c clang/lib/Basic/Targets/LoongArch.cpp clang/lib/Basic/Targets/LoongArch.h clang/lib/Driver/ToolChains/Arch/LoongArch.cpp clang/test/Driver/loongarch-march.c clang/test/Preprocessor/init-loongarch.c llvm/include/llvm/TargetParser/LoongArchTargetParser.h llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp llvm/lib/TargetParser/LoongArchTargetParser.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/TargetParser/LoongArchTargetParser.h b/llvm/include/llvm/TargetParser/LoongArchTargetParser.h
index 1b90e1d9ad..b5be03b1b6 100644
--- a/llvm/include/llvm/TargetParser/LoongArchTargetParser.h
+++ b/llvm/include/llvm/TargetParser/LoongArchTargetParser.h
@@ -50,7 +50,8 @@ enum FeatureKind : uint32_t {
// Floating-point approximate reciprocal instructions are available.
FK_FRECIPE = 1 << 9,
- // Atomic memory swap and add instructions for byte and half word are available.
+ // Atomic memory swap and add instructions for byte and half word are
+ // available.
FK_LAM_BH = 1 << 10,
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/113255
More information about the llvm-commits
mailing list