[clang] [AArch64] Add getHostCPUFeatures to query for enabled features in cpu… (PR #97749)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 4 08:49:50 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 d43ec97de081755990264049eba09cb7c83cb321 c942cb269560c6472a814e2d31f1545c6b80a890 -- clang/lib/Driver/ToolChains/Arch/AArch64.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Arch/AArch64.cpp b/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
index 2862c29762..ddf9973616 100644
--- a/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
+++ b/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
@@ -457,7 +457,7 @@ void aarch64::getAArch64TargetFeatures(const Driver &D,
if (llvm::sys::getHostCPUFeatures(HostFeatures)) {
for (auto &F : HostFeatures) {
Features.push_back(
- Args.MakeArgString((F.second ? "+" : "-") + F.first()));
+ Args.MakeArgString((F.second ? "+" : "-") + F.first()));
}
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/97749
More information about the cfe-commits
mailing list