[clang] [llvm] [LoongArch] add la v1.1 features for sys::getHostCPUFeatures (PR #115832)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 12 00:24:44 PST 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 93589057830b2c3c35500ee8cac25c717a1e98f9 10d2d8e0be2faeedcdfe67d97f3e2f89a3770a71 --extensions cpp -- clang/lib/Driver/ToolChains/Arch/LoongArch.cpp llvm/lib/TargetParser/Host.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp
index d0f3bbc267..0250aac9a7 100644
--- a/llvm/lib/TargetParser/Host.cpp
+++ b/llvm/lib/TargetParser/Host.cpp
@@ -2006,8 +2006,8 @@ const StringMap<bool> sys::getHostCPUFeatures() {
Features["lasx"] = hwcap & (1UL << 5); // HWCAP_LOONGARCH_LASX
Features["lvz"] = hwcap & (1UL << 9); // HWCAP_LOONGARCH_LVZ
- Features["frecipe"] = cpucfg2 & (1U << 25); // CPUCFG.2.FRECIPE
- Features["lam-bh"] = cpucfg2 & (1U << 27); // CPUCFG.2.LAM_BH
+ Features["frecipe"] = cpucfg2 & (1U << 25); // CPUCFG.2.FRECIPE
+ Features["lam-bh"] = cpucfg2 & (1U << 27); // CPUCFG.2.LAM_BH
// TODO: Need to complete.
// Features["div32"] = cpucfg2 & (1U << 26); // CPUCFG.2.DIV32
``````````
</details>
https://github.com/llvm/llvm-project/pull/115832
More information about the cfe-commits
mailing list